Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestApi.cpp @ 974:83622b0f544c
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 30 Jun 2014 14:44:05 +0200 |
parents | 84513f2ee1f3 |
children | 84b6d7bca6db |
comparison
equal
deleted
inserted
replaced
972:2047e6f033bd | 974:83622b0f544c |
---|---|
37 | 37 |
38 #include <glog/logging.h> | 38 #include <glog/logging.h> |
39 | 39 |
40 namespace Orthanc | 40 namespace Orthanc |
41 { | 41 { |
42 void OrthancRestApi::AnswerStoredInstance(RestApi::PostCall& call, | 42 void OrthancRestApi::AnswerStoredInstance(RestApiPostCall& call, |
43 const std::string& publicId, | 43 const std::string& publicId, |
44 StoreStatus status) | 44 StoreStatus status) const |
45 { | 45 { |
46 Json::Value result = Json::objectValue; | 46 Json::Value result = Json::objectValue; |
47 | 47 |
48 if (status != StoreStatus_Failure) | 48 if (status != StoreStatus_Failure) |
49 { | 49 { |
57 | 57 |
58 | 58 |
59 | 59 |
60 // Upload of DICOM files through HTTP --------------------------------------- | 60 // Upload of DICOM files through HTTP --------------------------------------- |
61 | 61 |
62 static void UploadDicomFile(RestApi::PostCall& call) | 62 static void UploadDicomFile(RestApiPostCall& call) |
63 { | 63 { |
64 ServerContext& context = OrthancRestApi::GetContext(call); | 64 ServerContext& context = OrthancRestApi::GetContext(call); |
65 | 65 |
66 const std::string& postData = call.GetPostBody(); | 66 const std::string& postData = call.GetPostBody(); |
67 if (postData.size() == 0) | 67 if (postData.size() == 0) |