comparison Plugin/DecodedImageAdapter.cpp @ 292:aadbffcee805

remove calls to deprecated classes of JsonCpp
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Dec 2020 09:03:24 +0100
parents ec1af1fdcaca
children e376158e2dbb
comparison
equal deleted inserted replaced
291:0cd081608fd3 292:aadbffcee805
29 #include <OrthancException.h> 29 #include <OrthancException.h>
30 #include <Toolbox.h> 30 #include <Toolbox.h>
31 31
32 #include <boost/lexical_cast.hpp> 32 #include <boost/lexical_cast.hpp>
33 #include <boost/algorithm/string/predicate.hpp> 33 #include <boost/algorithm/string/predicate.hpp>
34 #include <json/writer.h>
35 #include <boost/regex.hpp> 34 #include <boost/regex.hpp>
36 35
37 36
38 namespace OrthancPlugins 37 namespace OrthancPlugins
39 { 38 {
170 std::string photometric; 169 std::string photometric;
171 if (GetStringTag(photometric, tags, "0028,0004")) 170 if (GetStringTag(photometric, tags, "0028,0004"))
172 { 171 {
173 json["Orthanc"]["PhotometricInterpretation"] = photometric; 172 json["Orthanc"]["PhotometricInterpretation"] = photometric;
174 } 173 }
175 174
176 Json::FastWriter writer; 175 Orthanc::Toolbox::WriteFastJson(content, json);
177 content = writer.write(json);
178 return true; 176 return true;
179 } 177 }
180 else 178 else
181 { 179 {
182 LOG(WARNING) << "Unable to decode the following instance: " << uri; 180 LOG(WARNING) << "Unable to decode the following instance: " << uri;