Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.h @ 407:2d269089078f
reintegration of lua scripting into mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 02 May 2013 16:49:28 +0200 |
parents | 4d5f0857ec9c 466c992a9a42 |
children | e318e9d49815 2d0a347e8cfc |
comparison
equal
deleted
inserted
replaced
406:fb1d988a978b | 407:2d269089078f |
---|---|
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 } |