comparison OrthancFramework/Sources/DicomParsing/DicomWebJsonVisitor.h @ 4297:785a2713323e

abi continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 17:20:49 +0100
parents 2007ab69ac16
children d9473bd5ed43
comparison
equal deleted inserted replaced
4296:3b70a2e6a06c 4297:785a2713323e
71 static Json::Value FormatInteger(int64_t value); 71 static Json::Value FormatInteger(int64_t value);
72 72
73 static Json::Value FormatDouble(double value); 73 static Json::Value FormatDouble(double value);
74 74
75 public: 75 public:
76 DicomWebJsonVisitor() : 76 DicomWebJsonVisitor();
77 formatter_(NULL)
78 {
79 Clear();
80 }
81 77
82 void SetFormatter(IBinaryFormatter& formatter) 78 void SetFormatter(IBinaryFormatter& formatter);
83 {
84 formatter_ = &formatter;
85 }
86 79
87 void Clear() 80 void Clear();
88 {
89 result_ = Json::objectValue;
90 }
91 81
92 const Json::Value& GetResult() const 82 const Json::Value& GetResult() const;
93 {
94 return result_;
95 }
96 83
97 #if ORTHANC_ENABLE_PUGIXML == 1 84 #if ORTHANC_ENABLE_PUGIXML == 1
98 void FormatXml(std::string& target) const; 85 void FormatXml(std::string& target) const;
99 #endif 86 #endif
100 87
101 virtual void VisitNotSupported(const std::vector<DicomTag>& parentTags, 88 virtual void VisitNotSupported(const std::vector<DicomTag>& parentTags,
102 const std::vector<size_t>& parentIndexes, 89 const std::vector<size_t>& parentIndexes,
103 const DicomTag& tag, 90 const DicomTag& tag,
104 ValueRepresentation vr) 91 ValueRepresentation vr)
105 ORTHANC_OVERRIDE 92 ORTHANC_OVERRIDE;
106 {
107 }
108 93
109 virtual void VisitEmptySequence(const std::vector<DicomTag>& parentTags, 94 virtual void VisitEmptySequence(const std::vector<DicomTag>& parentTags,
110 const std::vector<size_t>& parentIndexes, 95 const std::vector<size_t>& parentIndexes,
111 const DicomTag& tag) 96 const DicomTag& tag)
112 ORTHANC_OVERRIDE; 97 ORTHANC_OVERRIDE;