Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Core/Toolbox.h Wed Feb 06 15:21:32 2019 +0100 +++ b/Core/Toolbox.h Wed Feb 06 15:45:16 2019 +0100 @@ -68,6 +68,10 @@ **/ +#if ORTHANC_ENABLE_PUGIXML == 1 +# include <pugixml.hpp> +#endif + namespace Orthanc { @@ -192,6 +196,11 @@ const std::string& arrayElement = "item"); #endif +#if ORTHANC_ENABLE_PUGIXML == 1 + void XmlToString(std::string& target, + const pugi::xml_document& source); +#endif + bool IsInteger(const std::string& str); void CopyJsonWithoutComments(Json::Value& target,