Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.h @ 771:537837f50fbb
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Apr 2014 14:15:26 +0200 |
parents | 2929e17f8447 |
children | aebf0071020e c9cdd53a6b31 |
comparison
equal
deleted
inserted
replaced
769:3f946e5c3802 | 771:537837f50fbb |
---|---|
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 "../Core/Lua/LuaContext.h" |
40 #include "ServerIndex.h" | 40 #include "ServerIndex.h" |
41 #include "FromDcmtkBridge.h" | 41 #include "FromDcmtkBridge.h" |
42 #include "DicomProtocol/ReusableDicomUserConnection.h" | |
42 | 43 |
43 namespace Orthanc | 44 namespace Orthanc |
44 { | 45 { |
45 /** | 46 /** |
46 * This class is responsible for maintaining the storage area on the | 47 * This class is responsible for maintaining the storage area on the |
68 CompressedFileStorageAccessor accessor_; | 69 CompressedFileStorageAccessor accessor_; |
69 bool compressionEnabled_; | 70 bool compressionEnabled_; |
70 | 71 |
71 DicomCacheProvider provider_; | 72 DicomCacheProvider provider_; |
72 MemoryCache dicomCache_; | 73 MemoryCache dicomCache_; |
74 ReusableDicomUserConnection scu_; | |
73 | 75 |
74 LuaContext lua_; | 76 LuaContext lua_; |
75 | 77 |
76 public: | 78 public: |
77 ServerContext(const boost::filesystem::path& storagePath, | 79 ServerContext(const boost::filesystem::path& storagePath, |
148 | 150 |
149 bool IsStoreMD5ForAttachments() const | 151 bool IsStoreMD5ForAttachments() const |
150 { | 152 { |
151 return accessor_.IsStoreMD5(); | 153 return accessor_.IsStoreMD5(); |
152 } | 154 } |
155 | |
156 ReusableDicomUserConnection& GetReusableDicomUserConnection() | |
157 { | |
158 return scu_; | |
159 } | |
153 }; | 160 }; |
154 } | 161 } |