Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerJobs/Operations/StorePeerOperation.cpp @ 4310:2ae905070221
renaming pure interface JobOperationValue as IJobOperationValue
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Nov 2020 14:40:51 +0100 |
parents | 05b8fd21089c |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4309:73de065622ec | 4310:2ae905070221 |
---|---|
42 #include "../../../../OrthancFramework/Sources/SerializationToolbox.h" | 42 #include "../../../../OrthancFramework/Sources/SerializationToolbox.h" |
43 | 43 |
44 namespace Orthanc | 44 namespace Orthanc |
45 { | 45 { |
46 void StorePeerOperation::Apply(JobOperationValues& outputs, | 46 void StorePeerOperation::Apply(JobOperationValues& outputs, |
47 const JobOperationValue& input) | 47 const IJobOperationValue& input) |
48 { | 48 { |
49 // Configure the HTTP client | 49 // Configure the HTTP client |
50 HttpClient client(peer_, "instances"); | 50 HttpClient client(peer_, "instances"); |
51 client.SetMethod(HttpMethod_Post); | 51 client.SetMethod(HttpMethod_Post); |
52 | 52 |
53 if (input.GetType() != JobOperationValue::Type_DicomInstance) | 53 if (input.GetType() != IJobOperationValue::Type_DicomInstance) |
54 { | 54 { |
55 throw OrthancException(ErrorCode_BadParameterType); | 55 throw OrthancException(ErrorCode_BadParameterType); |
56 } | 56 } |
57 | 57 |
58 const DicomInstanceOperationValue& instance = | 58 const DicomInstanceOperationValue& instance = |