comparison Framework/Toolbox/DownloadStack.cpp @ 87:4a541cd4fa83 wasm

OrthancVolumeImageLoader
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 26 May 2017 15:31:58 +0200
parents c2dc924f1a63
children 2eca030792aa
comparison
equal deleted inserted replaced
86:02c3a7a4938f 87:4a541cd4fa83
172 172
173 firstNode_ = value; 173 firstNode_ = value;
174 } 174 }
175 175
176 176
177 void DownloadStack::Writer::SetTopNode(unsigned int value) 177 void DownloadStack::SetTopNode(unsigned int value)
178 { 178 {
179 if (value >= that_.nodes_.size()) 179 if (value >= nodes_.size())
180 { 180 {
181 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 181 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
182 } 182 }
183 183
184 that_.SetTopNodeInternal(value); 184 SetTopNodeInternal(value);
185 } 185 }
186 186
187 187
188 void DownloadStack::Writer::SetTopNodePermissive(int value) 188 void DownloadStack::SetTopNodePermissive(int value)
189 { 189 {
190 if (value >= 0 && 190 if (value >= 0 &&
191 value < static_cast<int>(that_.nodes_.size())) 191 value < static_cast<int>(nodes_.size()))
192 { 192 {
193 that_.SetTopNodeInternal(value); 193 SetTopNodeInternal(value);
194 } 194 }
195 } 195 }
196 } 196 }