# HG changeset patch # User Sebastien Jodogne # Date 1532702409 -7200 # Node ID 4df3c64402ba404d870c80ddf4ba96f10d77ee8e # Parent f2e49b953e86c6958b8a28e844c067fec5117af6 MemoryBuffer::GetDicomInstance() diff -r f2e49b953e86 -r 4df3c64402ba Plugins/Samples/Common/OrthancPluginCppWrapper.cpp --- 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, diff -r f2e49b953e86 -r 4df3c64402ba Plugins/Samples/Common/OrthancPluginCppWrapper.h --- 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); };