diff 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
line wrap: on
line diff
--- a/OrthancServer/ServerContext.h	Mon Nov 07 13:59:36 2016 +0100
+++ b/OrthancServer/ServerContext.h	Mon Nov 07 15:13:16 2016 +0100
@@ -200,17 +200,17 @@
     void ReadDicom(std::string& dicom,
                    const std::string& instancePublicId)
     {
-      ReadFile(dicom, instancePublicId, FileContentType_Dicom, true);
+      ReadAttachment(dicom, instancePublicId, FileContentType_Dicom, true);
     }
     
     // TODO CACHING MECHANISM AT THIS POINT
-    void ReadFile(std::string& result,
-                  const std::string& instancePublicId,
-                  FileContentType content,
-                  bool uncompressIfNeeded);
-
-    void ReadFile(std::string& result,
-                  const FileInfo& file);
+    void ReadAttachment(std::string& result,
+                        const std::string& instancePublicId,
+                        FileContentType content,
+                        bool uncompressIfNeeded);
+    
+    void ReadAttachment(std::string& result,
+                        const FileInfo& attachment);
 
     void SetStoreMD5ForAttachments(bool storeMD5);