Mercurial > hg > orthanc
diff OrthancServer/ParsedDicomFile.h @ 991:2f76b92addd4
keep private tags during anonymization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Jul 2014 11:56:08 +0200 |
parents | 2fd5a163776d |
children | e494ceb8d763 |
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.h Tue Jul 01 17:17:45 2014 +0200 +++ b/OrthancServer/ParsedDicomFile.h Wed Jul 02 11:56:08 2014 +0200 @@ -51,6 +51,8 @@ void Setup(const char* content, size_t size); + void RemovePrivateTagsInternal(const std::set<DicomTag>* toKeep); + public: ParsedDicomFile(); // Create a minimal DICOM instance @@ -79,7 +81,15 @@ const std::string& value, DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent); - void RemovePrivateTags(); + void RemovePrivateTags() + { + RemovePrivateTagsInternal(NULL); + } + + void RemovePrivateTags(const std::set<DicomTag>& toKeep) + { + RemovePrivateTagsInternal(&toKeep); + } bool GetTagValue(std::string& value, const DicomTag& tag);