Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Loaders/LoadedDicomResources.h @ 1862:63587fdeec69
added 'SkipSeriesFromModalities' to ignore series from modality types
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 23 Sep 2021 14:38:42 +0200 |
parents | d6b83b4cedcd |
children | 3889ae96d2e9 |
comparison
equal
deleted
inserted
replaced
1861:9290d2916150 | 1862:63587fdeec69 |
---|---|
107 bool HasResource(const std::string& id) const | 107 bool HasResource(const std::string& id) const |
108 { | 108 { |
109 return resources_.find(id) != resources_.end(); | 109 return resources_.find(id) != resources_.end(); |
110 } | 110 } |
111 | 111 |
112 void RemoveResource(const std::string& id) | |
113 { | |
114 if (HasResource(id)) | |
115 { | |
116 Resource* resource = resources_[id]; | |
117 delete resource; | |
118 resources_.erase(id); | |
119 flattened_.clear(); // Invalidate the flattened version | |
120 } | |
121 } | |
122 | |
112 void MergeResource(Orthanc::DicomMap& target, | 123 void MergeResource(Orthanc::DicomMap& target, |
113 const std::string& id) const; | 124 const std::string& id) const; |
114 | 125 |
115 bool LookupStringValue(std::string& target, | 126 bool LookupStringValue(std::string& target, |
116 const std::string& id, | 127 const std::string& id, |