comparison OrthancCppClient/Instance.cpp @ 728:d380222b4c2a

Load a raw tag from the DICOM file
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 21 Feb 2014 10:12:33 +0100
parents 2d0a347e8cfc
children 37adac56017a
comparison
equal deleted inserted replaced
727:52b5316a2517 728:d380222b4c2a
263 { 263 {
264 return &((*dicom_) [0]); 264 return &((*dicom_) [0]);
265 } 265 }
266 } 266 }
267 267
268
269 void Instance::LoadTagContent(const char* path)
270 {
271 Orthanc::HttpClient client(connection_.GetHttpClient());
272 client.SetUrl(std::string(connection_.GetOrthancUrl()) + "/instances/" + id_ + "/content/" + path);
273
274 if (!client.Apply(content_))
275 {
276 throw OrthancClientException(Orthanc::ErrorCode_UnknownResource);
277 }
278 }
279
280
281 const char* Instance::GetLoadedTagContent() const
282 {
283 return content_.c_str();
284 }
268 } 285 }