diff Framework/Plugins/IndexBackend.cpp @ 401:a8774581adfc db-protobuf

replaced "WithLabels" and "WithoutLabels", by "Labels" and "LabelsConstraint"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Apr 2023 22:32:15 +0200
parents 897253c21208
children 82921a29349a
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.cpp	Fri Apr 07 15:43:42 2023 +0200
+++ b/Framework/Plugins/IndexBackend.cpp	Fri Apr 07 22:32:15 2023 +0200
@@ -22,7 +22,6 @@
 
 #include "IndexBackend.h"
 
-#include "../../Resources/Orthanc/Databases/ISqlLookupFormatter.h"
 #include "../Common/BinaryStringValue.h"
 #include "../Common/Integer64Value.h"
 #include "../Common/Utf8StringValue.h"
@@ -2065,17 +2064,16 @@
                                      DatabaseManager& manager,
                                      const std::vector<Orthanc::DatabaseConstraint>& lookup,
                                      OrthancPluginResourceType queryLevel,
-                                     const std::set<std::string>& withLabels,
-                                     const std::set<std::string>& withoutLabels,
+                                     const std::set<std::string>& labels,
+                                     Orthanc::LabelsConstraint labelsConstraint,
                                      uint32_t limit,
                                      bool requestSomeInstance)
   {
     LookupFormatter formatter(manager.GetDialect());
 
     std::string sql;
-    Orthanc::ISqlLookupFormatter::Apply(
-      sql, formatter, lookup, Orthanc::Plugins::Convert(queryLevel),
-      withLabels, withoutLabels, limit);
+    Orthanc::ISqlLookupFormatter::Apply(sql, formatter, lookup, Orthanc::Plugins::Convert(queryLevel),
+                                        labels, labelsConstraint, limit);
 
     if (requestSomeInstance)
     {