comparison OrthancServer/ServerContext.h @ 2128:9329ba17a069

Possibility to DELETE "dicom-as-json" attachments to reconstruct them
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 07 Nov 2016 15:13:16 +0100
parents bfa92c9328d7
children dd609a99d39a
comparison
equal deleted inserted replaced
2127:bfa92c9328d7 2128:9329ba17a069
198 const std::string& instancePublicId); 198 const std::string& instancePublicId);
199 199
200 void ReadDicom(std::string& dicom, 200 void ReadDicom(std::string& dicom,
201 const std::string& instancePublicId) 201 const std::string& instancePublicId)
202 { 202 {
203 ReadFile(dicom, instancePublicId, FileContentType_Dicom, true); 203 ReadAttachment(dicom, instancePublicId, FileContentType_Dicom, true);
204 } 204 }
205 205
206 // TODO CACHING MECHANISM AT THIS POINT 206 // TODO CACHING MECHANISM AT THIS POINT
207 void ReadFile(std::string& result, 207 void ReadAttachment(std::string& result,
208 const std::string& instancePublicId, 208 const std::string& instancePublicId,
209 FileContentType content, 209 FileContentType content,
210 bool uncompressIfNeeded); 210 bool uncompressIfNeeded);
211 211
212 void ReadFile(std::string& result, 212 void ReadAttachment(std::string& result,
213 const FileInfo& file); 213 const FileInfo& attachment);
214 214
215 void SetStoreMD5ForAttachments(bool storeMD5); 215 void SetStoreMD5ForAttachments(bool storeMD5);
216 216
217 bool IsStoreMD5ForAttachments() const 217 bool IsStoreMD5ForAttachments() const
218 { 218 {