diff Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 2796:4df3c64402ba

MemoryBuffer::GetDicomInstance()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 27 Jul 2018 16:40:09 +0200
parents 57e2d65d37ce
children 579acc5e5412
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,