comparison OrthancServer/Plugins/Engine/OrthancPluginDatabase.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 d0f7c742d397
children f22c8fac764b
comparison
equal deleted inserted replaced
5247:eb2684260c19 5248:a7d95f951f8a
563 563
564 virtual void ApplyLookupResources(std::list<std::string>& resourcesId, 564 virtual void ApplyLookupResources(std::list<std::string>& resourcesId,
565 std::list<std::string>* instancesId, 565 std::list<std::string>* instancesId,
566 const std::vector<DatabaseConstraint>& lookup, 566 const std::vector<DatabaseConstraint>& lookup,
567 ResourceType queryLevel, 567 ResourceType queryLevel,
568 const std::set<std::string>& withLabels, 568 const std::set<std::string>& labels,
569 const std::set<std::string>& withoutLabels, 569 LabelsConstraint labelsConstraint,
570 uint32_t limit) ORTHANC_OVERRIDE 570 uint32_t limit) ORTHANC_OVERRIDE
571 { 571 {
572 if (!withLabels.empty() || 572 if (!labels.empty())
573 !withoutLabels.empty())
574 { 573 {
575 throw OrthancException(ErrorCode_InternalError); // "HasLabelsSupport()" has returned "false" 574 throw OrthancException(ErrorCode_InternalError); // "HasLabelsSupport()" has returned "false"
576 } 575 }
577 576
578 if (that_.extensions_.lookupResources == NULL) 577 if (that_.extensions_.lookupResources == NULL)