diff OrthancFramework/Sources/DicomFormat/DicomMap.cpp @ 5038:f8bea9c1c0fc

reduce dependencies to DCMTK (e.g. for plugins)
author Alain Mazy <am@osimis.io>
date Fri, 24 Jun 2022 16:44:38 +0200
parents 877bc3b96476
children 1c08cd68250a
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomFormat/DicomMap.cpp	Fri Jun 24 16:16:43 2022 +0200
+++ b/OrthancFramework/Sources/DicomFormat/DicomMap.cpp	Fri Jun 24 16:44:38 2022 +0200
@@ -34,7 +34,10 @@
 #include "../OrthancException.h"
 #include "../Toolbox.h"
 #include "DicomArray.h"
+
+#if ORTHANC_ENABLE_DCMTK == 1
 #include "../DicomParsing/FromDcmtkBridge.h"
+#endif
 
 namespace Orthanc
 {
@@ -1530,6 +1533,7 @@
     return true;
   }
 
+#if ORTHANC_ENABLE_DCMTK == 1
   void DicomMap::ExtractSequences(std::set<DicomTag>& sequences, const std::set<DicomTag>& tags)
   {
     sequences.clear();
@@ -1543,6 +1547,7 @@
       }
     }
   }
+#endif
 
   void DicomMap::Serialize(Json::Value& target) const
   {