comparison OrthancFramework/Sources/Toolbox.h @ 4392:3af1d763763a

confining Json::Reader and Json::*Writer into Toolbox
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Dec 2020 18:09:47 +0100
parents fbc49a65340a
children f7104e9d044c
comparison
equal deleted inserted replaced
4391:0c4ff5609548 4392:3af1d763763a
26 #include "OrthancFramework.h" 26 #include "OrthancFramework.h"
27 27
28 #include <stdint.h> 28 #include <stdint.h>
29 #include <vector> 29 #include <vector>
30 #include <string> 30 #include <string>
31 #include <json/json.h> 31 #include <json/value.h>
32 32
33 33
34 #if !defined(ORTHANC_ENABLE_BASE64) 34 #if !defined(ORTHANC_ENABLE_BASE64)
35 # error The macro ORTHANC_ENABLE_BASE64 must be defined 35 # error The macro ORTHANC_ENABLE_BASE64 must be defined
36 #endif 36 #endif
258 static std::string GenerateDicomPrivateUniqueIdentifier(); 258 static std::string GenerateDicomPrivateUniqueIdentifier();
259 259
260 static void SimplifyDicomAsJson(Json::Value& target, 260 static void SimplifyDicomAsJson(Json::Value& target,
261 const Json::Value& source, 261 const Json::Value& source,
262 DicomToJsonFormat format); 262 DicomToJsonFormat format);
263
264 static bool ReadJson(Json::Value& target,
265 const std::string& source);
266
267 static bool ReadJson(Json::Value& target,
268 const void* buffer,
269 size_t size);
270
271 static void WriteJson(std::string& target,
272 const Json::Value& source,
273 bool fast);
263 }; 274 };
264 } 275 }
265 276
266 277
267 278