comparison 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
comparison
equal deleted inserted replaced
2795:f2e49b953e86 2796:4df3c64402ba
346 body.size(), 346 body.size(),
347 username.empty() ? NULL : username.c_str(), 347 username.empty() ? NULL : username.c_str(),
348 password.empty() ? NULL : password.c_str())); 348 password.empty() ? NULL : password.c_str()));
349 } 349 }
350 350
351 351
352 void MemoryBuffer::GetDicomInstance(const std::string& instanceId)
353 {
354 Clear();
355 Check(OrthancPluginGetDicomForInstance(context_, &buffer_, instanceId.c_str()));
356 }
357
358
352 bool HttpDelete(OrthancPluginContext* context_, 359 bool HttpDelete(OrthancPluginContext* context_,
353 const std::string& url, 360 const std::string& url,
354 const std::string& username, 361 const std::string& username,
355 const std::string& password) 362 const std::string& password)
356 { 363 {