comparison 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
comparison
equal deleted inserted replaced
2380:96b3ec054b69 2381:b8969010b534
58 58
59 #if ORTHANC_ENABLE_LUA == 1 59 #if ORTHANC_ENABLE_LUA == 1
60 # include "../Core/Lua/LuaFunctionCall.h" 60 # include "../Core/Lua/LuaFunctionCall.h"
61 #endif 61 #endif
62 62
63 #if !defined(ORTHANC_ENABLE_DCMTK_JPEG)
64 # error The macro ORTHANC_ENABLE_DCMTK_JPEG must be defined
65 #endif
66
67 #if !defined(ORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS)
68 # error The macro ORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS must be defined
69 #endif
70
63 71
64 namespace Orthanc 72 namespace Orthanc
65 { 73 {
66 class FromDcmtkBridge : public boost::noncopyable 74 class FromDcmtkBridge : public boost::noncopyable
67 { 75 {
68 #if ORTHANC_BUILD_UNIT_TESTS == 1 76 #if ORTHANC_BUILD_UNIT_TESTS == 1
69 FRIEND_TEST(FromDcmtkBridge, FromJson); 77 FRIEND_TEST(FromDcmtkBridge, FromJson);
70 #endif 78 #endif
71 79
72 friend class ParsedDicomFile; 80 friend class ParsedDicomFile;
73 friend class Configuration;
74 81
75 private: 82 private:
76 FromDcmtkBridge(); // Pure static class 83 FromDcmtkBridge(); // Pure static class
77 84
78 static void ExtractDicomSummary(DicomMap& target, 85 static void ExtractDicomSummary(DicomMap& target,
218 225
219 #if ORTHANC_ENABLE_LUA == 1 226 #if ORTHANC_ENABLE_LUA == 1
220 static void ExecuteToDicom(DicomMap& target, 227 static void ExecuteToDicom(DicomMap& target,
221 LuaFunctionCall& call); 228 LuaFunctionCall& call);
222 #endif 229 #endif
230
231 static void ExtractDicomSummary(DicomMap& target,
232 DcmItem& dataset);
233
234 static void ExtractDicomAsJson(Json::Value& target,
235 DcmDataset& dataset);
236
237 static void InitializeCodecs();
238
239 static void FinalizeCodecs();
223 }; 240 };
224 } 241 }