diff 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
line wrap: on
line diff
--- a/OrthancServer/Sources/Search/DatabaseLookup.cpp	Mon Apr 03 17:00:12 2023 +0200
+++ b/OrthancServer/Sources/Search/DatabaseLookup.cpp	Mon Apr 03 18:09:04 2023 +0200
@@ -368,4 +368,30 @@
 
     return clone.release();
   }
+
+
+  void DatabaseLookup::AddWithLabel(const std::string& label)
+  {
+    if (label.empty())
+    {
+      throw OrthancException(ErrorCode_ParameterOutOfRange);
+    }
+    else
+    {
+      withLabels_.insert(label);
+    }
+  }
+  
+
+  void DatabaseLookup::AddWithoutLabel(const std::string& label)
+  {
+    if (label.empty())
+    {
+      throw OrthancException(ErrorCode_ParameterOutOfRange);
+    }
+    else
+    {
+      withoutLabels_.insert(label);
+    }
+  }
 }