comparison OrthancServer/Sources/ServerContext.h @ 4509:98b7b9d21d83

removed ServerContext::ReadAttachment()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 11 Feb 2021 17:11:37 +0100
parents 7b99e8bb8246
children 1ec156a0da38
comparison
equal deleted inserted replaced
4508:8f9090b137f1 4509:98b7b9d21d83
336 std::set<DicomTag> ignoreTagLength; 336 std::set<DicomTag> ignoreTagLength;
337 ReadDicomAsJson(result, instancePublicId, ignoreTagLength); 337 ReadDicomAsJson(result, instancePublicId, ignoreTagLength);
338 } 338 }
339 339
340 void ReadDicom(std::string& dicom, 340 void ReadDicom(std::string& dicom,
341 const std::string& instancePublicId) 341 const std::string& instancePublicId);
342 {
343 ReadAttachment(dicom, instancePublicId, FileContentType_Dicom, true);
344 }
345 342
346 // TODO CACHING MECHANISM AT THIS POINT 343 // TODO CACHING MECHANISM AT THIS POINT
347 void ReadAttachment(std::string& result, 344 void ReadAttachment(std::string& result,
348 const std::string& instancePublicId, 345 const std::string& instancePublicId,
349 FileContentType content, 346 FileContentType content,
350 bool uncompressIfNeeded); 347 bool uncompressIfNeeded);
351 348
352 void ReadAttachment(std::string& result,
353 const FileInfo& attachment);
354
355 void SetStoreMD5ForAttachments(bool storeMD5); 349 void SetStoreMD5ForAttachments(bool storeMD5);
356 350
357 bool IsStoreMD5ForAttachments() const 351 bool IsStoreMD5ForAttachments() const
358 { 352 {
359 return storeMD5_; 353 return storeMD5_;