diff OrthancServer/ServerContext.cpp @ 1124:790ff7a5b3bf

IStorageArea abstraction
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Sep 2014 16:28:34 +0200
parents ace99e272203
children bf67431a7383
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp	Fri Sep 05 15:59:04 2014 +0200
+++ b/OrthancServer/ServerContext.cpp	Fri Sep 05 16:28:34 2014 +0200
@@ -71,9 +71,9 @@
 
 namespace Orthanc
 {
-  ServerContext::ServerContext(const boost::filesystem::path& storagePath,
+  ServerContext::ServerContext(IStorageArea& storage,
                                const boost::filesystem::path& indexPath) :
-    storage_(storagePath.string()),
+    storage_(storage),
     index_(*this, indexPath.string()),
     accessor_(storage_),
     compressionEnabled_(false),