comparison OrthancServer/Sources/Search/DatabaseLookup.cpp @ 5248:a7d95f951f8a db-protobuf

replaced "WithLabels" and "WithoutLabels", by "Labels" and "LabelsConstraint"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Apr 2023 22:18:37 +0200
parents 72dfa0ac84eb
children 48b8dae6dc77
comparison
equal deleted inserted replaced
5247:eb2684260c19 5248:a7d95f951f8a
368 368
369 return clone.release(); 369 return clone.release();
370 } 370 }
371 371
372 372
373 void DatabaseLookup::AddWithLabel(const std::string& label) 373 void DatabaseLookup::AddLabel(const std::string& label)
374 { 374 {
375 if (!label.empty()) 375 if (!label.empty())
376 { 376 {
377 ServerToolbox::CheckValidLabel(label); 377 ServerToolbox::CheckValidLabel(label);
378 withLabels_.insert(label); 378 labels_.insert(label);
379 }
380 }
381
382
383 void DatabaseLookup::AddWithoutLabel(const std::string& label)
384 {
385 if (!label.empty())
386 {
387 ServerToolbox::CheckValidLabel(label);
388 withoutLabels_.insert(label);
389 } 379 }
390 } 380 }
391 } 381 }