Mercurial > hg > orthanc
comparison OrthancServer/Sources/Search/DatabaseLookup.cpp @ 5220:df39c7583a49 db-protobuf
preparing virtual methods for labels
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Apr 2023 18:09:04 +0200 |
parents | 0ea402b4d901 |
children | 72dfa0ac84eb |
comparison
equal
deleted
inserted
replaced
5218:afa96af2eb5a | 5220:df39c7583a49 |
---|---|
366 clone->AddConstraintInternal(new DicomTagConstraint(*constraints_[i])); | 366 clone->AddConstraintInternal(new DicomTagConstraint(*constraints_[i])); |
367 } | 367 } |
368 | 368 |
369 return clone.release(); | 369 return clone.release(); |
370 } | 370 } |
371 | |
372 | |
373 void DatabaseLookup::AddWithLabel(const std::string& label) | |
374 { | |
375 if (label.empty()) | |
376 { | |
377 throw OrthancException(ErrorCode_ParameterOutOfRange); | |
378 } | |
379 else | |
380 { | |
381 withLabels_.insert(label); | |
382 } | |
383 } | |
384 | |
385 | |
386 void DatabaseLookup::AddWithoutLabel(const std::string& label) | |
387 { | |
388 if (label.empty()) | |
389 { | |
390 throw OrthancException(ErrorCode_ParameterOutOfRange); | |
391 } | |
392 else | |
393 { | |
394 withoutLabels_.insert(label); | |
395 } | |
396 } | |
371 } | 397 } |