Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1123:6c5a77637b23 | 1124:790ff7a5b3bf |
---|---|
69 * locking. | 69 * locking. |
70 **/ | 70 **/ |
71 | 71 |
72 namespace Orthanc | 72 namespace Orthanc |
73 { | 73 { |
74 ServerContext::ServerContext(const boost::filesystem::path& storagePath, | 74 ServerContext::ServerContext(IStorageArea& storage, |
75 const boost::filesystem::path& indexPath) : | 75 const boost::filesystem::path& indexPath) : |
76 storage_(storagePath.string()), | 76 storage_(storage), |
77 index_(*this, indexPath.string()), | 77 index_(*this, indexPath.string()), |
78 accessor_(storage_), | 78 accessor_(storage_), |
79 compressionEnabled_(false), | 79 compressionEnabled_(false), |
80 provider_(*this), | 80 provider_(*this), |
81 dicomCache_(provider_, DICOM_CACHE_SIZE), | 81 dicomCache_(provider_, DICOM_CACHE_SIZE), |