comparison 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
comparison
equal deleted inserted replaced
990:7cbcd580cd21 991:2f76b92addd4
49 ParsedDicomFile(ParsedDicomFile& other); 49 ParsedDicomFile(ParsedDicomFile& other);
50 50
51 void Setup(const char* content, 51 void Setup(const char* content,
52 size_t size); 52 size_t size);
53 53
54 void RemovePrivateTagsInternal(const std::set<DicomTag>* toKeep);
55
54 public: 56 public:
55 ParsedDicomFile(); // Create a minimal DICOM instance 57 ParsedDicomFile(); // Create a minimal DICOM instance
56 58
57 ParsedDicomFile(const char* content, 59 ParsedDicomFile(const char* content,
58 size_t size); 60 size_t size);
77 79
78 void Replace(const DicomTag& tag, 80 void Replace(const DicomTag& tag,
79 const std::string& value, 81 const std::string& value,
80 DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent); 82 DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent);
81 83
82 void RemovePrivateTags(); 84 void RemovePrivateTags()
85 {
86 RemovePrivateTagsInternal(NULL);
87 }
88
89 void RemovePrivateTags(const std::set<DicomTag>& toKeep)
90 {
91 RemovePrivateTagsInternal(&toKeep);
92 }
83 93
84 bool GetTagValue(std::string& value, 94 bool GetTagValue(std::string& value,
85 const DicomTag& tag); 95 const DicomTag& tag);
86 96
87 DicomInstanceHasher GetHasher(); 97 DicomInstanceHasher GetHasher();