diff OrthancServer/FromDcmtkBridge.h @ 2381:b8969010b534

uncoupling DCMTK primitives from Orthanc::Configuration
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Aug 2017 19:59:01 +0200
parents 96b3ec054b69
children
line wrap: on
line diff
--- a/OrthancServer/FromDcmtkBridge.h	Tue Aug 29 16:49:44 2017 +0200
+++ b/OrthancServer/FromDcmtkBridge.h	Tue Aug 29 19:59:01 2017 +0200
@@ -60,6 +60,14 @@
 #  include "../Core/Lua/LuaFunctionCall.h"
 #endif
 
+#if !defined(ORTHANC_ENABLE_DCMTK_JPEG)
+#  error The macro ORTHANC_ENABLE_DCMTK_JPEG must be defined
+#endif
+
+#if !defined(ORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS)
+#  error The macro ORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS must be defined
+#endif
+
 
 namespace Orthanc
 {
@@ -70,7 +78,6 @@
 #endif
 
     friend class ParsedDicomFile;
-    friend class Configuration;
 
   private:
     FromDcmtkBridge();  // Pure static class
@@ -220,5 +227,15 @@
     static void ExecuteToDicom(DicomMap& target,
                                LuaFunctionCall& call);
 #endif
+
+    static void ExtractDicomSummary(DicomMap& target, 
+                                    DcmItem& dataset);
+
+    static void ExtractDicomAsJson(Json::Value& target, 
+                                   DcmDataset& dataset);
+
+    static void InitializeCodecs();
+
+    static void FinalizeCodecs();
   };
 }