diff OrthancFramework/Sources/Lua/LuaFunctionCall.h @ 4105:c02a2d9efbc2

move FromDcmtkBridge::ExecuteToDicom() to LuaFunctionCall, to remove dependency of DCMTK on Lua
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jul 2020 13:48:10 +0200
parents d25f4c0fa160
children bf7b9edf6b81
line wrap: on
line diff
--- a/OrthancFramework/Sources/Lua/LuaFunctionCall.h	Mon Jul 06 11:45:39 2020 +0200
+++ b/OrthancFramework/Sources/Lua/LuaFunctionCall.h	Mon Jul 06 13:48:10 2020 +0200
@@ -33,6 +33,10 @@
 
 #pragma once
 
+#if !defined(ORTHANC_ENABLE_DCMTK)
+#  error The macro ORTHANC_ENABLE_DCMTK must be defined
+#endif
+
 #include "LuaContext.h"
 
 #include "../DicomFormat/DicomArray.h"
@@ -89,5 +93,9 @@
                        bool keepStrings);
 
     void ExecuteToString(std::string& result);
+
+#if ORTHANC_ENABLE_DCMTK == 1
+    void ExecuteToDicom(DicomMap& target);
+#endif
   };
 }