comparison OrthancServer/DicomModification.h @ 788:7ebe4bf87196

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 05 May 2014 18:39:36 +0200
parents ac18946afa74
children 331eaf9d9d69
comparison
equal deleted inserted replaced
787:ac18946afa74 788:7ebe4bf87196
46 **/ 46 **/
47 47
48 private: 48 private:
49 typedef std::set<DicomTag> Removals; 49 typedef std::set<DicomTag> Removals;
50 typedef std::map<DicomTag, std::string> Replacements; 50 typedef std::map<DicomTag, std::string> Replacements;
51 typedef std::map< std::pair<DicomRootLevel, std::string>, std::string> UidMap; 51 typedef std::map< std::pair<ResourceType, std::string>, std::string> UidMap;
52 52
53 Removals removals_; 53 Removals removals_;
54 Replacements replacements_; 54 Replacements replacements_;
55 bool removePrivateTags_; 55 bool removePrivateTags_;
56 DicomRootLevel level_; 56 ResourceType level_;
57 UidMap uidMap_; 57 UidMap uidMap_;
58 58
59 void MapDicomIdentifier(ParsedDicomFile& dicom, 59 void MapDicomIdentifier(ParsedDicomFile& dicom,
60 DicomRootLevel level); 60 ResourceType level);
61 61
62 public: 62 public:
63 DicomModification(); 63 DicomModification();
64 64
65 void Keep(const DicomTag& tag); 65 void Keep(const DicomTag& tag);
80 bool ArePrivateTagsRemoved() const 80 bool ArePrivateTagsRemoved() const
81 { 81 {
82 return removePrivateTags_; 82 return removePrivateTags_;
83 } 83 }
84 84
85 void SetLevel(DicomRootLevel level); 85 void SetLevel(ResourceType level);
86 86
87 DicomRootLevel GetLevel() const 87 ResourceType GetLevel() const
88 { 88 {
89 return level_; 89 return level_;
90 } 90 }
91 91
92 void SetupAnonymization(); 92 void SetupAnonymization();