comparison Core/DicomParsing/DicomWebJsonVisitor.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 ef4d86d05503
children 94f4a18a79cc
comparison
equal deleted inserted replaced
3202:ef4d86d05503 3203:810772486249
33 33
34 #pragma once 34 #pragma once
35 35
36 #if !defined(ORTHANC_ENABLE_PUGIXML) 36 #if !defined(ORTHANC_ENABLE_PUGIXML)
37 # error Macro ORTHANC_ENABLE_PUGIXML must be defined to use this file 37 # error Macro ORTHANC_ENABLE_PUGIXML must be defined to use this file
38 #endif
39
40 #if ORTHANC_ENABLE_PUGIXML == 1
41 # include <pugixml.hpp>
42 #endif 38 #endif
43 39
44 #include "ITagVisitor.h" 40 #include "ITagVisitor.h"
45 41
46 #include <json/value.h> 42 #include <json/value.h>
107 { 103 {
108 return result_; 104 return result_;
109 } 105 }
110 106
111 #if ORTHANC_ENABLE_PUGIXML == 1 107 #if ORTHANC_ENABLE_PUGIXML == 1
112 void FormatXml(pugi::xml_document& target) const; 108 void FormatXml(std::string& target) const;
113 #endif 109 #endif
114 110
115 virtual void VisitNotSupported(const std::vector<DicomTag>& parentTags, 111 virtual void VisitNotSupported(const std::vector<DicomTag>& parentTags,
116 const std::vector<size_t>& parentIndexes, 112 const std::vector<size_t>& parentIndexes,
117 const DicomTag& tag, 113 const DicomTag& tag,