Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Core/DicomFormat/DicomMap.h Fri Oct 05 16:07:34 2018 +0200 +++ b/Core/DicomFormat/DicomMap.h Fri Oct 05 17:49:05 2018 +0200 @@ -89,6 +89,17 @@ void Clear(); + void SetNullValue(uint16_t group, + uint16_t element) + { + SetValue(group, element, new DicomValue); + } + + void SetNullValue(const DicomTag& tag) + { + SetValue(tag, new DicomValue); + } + void SetValue(uint16_t group, uint16_t element, const DicomValue& value) @@ -198,12 +209,16 @@ const DicomTag& tag) const; bool ParseUnsignedInteger64(uint64_t& result, - const DicomTag& tag) const; + const DicomTag& tag) const; bool ParseFloat(float& result, - const DicomTag& tag) const; + const DicomTag& tag) const; bool ParseDouble(double& result, - const DicomTag& tag) const; + const DicomTag& tag) const; + + void Serialize(Json::Value& target) const; + + void Unserialize(const Json::Value& source); }; }