comparison OrthancServer/ServerContext.cpp @ 1247:32fcc5dc7562

abstraction
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 08 Dec 2014 13:54:27 +0100
parents f1c01451a8ee
children 88010d8e12cf
comparison
equal deleted inserted replaced
1246:54bf0f0245f4 1247:32fcc5dc7562
69 * locking. 69 * locking.
70 **/ 70 **/
71 71
72 namespace Orthanc 72 namespace Orthanc
73 { 73 {
74 ServerContext::ServerContext(const boost::filesystem::path& indexPath) : 74 ServerContext::ServerContext(IDatabaseWrapper& database) :
75 index_(*this, indexPath.string()), 75 index_(*this, database),
76 compressionEnabled_(false), 76 compressionEnabled_(false),
77 provider_(*this), 77 provider_(*this),
78 dicomCache_(provider_, DICOM_CACHE_SIZE), 78 dicomCache_(provider_, DICOM_CACHE_SIZE),
79 scheduler_(Configuration::GetGlobalIntegerParameter("LimitJobs", 10)), 79 scheduler_(Configuration::GetGlobalIntegerParameter("LimitJobs", 10)),
80 plugins_(NULL), 80 plugins_(NULL),