Mercurial > hg > orthanc
diff Core/FileStorage/FileStorageAccessor.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 | 6e7e5ed91c2d |
line wrap: on
line diff
--- a/Core/FileStorage/FileStorageAccessor.h Fri Sep 05 16:28:47 2014 +0200 +++ b/Core/FileStorage/FileStorageAccessor.h Fri Sep 05 17:01:42 2014 +0200 @@ -53,11 +53,19 @@ } virtual void Read(std::string& content, - const std::string& uuid) + const std::string& uuid, + FileContentType type) { - storage_.Read(content, uuid); + storage_.Read(content, uuid, type); } - virtual HttpFileSender* ConstructHttpFileSender(const std::string& uuid); + virtual HttpFileSender* ConstructHttpFileSender(const std::string& uuid, + FileContentType type); + + virtual void Remove(const std::string& uuid, + FileContentType type) + { + storage_.Remove(uuid, type); + } }; }