Mercurial > hg > orthanc
diff OrthancFramework/Sources/DicomParsing/DicomModification.h @ 5137:15109c3f0f7d
added sanity checks in DicomModificationJob + automatically reconstruct resources at the end of a DicomModificationJob
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 18 Jan 2023 17:58:51 +0100 |
parents | f2dcdbe05884 |
children | 023569e7155b |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomParsing/DicomModification.h Tue Jan 17 17:54:38 2023 +0100 +++ b/OrthancFramework/Sources/DicomParsing/DicomModification.h Wed Jan 18 17:58:51 2023 +0100 @@ -130,6 +130,7 @@ mutable boost::recursive_mutex uidMapMutex_; SetOfTags removals_; SetOfTags clearings_; + SetOfTags keep_; Replacements replacements_; bool removePrivateTags_; ResourceType level_; @@ -210,10 +211,14 @@ bool IsReplaced(const DicomTag& tag) const; + void GetReplacedTags(std::set<DicomTag>& target) const; + const Json::Value& GetReplacement(const DicomTag& tag) const; std::string GetReplacementAsString(const DicomTag& tag) const; + bool IsKept(const DicomTag& tag) const; + void SetRemovePrivateTags(bool removed); bool ArePrivateTagsRemoved() const;