changeset 2796:4df3c64402ba

MemoryBuffer::GetDicomInstance()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 27 Jul 2018 16:40:09 +0200
parents f2e49b953e86
children 9a0c6a046cc2
files Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Plugins/Samples/Common/OrthancPluginCppWrapper.h
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Fri Jul 27 16:15:23 2018 +0200
+++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Fri Jul 27 16:40:09 2018 +0200
@@ -348,7 +348,14 @@
                                           password.empty() ? NULL : password.c_str()));
   }
   
- 
+
+  void MemoryBuffer::GetDicomInstance(const std::string& instanceId)
+  {
+    Clear();
+    Check(OrthancPluginGetDicomForInstance(context_, &buffer_, instanceId.c_str()));
+  }
+
+  
   bool HttpDelete(OrthancPluginContext* context_,
                   const std::string& url,
                   const std::string& username,
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Fri Jul 27 16:15:23 2018 +0200
+++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Fri Jul 27 16:40:09 2018 +0200
@@ -180,6 +180,8 @@
                  const std::string& body,
                  const std::string& username,
                  const std::string& password);
+
+    void GetDicomInstance(const std::string& instanceId);
   };