Mercurial > hg > orthanc
diff Core/DicomFormat/DicomValue.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 | ae20fccdd867 |
line wrap: on
line diff
--- a/Core/DicomFormat/DicomValue.h Fri Oct 05 16:07:34 2018 +0200 +++ b/Core/DicomFormat/DicomValue.h Fri Oct 05 17:49:05 2018 +0200 @@ -36,6 +36,7 @@ #include <stdint.h> #include <string> #include <boost/noncopyable.hpp> +#include <json/value.h> #if !defined(ORTHANC_ENABLE_BASE64) # error The macro ORTHANC_ENABLE_BASE64 must be defined @@ -108,6 +109,10 @@ bool ParseFloat(float& result) const; - bool ParseDouble(double& result) const; + bool ParseDouble(double& result) const; + + void Serialize(Json::Value& target) const; + + void Unserialize(const Json::Value& source); }; }