diff Framework/Plugins/GlobalProperties.h @ 221:73cc85f3d9c1

implementation of the "serverIdentifier" information for global properties
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Mar 2021 10:40:34 +0200
parents 3236894320d6
children 35598014f140
line wrap: on
line diff
--- a/Framework/Plugins/GlobalProperties.h	Mon Mar 29 16:39:20 2021 +0200
+++ b/Framework/Plugins/GlobalProperties.h	Tue Mar 30 10:40:34 2021 +0200
@@ -23,6 +23,8 @@
 
 #include "../Common/DatabaseManager.h"
 
+#define MISSING_SERVER_IDENTIFIER ""
+
 
 namespace Orthanc
 {
@@ -63,28 +65,34 @@
   bool LookupGlobalProperty(std::string& target /* out */,
                             IDatabase& db,
                             ITransaction& transaction,
+                            const std::string& serverIdentifier,
                             Orthanc::GlobalProperty property);
 
   bool LookupGlobalProperty(std::string& target /* out */,
                             DatabaseManager& manager,
+                            const std::string& serverIdentifier,
                             Orthanc::GlobalProperty property);
 
   void SetGlobalProperty(IDatabase& db,
                          ITransaction& transaction,
+                         const std::string& serverIdentifier,
                          Orthanc::GlobalProperty property,
                          const std::string& utf8);
 
   void SetGlobalProperty(DatabaseManager& manager,
+                         const std::string& serverIdentifier,
                          Orthanc::GlobalProperty property,
                          const std::string& utf8);
 
   bool LookupGlobalIntegerProperty(int& target,
                                    IDatabase& db,
                                    ITransaction& transaction,
+                                   const std::string& serverIdentifier,
                                    Orthanc::GlobalProperty property);
 
   void SetGlobalIntegerProperty(IDatabase& db,
                                 ITransaction& transaction,
+                                const std::string& serverIdentifier,
                                 Orthanc::GlobalProperty property,
                                 int value);
 }