Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.h @ 388:466c992a9a42 lua-scripting
testing filters inside orthanc
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 29 Apr 2013 17:30:38 +0200 |
parents | 2cef9c2d4148 |
children | 2d269089078f |
comparison
equal
deleted
inserted
replaced
386:7dec4f3c922c | 388:466c992a9a42 |
---|---|
34 | 34 |
35 #include "../Core/Cache/MemoryCache.h" | 35 #include "../Core/Cache/MemoryCache.h" |
36 #include "../Core/FileStorage/CompressedFileStorageAccessor.h" | 36 #include "../Core/FileStorage/CompressedFileStorageAccessor.h" |
37 #include "../Core/FileStorage/FileStorage.h" | 37 #include "../Core/FileStorage/FileStorage.h" |
38 #include "../Core/RestApi/RestApiOutput.h" | 38 #include "../Core/RestApi/RestApiOutput.h" |
39 #include "../Core/Lua/LuaContext.h" | |
39 #include "ServerIndex.h" | 40 #include "ServerIndex.h" |
40 #include "FromDcmtkBridge.h" | 41 #include "FromDcmtkBridge.h" |
41 | 42 |
42 namespace Orthanc | 43 namespace Orthanc |
43 { | 44 { |
67 CompressedFileStorageAccessor accessor_; | 68 CompressedFileStorageAccessor accessor_; |
68 bool compressionEnabled_; | 69 bool compressionEnabled_; |
69 | 70 |
70 DicomCacheProvider provider_; | 71 DicomCacheProvider provider_; |
71 MemoryCache dicomCache_; | 72 MemoryCache dicomCache_; |
73 | |
74 LuaContext lua_; | |
72 | 75 |
73 public: | 76 public: |
74 ServerContext(const boost::filesystem::path& storagePath, | 77 ServerContext(const boost::filesystem::path& storagePath, |
75 const boost::filesystem::path& indexPath); | 78 const boost::filesystem::path& indexPath); |
76 | 79 |
127 const std::string& instancePublicId, | 130 const std::string& instancePublicId, |
128 FileContentType content); | 131 FileContentType content); |
129 | 132 |
130 // TODO IMPLEMENT MULTITHREADING FOR THIS METHOD | 133 // TODO IMPLEMENT MULTITHREADING FOR THIS METHOD |
131 ParsedDicomFile& GetDicomFile(const std::string& instancePublicId); | 134 ParsedDicomFile& GetDicomFile(const std::string& instancePublicId); |
135 | |
136 LuaContext& GetLuaContext() | |
137 { | |
138 return lua_; | |
139 } | |
132 }; | 140 }; |
133 } | 141 } |