comparison OrthancServer/ServerContext.h @ 236:6d9be2b470b4

compression
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 30 Nov 2012 15:09:16 +0100
parents 7c1faef915a4
children 4031f73fe0e4
comparison
equal deleted inserted replaced
235:1e0595885a81 236:6d9be2b470b4
48 { 48 {
49 private: 49 private:
50 FileStorage storage_; 50 FileStorage storage_;
51 ServerIndex index_; 51 ServerIndex index_;
52 CompressedFileStorageAccessor accessor_; 52 CompressedFileStorageAccessor accessor_;
53 bool compressionEnabled_;
53 54
54 public: 55 public:
55 ServerContext(const boost::filesystem::path& path); 56 ServerContext(const boost::filesystem::path& path);
56 57
57 ServerIndex& GetIndex() 58 ServerIndex& GetIndex()
58 { 59 {
59 return index_; 60 return index_;
61 }
62
63 void SetCompressionEnabled(bool enabled);
64
65 bool IsCompressionEnabled() const
66 {
67 return compressionEnabled_;
60 } 68 }
61 69
62 void RemoveFile(const std::string& fileUuid); 70 void RemoveFile(const std::string& fileUuid);
63 71
64 StoreStatus Store(const char* dicomFile, 72 StoreStatus Store(const char* dicomFile,