Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomParsing/DicomModification.cpp @ 4734:b51c08bd5c38
added ITagVisitor::Action_Remove
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 05 Jul 2021 16:12:10 +0200 |
parents | dd6274412ff4 |
children | 979ae3ea3381 |
comparison
equal
deleted
inserted
replaced
4733:1db3b79d97bd | 4734:b51c08bd5c38 |
---|---|
82 explicit RelationshipsVisitor(DicomModification& that) : | 82 explicit RelationshipsVisitor(DicomModification& that) : |
83 that_(that) | 83 that_(that) |
84 { | 84 { |
85 } | 85 } |
86 | 86 |
87 virtual void VisitNotSupported(const std::vector<DicomTag>& parentTags, | 87 virtual Action VisitNotSupported(const std::vector<DicomTag>& parentTags, |
88 const std::vector<size_t>& parentIndexes, | 88 const std::vector<size_t>& parentIndexes, |
89 const DicomTag& tag, | 89 const DicomTag& tag, |
90 ValueRepresentation vr) | 90 ValueRepresentation vr) ORTHANC_OVERRIDE |
91 { | 91 { |
92 } | 92 return Action_None; |
93 | 93 } |
94 virtual void VisitEmptySequence(const std::vector<DicomTag>& parentTags, | 94 |
95 const std::vector<size_t>& parentIndexes, | 95 virtual Action VisitEmptySequence(const std::vector<DicomTag>& parentTags, |
96 const DicomTag& tag) | 96 const std::vector<size_t>& parentIndexes, |
97 { | 97 const DicomTag& tag) ORTHANC_OVERRIDE |
98 } | 98 { |
99 | 99 return Action_None; |
100 virtual void VisitBinary(const std::vector<DicomTag>& parentTags, | 100 } |
101 const std::vector<size_t>& parentIndexes, | 101 |
102 const DicomTag& tag, | 102 virtual Action VisitBinary(const std::vector<DicomTag>& parentTags, |
103 ValueRepresentation vr, | |
104 const void* data, | |
105 size_t size) | |
106 { | |
107 } | |
108 | |
109 virtual void VisitIntegers(const std::vector<DicomTag>& parentTags, | |
110 const std::vector<size_t>& parentIndexes, | 103 const std::vector<size_t>& parentIndexes, |
111 const DicomTag& tag, | 104 const DicomTag& tag, |
112 ValueRepresentation vr, | 105 ValueRepresentation vr, |
113 const std::vector<int64_t>& values) | 106 const void* data, |
114 { | 107 size_t size) ORTHANC_OVERRIDE |
115 } | 108 { |
116 | 109 return Action_None; |
117 virtual void VisitDoubles(const std::vector<DicomTag>& parentTags, | 110 } |
118 const std::vector<size_t>& parentIndexes, | 111 |
119 const DicomTag& tag, | 112 virtual Action VisitIntegers(const std::vector<DicomTag>& parentTags, |
120 ValueRepresentation vr, | |
121 const std::vector<double>& value) | |
122 { | |
123 } | |
124 | |
125 virtual void VisitAttributes(const std::vector<DicomTag>& parentTags, | |
126 const std::vector<size_t>& parentIndexes, | 113 const std::vector<size_t>& parentIndexes, |
127 const DicomTag& tag, | 114 const DicomTag& tag, |
128 const std::vector<DicomTag>& value) | 115 ValueRepresentation vr, |
129 { | 116 const std::vector<int64_t>& values) ORTHANC_OVERRIDE |
117 { | |
118 return Action_None; | |
119 } | |
120 | |
121 virtual Action VisitDoubles(const std::vector<DicomTag>& parentTags, | |
122 const std::vector<size_t>& parentIndexes, | |
123 const DicomTag& tag, | |
124 ValueRepresentation vr, | |
125 const std::vector<double>& value) ORTHANC_OVERRIDE | |
126 { | |
127 return Action_None; | |
128 } | |
129 | |
130 virtual Action VisitAttributes(const std::vector<DicomTag>& parentTags, | |
131 const std::vector<size_t>& parentIndexes, | |
132 const DicomTag& tag, | |
133 const std::vector<DicomTag>& value) ORTHANC_OVERRIDE | |
134 { | |
135 return Action_None; | |
130 } | 136 } |
131 | 137 |
132 virtual Action VisitString(std::string& newValue, | 138 virtual Action VisitString(std::string& newValue, |
133 const std::vector<DicomTag>& parentTags, | 139 const std::vector<DicomTag>& parentTags, |
134 const std::vector<size_t>& parentIndexes, | 140 const std::vector<size_t>& parentIndexes, |
135 const DicomTag& tag, | 141 const DicomTag& tag, |
136 ValueRepresentation vr, | 142 ValueRepresentation vr, |
137 const std::string& value) | 143 const std::string& value) ORTHANC_OVERRIDE |
138 { | 144 { |
139 /** | 145 /** |
140 * Note that all the tags in "uids_" have the VR UI (unique | 146 * Note that all the tags in "uids_" have the VR UI (unique |
141 * identifier), and are considered as strings. | 147 * identifier), and are considered as strings. |
142 * | 148 * |