Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.h @ 1126:bf67431a7383
handling of file content type in IStorageArea
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Sep 2014 17:01:42 +0200 |
parents | 790ff7a5b3bf |
children | 8dabdc0d3007 |
comparison
equal
deleted
inserted
replaced
1125:20ddab7e9ae8 | 1126:bf67431a7383 |
---|---|
75 | 75 |
76 void ApplyLuaOnStoredInstance(const std::string& instanceId, | 76 void ApplyLuaOnStoredInstance(const std::string& instanceId, |
77 const Json::Value& simplifiedDicom, | 77 const Json::Value& simplifiedDicom, |
78 const Json::Value& metadata); | 78 const Json::Value& metadata); |
79 | 79 |
80 IStorageArea& storage_; | |
81 ServerIndex index_; | 80 ServerIndex index_; |
82 CompressedFileStorageAccessor accessor_; | 81 CompressedFileStorageAccessor accessor_; |
83 bool compressionEnabled_; | 82 bool compressionEnabled_; |
84 | 83 |
85 DicomCacheProvider provider_; | 84 DicomCacheProvider provider_; |
147 bool IsCompressionEnabled() const | 146 bool IsCompressionEnabled() const |
148 { | 147 { |
149 return compressionEnabled_; | 148 return compressionEnabled_; |
150 } | 149 } |
151 | 150 |
152 void RemoveFile(const std::string& fileUuid); | 151 void RemoveFile(const std::string& fileUuid, |
152 FileContentType type); | |
153 | 153 |
154 bool AddAttachment(const std::string& resourceId, | 154 bool AddAttachment(const std::string& resourceId, |
155 FileContentType attachmentType, | 155 FileContentType attachmentType, |
156 const void* data, | 156 const void* data, |
157 size_t size); | 157 size_t size); |