# HG changeset patch # User Alain Mazy # Date 1656081878 -7200 # Node ID f8bea9c1c0fcd5d0a1257667e471eb16ad204188 # Parent 3444990cf295fd9d1d647be8bca75daeb367275e reduce dependencies to DCMTK (e.g. for plugins) diff -r 3444990cf295 -r f8bea9c1c0fc OrthancFramework/Sources/DicomFormat/DicomMap.cpp --- 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& sequences, const std::set& tags) { sequences.clear(); @@ -1543,6 +1547,7 @@ } } } +#endif void DicomMap::Serialize(Json::Value& target) const { diff -r 3444990cf295 -r f8bea9c1c0fc OrthancFramework/Sources/DicomFormat/DicomMap.h --- a/OrthancFramework/Sources/DicomFormat/DicomMap.h Fri Jun 24 16:16:43 2022 +0200 +++ b/OrthancFramework/Sources/DicomFormat/DicomMap.h Fri Jun 24 16:44:38 2022 +0200 @@ -149,7 +149,9 @@ static bool HasComputedTags(const std::set& tags); +#if ORTHANC_ENABLE_DCMTK == 1 static void ExtractSequences(std::set& sequences, const std::set& tags); +#endif static const std::set& GetMainDicomTags(ResourceType level);