comparison OrthancServer/Sources/Search/DicomTagConstraint.cpp @ 4978:2cfa50d8eb60 more-tags

Speed-up handling of DicomModalitiesInStudy in C-Find and tools/find queries
author Alain Mazy <am@osimis.io>
date Wed, 20 Apr 2022 14:36:47 +0200
parents 6eff25f70121
children 0ea402b4d901
comparison
equal deleted inserted replaced
4977:dad71e6da406 4978:2cfa50d8eb60
212 return *values_.begin(); 212 return *values_.begin();
213 } 213 }
214 } 214 }
215 215
216 216
217 bool DicomTagConstraint::IsMatch(const std::string& value) 217 bool DicomTagConstraint::IsMatch(const std::string& value) const
218 { 218 {
219 NormalizedString source(value, caseSensitive_); 219 NormalizedString source(value, caseSensitive_);
220 220
221 switch (constraintType_) 221 switch (constraintType_)
222 { 222 {
267 throw OrthancException(ErrorCode_InternalError); 267 throw OrthancException(ErrorCode_InternalError);
268 } 268 }
269 } 269 }
270 270
271 271
272 bool DicomTagConstraint::IsMatch(const DicomMap& value) 272 bool DicomTagConstraint::IsMatch(const DicomMap& value) const
273 { 273 {
274 const DicomValue* tmp = value.TestAndGetValue(tag_); 274 const DicomValue* tmp = value.TestAndGetValue(tag_);
275 275
276 if (tmp == NULL || 276 if (tmp == NULL ||
277 tmp->IsNull()) 277 tmp->IsNull())