comparison Core/Toolbox.h @ 3203:810772486249

URI "/instances/.../file" can return DICOMweb JSON or XML, depending on Accept header
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 06 Feb 2019 15:45:16 +0100
parents 4e43e67f8ecf
children cf8cbeb35f33
comparison
equal deleted inserted replaced
3202:ef4d86d05503 3203:810772486249
66 * UUIDs when not using Microsoft-speak. 66 * UUIDs when not using Microsoft-speak.
67 * http://stackoverflow.com/questions/246930/is-there-any-difference-between-a-guid-and-a-uuid 67 * http://stackoverflow.com/questions/246930/is-there-any-difference-between-a-guid-and-a-uuid
68 **/ 68 **/
69 69
70 70
71 #if ORTHANC_ENABLE_PUGIXML == 1
72 # include <pugixml.hpp>
73 #endif
74
71 75
72 namespace Orthanc 76 namespace Orthanc
73 { 77 {
74 typedef std::vector<std::string> UriComponents; 78 typedef std::vector<std::string> UriComponents;
75 79
190 const Json::Value& source, 194 const Json::Value& source,
191 const std::string& rootElement = "root", 195 const std::string& rootElement = "root",
192 const std::string& arrayElement = "item"); 196 const std::string& arrayElement = "item");
193 #endif 197 #endif
194 198
199 #if ORTHANC_ENABLE_PUGIXML == 1
200 void XmlToString(std::string& target,
201 const pugi::xml_document& source);
202 #endif
203
195 bool IsInteger(const std::string& str); 204 bool IsInteger(const std::string& str);
196 205
197 void CopyJsonWithoutComments(Json::Value& target, 206 void CopyJsonWithoutComments(Json::Value& target,
198 const Json::Value& source); 207 const Json::Value& source);
199 208