diff 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
line wrap: on
line diff
--- a/OrthancServer/ServerContext.h	Mon Nov 07 11:51:40 2016 +0100
+++ b/OrthancServer/ServerContext.h	Mon Nov 07 12:11:34 2016 +0100
@@ -191,14 +191,20 @@
                                      FileContentType attachmentType,
                                      CompressionType compression);
 
-    void ReadJson(Json::Value& result,
-                  const std::string& instancePublicId);
+    void ReadDicomAsJson(Json::Value& result,
+                         const std::string& instancePublicId);
 
+    void ReadDicom(std::string& dicom,
+                   const std::string& instancePublicId)
+    {
+      ReadFile(dicom, instancePublicId, FileContentType_Dicom, true);
+    }
+    
     // TODO CACHING MECHANISM AT THIS POINT
     void ReadFile(std::string& result,
                   const std::string& instancePublicId,
                   FileContentType content,
-                  bool uncompressIfNeeded = true);
+                  bool uncompressIfNeeded);
 
     void ReadFile(std::string& result,
                   const FileInfo& file);