Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Core/Toolbox.h Thu Jul 17 16:01:41 2014 +0200 +++ b/Core/Toolbox.h Fri Jul 18 16:41:10 2014 +0200 @@ -37,6 +37,7 @@ #include <stdint.h> #include <vector> #include <string> +#include <json/json.h> namespace Orthanc { @@ -136,5 +137,12 @@ void CreateDirectory(const std::string& path); bool IsExistingFile(const std::string& path); + +#if ORTHANC_PUGIXML_ENABLED == 1 + void JsonToXml(std::string& target, + const Json::Value& source, + const std::string& rootElement = "root", + const std::string& arrayElement = "item"); +#endif } }