comparison OrthancServer/main.cpp @ 376:2cef9c2d4148

separate path for SQLite index, manual loading of external dictionaries
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 17 Apr 2013 11:13:51 +0200
parents b9bc31c6b639
children ff647eedfbe1 466c992a9a42
comparison
equal deleted inserted replaced
375:d1ea72f1c967 376:2cef9c2d4148
208 { 208 {
209 OrthancInitialize(); 209 OrthancInitialize();
210 } 210 }
211 211
212 boost::filesystem::path storageDirectory = GetGlobalStringParameter("StorageDirectory", "OrthancStorage"); 212 boost::filesystem::path storageDirectory = GetGlobalStringParameter("StorageDirectory", "OrthancStorage");
213 ServerContext context(storageDirectory); 213 boost::filesystem::path indexDirectory = GetGlobalStringParameter("IndexDirectory", storageDirectory.string());
214 ServerContext context(storageDirectory, indexDirectory);
215
216 LOG(WARNING) << "Storage directory: " << storageDirectory;
217 LOG(WARNING) << "Index directory: " << indexDirectory;
218
214 context.SetCompressionEnabled(GetGlobalBoolParameter("StorageCompression", false)); 219 context.SetCompressionEnabled(GetGlobalBoolParameter("StorageCompression", false));
215 220
216 try 221 try
217 { 222 {
218 context.GetIndex().SetMaximumPatientCount(GetGlobalIntegerParameter("MaximumPatientCount", 0)); 223 context.GetIndex().SetMaximumPatientCount(GetGlobalIntegerParameter("MaximumPatientCount", 0));