Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.h Fri Nov 30 14:37:48 2012 +0100 +++ b/OrthancServer/ServerContext.h Fri Nov 30 15:09:16 2012 +0100 @@ -50,6 +50,7 @@ FileStorage storage_; ServerIndex index_; CompressedFileStorageAccessor accessor_; + bool compressionEnabled_; public: ServerContext(const boost::filesystem::path& path); @@ -59,6 +60,13 @@ return index_; } + void SetCompressionEnabled(bool enabled); + + bool IsCompressionEnabled() const + { + return compressionEnabled_; + } + void RemoveFile(const std::string& fileUuid); StoreStatus Store(const char* dicomFile,