diff OrthancServer/ServerContext.h @ 1134:ba9fd42284d0

preparing storage plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Sep 2014 12:53:49 +0200
parents 382e162c074c
children 0479d02c6778
line wrap: on
line diff
--- a/OrthancServer/ServerContext.h	Tue Sep 09 10:45:14 2014 +0200
+++ b/OrthancServer/ServerContext.h	Tue Sep 09 12:53:49 2014 +0200
@@ -134,8 +134,12 @@
     };
 
 
-    ServerContext(IStorageArea& storage,
-                  const boost::filesystem::path& indexPath);
+    ServerContext(const boost::filesystem::path& indexPath);
+
+    void SetStorageArea(IStorageArea& storage)
+    {
+      accessor_.SetStorageArea(storage);
+    }
 
     ServerIndex& GetIndex()
     {