diff OrthancServer/main.cpp @ 1134:ba9fd42284d0

preparing storage plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Sep 2014 12:53:49 +0200
parents f739d3f6cfcf
children 67c3c1e4a6e0
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Tue Sep 09 10:45:14 2014 +0200
+++ b/OrthancServer/main.cpp	Tue Sep 09 12:53:49 2014 +0200
@@ -376,7 +376,8 @@
   FilesystemStorage storage(storageDirectory.string());
   //FilesystemStorageWithoutDicom storage(storageDirectory.string());
 
-  ServerContext context(storage, indexDirectory);
+  ServerContext context(indexDirectory);
+  context.SetStorageArea(storage);
 
   LOG(WARNING) << "Storage directory: " << storageDirectory;
   LOG(WARNING) << "Index directory: " << indexDirectory;