comparison OrthancFramework/Sources/JobsEngine/Operations/SequenceOfOperationsJob.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 50b0c69b653a
children 93c281752e7a
comparison
equal deleted inserted replaced
4309:73de065622ec 4310:2ae905070221
64 { 64 {
65 throw OrthancException(ErrorCode_NullPointer); 65 throw OrthancException(ErrorCode_NullPointer);
66 } 66 }
67 } 67 }
68 68
69 void AddOriginalInput(const JobOperationValue& value) 69 void AddOriginalInput(const IJobOperationValue& value)
70 { 70 {
71 if (currentInput_ != 0) 71 if (currentInput_ != 0)
72 { 72 {
73 // Cannot add input after processing has started 73 // Cannot add input after processing has started
74 throw OrthancException(ErrorCode_BadSequenceOfCalls); 74 throw OrthancException(ErrorCode_BadSequenceOfCalls);
120 if (IsDone()) 120 if (IsDone())
121 { 121 {
122 throw OrthancException(ErrorCode_BadSequenceOfCalls); 122 throw OrthancException(ErrorCode_BadSequenceOfCalls);
123 } 123 }
124 124
125 const JobOperationValue* input; 125 const IJobOperationValue* input;
126 126
127 if (currentInput_ < originalInputs_->GetSize()) 127 if (currentInput_ < originalInputs_->GetSize())
128 { 128 {
129 input = &originalInputs_->GetValue(currentInput_); 129 input = &originalInputs_->GetValue(currentInput_);
130 } 130 }
273 return that_.operations_.size(); 273 return that_.operations_.size();
274 } 274 }
275 275
276 276
277 void SequenceOfOperationsJob::Lock::AddInput(size_t index, 277 void SequenceOfOperationsJob::Lock::AddInput(size_t index,
278 const JobOperationValue& value) 278 const IJobOperationValue& value)
279 { 279 {
280 if (IsDone()) 280 if (IsDone())
281 { 281 {
282 throw OrthancException(ErrorCode_BadSequenceOfCalls); 282 throw OrthancException(ErrorCode_BadSequenceOfCalls);
283 } 283 }