Mercurial > hg > orthanc
comparison OrthancFramework/Sources/JobsEngine/Operations/JobOperationValues.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 | b30a8de92ad9 |
children | 93c281752e7a |
comparison
equal
deleted
inserted
replaced
4309:73de065622ec | 4310:2ae905070221 |
---|---|
88 { | 88 { |
89 values_.reserve(count); | 89 values_.reserve(count); |
90 } | 90 } |
91 | 91 |
92 | 92 |
93 void JobOperationValues::Append(JobOperationValue* value) // Takes ownership | 93 void JobOperationValues::Append(IJobOperationValue* value) // Takes ownership |
94 { | 94 { |
95 if (value == NULL) | 95 if (value == NULL) |
96 { | 96 { |
97 throw OrthancException(ErrorCode_NullPointer); | 97 throw OrthancException(ErrorCode_NullPointer); |
98 } | 98 } |
106 { | 106 { |
107 return values_.size(); | 107 return values_.size(); |
108 } | 108 } |
109 | 109 |
110 | 110 |
111 JobOperationValue& JobOperationValues::GetValue(size_t index) const | 111 IJobOperationValue& JobOperationValues::GetValue(size_t index) const |
112 { | 112 { |
113 if (index >= values_.size()) | 113 if (index >= values_.size()) |
114 { | 114 { |
115 throw OrthancException(ErrorCode_ParameterOutOfRange); | 115 throw OrthancException(ErrorCode_ParameterOutOfRange); |
116 } | 116 } |