comparison OrthancServer/ServerContext.h @ 304:4eea080e6e7a

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 19 Dec 2012 14:57:18 +0100
parents 4031f73fe0e4
children 2cef9c2d4148
comparison
equal deleted inserted replaced
303:c76a35a85c69 304:4eea080e6e7a
85 return compressionEnabled_; 85 return compressionEnabled_;
86 } 86 }
87 87
88 void RemoveFile(const std::string& fileUuid); 88 void RemoveFile(const std::string& fileUuid);
89 89
90 StoreStatus Store(const char* dicomFile, 90 StoreStatus Store(const char* dicomInstance,
91 size_t dicomSize, 91 size_t dicomSize,
92 const DicomMap& dicomSummary, 92 const DicomMap& dicomSummary,
93 const Json::Value& dicomJson, 93 const Json::Value& dicomJson,
94 const std::string& remoteAet); 94 const std::string& remoteAet);
95
96 StoreStatus Store(std::string& resultPublicId,
97 DcmFileFormat& dicomInstance,
98 const char* dicomBuffer,
99 size_t dicomSize);
100
101 StoreStatus Store(std::string& resultPublicId,
102 DcmFileFormat& dicomInstance);
103
104 StoreStatus Store(std::string& resultPublicId,
105 const char* dicomBuffer,
106 size_t dicomSize);
107
108 StoreStatus Store(std::string& resultPublicId,
109 const std::string& dicomContent)
110 {
111 if (dicomContent.size() == 0)
112 return Store(resultPublicId, NULL, 0);
113 else
114 return Store(resultPublicId, &dicomContent[0], dicomContent.size());
115 }
95 116
96 void AnswerFile(RestApiOutput& output, 117 void AnswerFile(RestApiOutput& output,
97 const std::string& instancePublicId, 118 const std::string& instancePublicId,
98 FileContentType content); 119 FileContentType content);
99 120