Mercurial > hg > orthanc
diff Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 2206:27106f7e3759
more refactoring of the worklist sample
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 08 Dec 2016 16:29:34 +0100 |
parents | 395522e46b2b |
children | c02f6ec404d8 |
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h Thu Dec 08 16:16:25 2016 +0100 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h Thu Dec 08 16:29:34 2016 +0100 @@ -174,6 +174,11 @@ void ReadFile(const std::string& path); void GetDicomQuery(const OrthancPluginWorklistQuery* query); + + void DicomToJson(Json::Value& target, + OrthancPluginDicomToJsonFormat format, + OrthancPluginDicomToJsonFlags flags, + uint32_t maxStringLength); }; @@ -197,6 +202,8 @@ Clear(); } + // This transfers ownership, warning: The string must have been + // allocated by the Orthanc core void Assign(char* str); const char* GetContent() const @@ -207,11 +214,6 @@ void ToString(std::string& target) const; void ToJson(Json::Value& target) const; - - void DicomToJson(const OrthancPlugins::MemoryBuffer& dicom, - OrthancPluginDicomToJsonFormat format, - OrthancPluginDicomToJsonFlags flags, - uint32_t maxStringLength); };