comparison Core/FileStorage/StorageAccessor.h @ 233:c11273198cef

rename
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 30 Nov 2012 14:30:05 +0100
parents 5368bbe813cf
children bdd72233b105
comparison
equal deleted inserted replaced
232:5368bbe813cf 233:c11273198cef
45 class StorageAccessor : boost::noncopyable 45 class StorageAccessor : boost::noncopyable
46 { 46 {
47 protected: 47 protected:
48 virtual FileInfo WriteInternal(const void* data, 48 virtual FileInfo WriteInternal(const void* data,
49 size_t size, 49 size_t size,
50 FileType type) = 0; 50 FileContentType type) = 0;
51 51
52 public: 52 public:
53 virtual ~StorageAccessor() 53 virtual ~StorageAccessor()
54 { 54 {
55 } 55 }
56 56
57 FileInfo Write(const void* data, 57 FileInfo Write(const void* data,
58 size_t size, 58 size_t size,
59 FileType type) 59 FileContentType type)
60 { 60 {
61 return WriteInternal(data, size, type); 61 return WriteInternal(data, size, type);
62 } 62 }
63 63
64 FileInfo Write(const std::vector<uint8_t>& content, 64 FileInfo Write(const std::vector<uint8_t>& content,
65 FileType type); 65 FileContentType type);
66 66
67 FileInfo Write(const std::string& content, 67 FileInfo Write(const std::string& content,
68 FileType type); 68 FileContentType type);
69 69
70 virtual void Read(std::string& content, 70 virtual void Read(std::string& content,
71 const std::string& uuid) = 0; 71 const std::string& uuid) = 0;
72 72
73 virtual HttpFileSender* ConstructHttpFileSender(const std::string& uuid) = 0; 73 virtual HttpFileSender* ConstructHttpFileSender(const std::string& uuid) = 0;