Mercurial > hg > orthanc-wsi
diff Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h @ 212:f1ea48f92d66
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Dec 2020 09:19:43 +0100 |
parents | 9d3ffcc402a9 |
children | 1e864138f0da |
line wrap: on
line diff
--- a/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h Mon Nov 09 15:09:05 2020 +0100 +++ b/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h Tue Dec 22 09:19:43 2020 +0100 @@ -476,6 +476,19 @@ #endif + bool ReadJson(Json::Value& target, + const std::string& source); + + bool ReadJson(Json::Value& target, + const void* buffer, + size_t size); + + void WriteFastJson(std::string& target, + const Json::Value& source); + + void WriteStyledJson(std::string& target, + const Json::Value& source); + bool RestApiGet(Json::Value& result, const std::string& uri, bool applyPlugins); @@ -779,7 +792,7 @@ void UpdateProgress(float progress); public: - OrthancJob(const std::string& jobType); + explicit OrthancJob(const std::string& jobType); virtual ~OrthancJob() {