comparison 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
comparison
equal deleted inserted replaced
2860:8b00e4cb4a6b 2863:da12ba232119
34 #pragma once 34 #pragma once
35 35
36 #include <stdint.h> 36 #include <stdint.h>
37 #include <string> 37 #include <string>
38 #include <boost/noncopyable.hpp> 38 #include <boost/noncopyable.hpp>
39 #include <json/value.h>
39 40
40 #if !defined(ORTHANC_ENABLE_BASE64) 41 #if !defined(ORTHANC_ENABLE_BASE64)
41 # error The macro ORTHANC_ENABLE_BASE64 must be defined 42 # error The macro ORTHANC_ENABLE_BASE64 must be defined
42 #endif 43 #endif
43 44
106 107
107 bool ParseUnsignedInteger64(uint64_t& result) const; 108 bool ParseUnsignedInteger64(uint64_t& result) const;
108 109
109 bool ParseFloat(float& result) const; 110 bool ParseFloat(float& result) const;
110 111
111 bool ParseDouble(double& result) const; 112 bool ParseDouble(double& result) const;
113
114 void Serialize(Json::Value& target) const;
115
116 void Unserialize(const Json::Value& source);
112 }; 117 };
113 } 118 }