comparison Core/Toolbox.h @ 1045:0bfeeb6d340f

json to xml conversion with pugixml
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 18 Jul 2014 16:41:10 +0200
parents 509e146c3cb3
children 64f1842aae2e
comparison
equal deleted inserted replaced
1044:6d90e2bcab60 1045:0bfeeb6d340f
35 #include "Enumerations.h" 35 #include "Enumerations.h"
36 36
37 #include <stdint.h> 37 #include <stdint.h>
38 #include <vector> 38 #include <vector>
39 #include <string> 39 #include <string>
40 #include <json/json.h>
40 41
41 namespace Orthanc 42 namespace Orthanc
42 { 43 {
43 typedef std::vector<std::string> UriComponents; 44 typedef std::vector<std::string> UriComponents;
44 45
134 const std::string& source); 135 const std::string& source);
135 136
136 void CreateDirectory(const std::string& path); 137 void CreateDirectory(const std::string& path);
137 138
138 bool IsExistingFile(const std::string& path); 139 bool IsExistingFile(const std::string& path);
140
141 #if ORTHANC_PUGIXML_ENABLED == 1
142 void JsonToXml(std::string& target,
143 const Json::Value& source,
144 const std::string& rootElement = "root",
145 const std::string& arrayElement = "item");
146 #endif
139 } 147 }
140 } 148 }