Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1125:20ddab7e9ae8 | 1126:bf67431a7383 |
---|---|
51 FileStorageAccessor(IStorageArea& storage) : storage_(storage) | 51 FileStorageAccessor(IStorageArea& storage) : storage_(storage) |
52 { | 52 { |
53 } | 53 } |
54 | 54 |
55 virtual void Read(std::string& content, | 55 virtual void Read(std::string& content, |
56 const std::string& uuid) | 56 const std::string& uuid, |
57 FileContentType type) | |
57 { | 58 { |
58 storage_.Read(content, uuid); | 59 storage_.Read(content, uuid, type); |
59 } | 60 } |
60 | 61 |
61 virtual HttpFileSender* ConstructHttpFileSender(const std::string& uuid); | 62 virtual HttpFileSender* ConstructHttpFileSender(const std::string& uuid, |
63 FileContentType type); | |
64 | |
65 virtual void Remove(const std::string& uuid, | |
66 FileContentType type) | |
67 { | |
68 storage_.Remove(uuid, type); | |
69 } | |
62 }; | 70 }; |
63 } | 71 } |