diff Framework/Plugins/IDatabaseBackend.h @ 396:7b3acfa95bd8 db-protobuf

implementation of list/add/remove labels in postgresql
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Apr 2023 19:00:29 +0200
parents d14e6ff04a5c
children a8774581adfc
line wrap: on
line diff
--- a/Framework/Plugins/IDatabaseBackend.h	Wed Apr 05 14:53:57 2023 +0200
+++ b/Framework/Plugins/IDatabaseBackend.h	Thu Apr 06 19:00:29 2023 +0200
@@ -324,15 +324,18 @@
     virtual bool HasLabelsSupport() const = 0;
 
     // New in Orthanc 1.12.0
-    virtual void AddLabel(int64_t resource,
+    virtual void AddLabel(DatabaseManager& manager,
+                          int64_t resource,
                           const std::string& label) = 0;
 
     // New in Orthanc 1.12.0
-    virtual void RemoveLabel(int64_t resource,
+    virtual void RemoveLabel(DatabaseManager& manager,
+                             int64_t resource,
                              const std::string& label) = 0;
 
     // New in Orthanc 1.12.0
-    virtual void ListLabels(std::set<std::string>& target,
+    virtual void ListLabels(std::list<std::string>& target,
+                            DatabaseManager& manager,
                             int64_t resource) = 0;
   };
 }