Mercurial > hg > orthanc
comparison Core/DicomFormat/DicomMap.h @ 2863:da12ba232119
serialization of DicomMap
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Oct 2018 17:49:05 +0200 |
parents | 878b59270859 |
children | 8265a6b56100 |
comparison
equal
deleted
inserted
replaced
2860:8b00e4cb4a6b | 2863:da12ba232119 |
---|---|
87 | 87 |
88 void Assign(const DicomMap& other); | 88 void Assign(const DicomMap& other); |
89 | 89 |
90 void Clear(); | 90 void Clear(); |
91 | 91 |
92 void SetNullValue(uint16_t group, | |
93 uint16_t element) | |
94 { | |
95 SetValue(group, element, new DicomValue); | |
96 } | |
97 | |
98 void SetNullValue(const DicomTag& tag) | |
99 { | |
100 SetValue(tag, new DicomValue); | |
101 } | |
102 | |
92 void SetValue(uint16_t group, | 103 void SetValue(uint16_t group, |
93 uint16_t element, | 104 uint16_t element, |
94 const DicomValue& value) | 105 const DicomValue& value) |
95 { | 106 { |
96 SetValue(group, element, value.Clone()); | 107 SetValue(group, element, value.Clone()); |
196 | 207 |
197 bool ParseUnsignedInteger32(uint32_t& result, | 208 bool ParseUnsignedInteger32(uint32_t& result, |
198 const DicomTag& tag) const; | 209 const DicomTag& tag) const; |
199 | 210 |
200 bool ParseUnsignedInteger64(uint64_t& result, | 211 bool ParseUnsignedInteger64(uint64_t& result, |
201 const DicomTag& tag) const; | 212 const DicomTag& tag) const; |
202 | 213 |
203 bool ParseFloat(float& result, | 214 bool ParseFloat(float& result, |
204 const DicomTag& tag) const; | 215 const DicomTag& tag) const; |
205 | 216 |
206 bool ParseDouble(double& result, | 217 bool ParseDouble(double& result, |
207 const DicomTag& tag) const; | 218 const DicomTag& tag) const; |
219 | |
220 void Serialize(Json::Value& target) const; | |
221 | |
222 void Unserialize(const Json::Value& source); | |
208 }; | 223 }; |
209 } | 224 } |