comparison Framework/Loaders/DicomStructureSetLoader.cpp @ 1128:8e3763d1736a broker

removing CustomOracleCommand
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 Nov 2019 22:39:25 +0100
parents e713f1a99861
children
comparison
equal deleted inserted replaced
1127:3308ef083297 1128:8e3763d1736a
142 { 142 {
143 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand); 143 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand);
144 command->SetHttpHeader("Accept-Encoding", "gzip"); 144 command->SetHttpHeader("Accept-Encoding", "gzip");
145 std::string uri = "/instances/" + instanceId + "/tags"; 145 std::string uri = "/instances/" + instanceId + "/tags";
146 command->SetUri(uri); 146 command->SetUri(uri);
147 command->SetPayload(new AddReferencedInstance(loader, instanceId)); 147 command->AcquirePayload(new AddReferencedInstance(loader, instanceId));
148 Schedule(command.release()); 148 Schedule(command.release());
149 } 149 }
150 } 150 }
151 }; 151 };
152 152
229 { 229 {
230 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand); 230 std::auto_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand);
231 command->SetUri("/tools/lookup"); 231 command->SetUri("/tools/lookup");
232 command->SetMethod(Orthanc::HttpMethod_Post); 232 command->SetMethod(Orthanc::HttpMethod_Post);
233 command->SetBody(*it); 233 command->SetBody(*it);
234 command->SetPayload(new LookupInstance(loader, *it)); 234 command->AcquirePayload(new LookupInstance(loader, *it));
235 Schedule(command.release()); 235 Schedule(command.release());
236 } 236 }
237 } 237 }
238 }; 238 };
239 239
380 command->SetHttpHeader("Accept-Encoding", "gzip"); 380 command->SetHttpHeader("Accept-Encoding", "gzip");
381 381
382 std::string uri = "/instances/" + instanceId + "/tags?ignore-length=3006-0050"; 382 std::string uri = "/instances/" + instanceId + "/tags?ignore-length=3006-0050";
383 383
384 command->SetUri(uri); 384 command->SetUri(uri);
385 command->SetPayload(new LoadStructure(*this)); 385 command->AcquirePayload(new LoadStructure(*this));
386 Schedule(command.release()); 386 Schedule(command.release());
387 } 387 }
388 } 388 }
389 389
390 390