diff OrthancServer/Sources/Database/StatelessDatabaseOperations.h @ 5249:f22c8fac764b db-protobuf

added "/tools/labels" to list all the labels that are associated with any resource
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Apr 2023 22:54:57 +0200
parents a7d95f951f8a
children acaea72a3e91
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/StatelessDatabaseOperations.h	Fri Apr 07 22:18:37 2023 +0200
+++ b/OrthancServer/Sources/Database/StatelessDatabaseOperations.h	Fri Apr 07 22:54:57 2023 +0200
@@ -369,6 +369,11 @@
       {
         transaction_.ListLabels(target, id);
       }
+
+      void ListAllLabels(std::set<std::string>& target)
+      {
+        transaction_.ListAllLabels(target);
+      }
     };
 
 
@@ -762,6 +767,8 @@
                     const std::string& publicId,
                     ResourceType level);
 
+    void ListAllLabels(std::set<std::string>& target);
+
     void ModifyLabel(const std::string& publicId,
                      ResourceType level,
                      const std::string& label,