Mercurial > hg > orthanc
diff Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 2205:395522e46b2b
refactoring of the worklist sample using OrthancPluginCppWrapper
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 08 Dec 2016 16:16:25 +0100 |
parents | 1d0838b8e9c5 |
children | 27106f7e3759 |
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h Thu Dec 08 14:46:13 2016 +0100 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h Thu Dec 08 16:16:25 2016 +0100 @@ -172,6 +172,8 @@ OrthancPluginCreateDicomFlags flags); void ReadFile(const std::string& path); + + void GetDicomQuery(const OrthancPluginWorklistQuery* query); }; @@ -181,16 +183,21 @@ OrthancPluginContext* context_; char* str_; + void Clear(); + public: - OrthancString(OrthancPluginContext* context, - char* str); + OrthancString(OrthancPluginContext* context) : + context_(context), + str_(NULL) + { + } ~OrthancString() { Clear(); } - void Clear(); + void Assign(char* str); const char* GetContent() const { @@ -200,6 +207,11 @@ 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); };