comparison OrthancServer/ServerContext.cpp @ 394:9784f19f7e1b lua-scripting

path relative to configuration path, list of lua scripts
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 02 May 2013 11:02:15 +0200
parents 2cef9c2d4148
children 941ea46e9e26
comparison
equal deleted inserted replaced
392:7035f4a5b07b 394:9784f19f7e1b
33 #include "ServerContext.h" 33 #include "ServerContext.h"
34 34
35 #include "../Core/HttpServer/FilesystemHttpSender.h" 35 #include "../Core/HttpServer/FilesystemHttpSender.h"
36 36
37 #include <glog/logging.h> 37 #include <glog/logging.h>
38 #include <EmbeddedResources.h>
38 39
39 #define ENABLE_DICOM_CACHE 1 40 #define ENABLE_DICOM_CACHE 1
40 41
41 42
42 static const size_t DICOM_CACHE_SIZE = 2; 43 static const size_t DICOM_CACHE_SIZE = 2;
58 index_(*this, indexPath.string()), 59 index_(*this, indexPath.string()),
59 accessor_(storage_), 60 accessor_(storage_),
60 provider_(*this), 61 provider_(*this),
61 dicomCache_(provider_, DICOM_CACHE_SIZE) 62 dicomCache_(provider_, DICOM_CACHE_SIZE)
62 { 63 {
64 lua_.Execute(Orthanc::EmbeddedResources::LUA_TOOLBOX);
63 } 65 }
64 66
65 void ServerContext::SetCompressionEnabled(bool enabled) 67 void ServerContext::SetCompressionEnabled(bool enabled)
66 { 68 {
67 if (enabled) 69 if (enabled)