Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.h @ 2124:2b1520efa282
cleaning up
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Nov 2016 12:11:34 +0100 |
parents | 2ecc95a239f7 |
children | bfa92c9328d7 |
comparison
equal
deleted
inserted
replaced
2123:1cf093cbdad8 | 2124:2b1520efa282 |
---|---|
189 | 189 |
190 void ChangeAttachmentCompression(const std::string& resourceId, | 190 void ChangeAttachmentCompression(const std::string& resourceId, |
191 FileContentType attachmentType, | 191 FileContentType attachmentType, |
192 CompressionType compression); | 192 CompressionType compression); |
193 | 193 |
194 void ReadJson(Json::Value& result, | 194 void ReadDicomAsJson(Json::Value& result, |
195 const std::string& instancePublicId); | 195 const std::string& instancePublicId); |
196 | 196 |
197 void ReadDicom(std::string& dicom, | |
198 const std::string& instancePublicId) | |
199 { | |
200 ReadFile(dicom, instancePublicId, FileContentType_Dicom, true); | |
201 } | |
202 | |
197 // TODO CACHING MECHANISM AT THIS POINT | 203 // TODO CACHING MECHANISM AT THIS POINT |
198 void ReadFile(std::string& result, | 204 void ReadFile(std::string& result, |
199 const std::string& instancePublicId, | 205 const std::string& instancePublicId, |
200 FileContentType content, | 206 FileContentType content, |
201 bool uncompressIfNeeded = true); | 207 bool uncompressIfNeeded); |
202 | 208 |
203 void ReadFile(std::string& result, | 209 void ReadFile(std::string& result, |
204 const FileInfo& file); | 210 const FileInfo& file); |
205 | 211 |
206 void SetStoreMD5ForAttachments(bool storeMD5); | 212 void SetStoreMD5ForAttachments(bool storeMD5); |