comparison OrthancServer/Plugins/Engine/OrthancPluginDatabaseV3.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
798 798
799 virtual void ApplyLookupResources(std::list<std::string>& resourcesId, 799 virtual void ApplyLookupResources(std::list<std::string>& resourcesId,
800 std::list<std::string>* instancesId, // Can be NULL if not needed 800 std::list<std::string>* instancesId, // Can be NULL if not needed
801 const std::vector<DatabaseConstraint>& lookup, 801 const std::vector<DatabaseConstraint>& lookup,
802 ResourceType queryLevel, 802 ResourceType queryLevel,
803 const std::set<std::string>& withLabels, 803 const std::set<std::string>& labels,
804 const std::set<std::string>& withoutLabels, 804 LabelsConstraint labelsConstraint,
805 uint32_t limit) ORTHANC_OVERRIDE 805 uint32_t limit) ORTHANC_OVERRIDE
806 { 806 {
807 if (!withLabels.empty() || 807 if (!labels.empty())
808 !withoutLabels.empty())
809 { 808 {
810 throw OrthancException(ErrorCode_InternalError); // "HasLabelsSupport()" has returned "false" 809 throw OrthancException(ErrorCode_InternalError); // "HasLabelsSupport()" has returned "false"
811 } 810 }
812 811
813 std::vector<OrthancPluginDatabaseConstraint> constraints; 812 std::vector<OrthancPluginDatabaseConstraint> constraints;