diff OrthancServer/DatabaseWrapper.h @ 206:4453a010d0db

flush to disk thread
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Nov 2012 12:03:18 +0100
parents 7f4acf490179
children 8098448bd827
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.h	Wed Nov 28 11:34:54 2012 +0100
+++ b/OrthancServer/DatabaseWrapper.h	Wed Nov 28 12:03:18 2012 +0100
@@ -62,13 +62,13 @@
     void Open();
 
   public:
-    void SetGlobalProperty(const std::string& name,
+    void SetGlobalProperty(GlobalProperty property,
                            const std::string& value);
 
     bool LookupGlobalProperty(std::string& target,
-                              const std::string& name);
+                              GlobalProperty property);
 
-    std::string GetGlobalProperty(const std::string& name,
+    std::string GetGlobalProperty(GlobalProperty property,
                                   const std::string& defaultValue = "");
 
     int64_t CreateResource(const std::string& publicId,
@@ -190,5 +190,10 @@
     {
       return db_.GetErrorMessage();
     }
+
+    void FlushToDisk()
+    {
+      db_.FlushToDisk();
+    }
   };
 }