Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
5037:3444990cf295 | 5038:f8bea9c1c0fc |
---|---|
32 #include "../Endianness.h" | 32 #include "../Endianness.h" |
33 #include "../Logging.h" | 33 #include "../Logging.h" |
34 #include "../OrthancException.h" | 34 #include "../OrthancException.h" |
35 #include "../Toolbox.h" | 35 #include "../Toolbox.h" |
36 #include "DicomArray.h" | 36 #include "DicomArray.h" |
37 | |
38 #if ORTHANC_ENABLE_DCMTK == 1 | |
37 #include "../DicomParsing/FromDcmtkBridge.h" | 39 #include "../DicomParsing/FromDcmtkBridge.h" |
40 #endif | |
38 | 41 |
39 namespace Orthanc | 42 namespace Orthanc |
40 { | 43 { |
41 namespace | 44 namespace |
42 { | 45 { |
1528 } | 1531 } |
1529 | 1532 |
1530 return true; | 1533 return true; |
1531 } | 1534 } |
1532 | 1535 |
1536 #if ORTHANC_ENABLE_DCMTK == 1 | |
1533 void DicomMap::ExtractSequences(std::set<DicomTag>& sequences, const std::set<DicomTag>& tags) | 1537 void DicomMap::ExtractSequences(std::set<DicomTag>& sequences, const std::set<DicomTag>& tags) |
1534 { | 1538 { |
1535 sequences.clear(); | 1539 sequences.clear(); |
1536 | 1540 |
1537 for (std::set<DicomTag>::const_iterator it = tags.begin(); it != tags.end(); ++it) | 1541 for (std::set<DicomTag>::const_iterator it = tags.begin(); it != tags.end(); ++it) |
1541 { | 1545 { |
1542 sequences.insert(*it); | 1546 sequences.insert(*it); |
1543 } | 1547 } |
1544 } | 1548 } |
1545 } | 1549 } |
1550 #endif | |
1546 | 1551 |
1547 void DicomMap::Serialize(Json::Value& target) const | 1552 void DicomMap::Serialize(Json::Value& target) const |
1548 { | 1553 { |
1549 target = Json::objectValue; | 1554 target = Json::objectValue; |
1550 | 1555 |