comparison Framework/Plugins/StorageBackend.h @ 246:483af3f35a4b

turning ResultFileValue into a base class, and implement its primitives for PostgreSQL
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Apr 2021 08:42:31 +0200
parents b97a537f4613
children 33fa478c119a
comparison
equal deleted inserted replaced
245:9d00e5e073e8 246:483af3f35a4b
63 63
64 virtual void ReadRange(IFileContentVisitor& visitor, 64 virtual void ReadRange(IFileContentVisitor& visitor,
65 const std::string& uuid, 65 const std::string& uuid,
66 OrthancPluginContentType type, 66 OrthancPluginContentType type,
67 uint64_t start, 67 uint64_t start,
68 uint64_t length) = 0; 68 size_t length) = 0;
69 69
70 virtual void Remove(const std::string& uuid, 70 virtual void Remove(const std::string& uuid,
71 OrthancPluginContentType type) = 0; 71 OrthancPluginContentType type) = 0;
72 }; 72 };
73 73
109 109
110 virtual void ReadRange(IFileContentVisitor& visitor, 110 virtual void ReadRange(IFileContentVisitor& visitor,
111 const std::string& uuid, 111 const std::string& uuid,
112 OrthancPluginContentType type, 112 OrthancPluginContentType type,
113 uint64_t start, 113 uint64_t start,
114 uint64_t length); 114 size_t length);
115 115
116 virtual void Remove(const std::string& uuid, 116 virtual void Remove(const std::string& uuid,
117 OrthancPluginContentType type); 117 OrthancPluginContentType type);
118 }; 118 };
119 119
146 static void ReadRangeToString(std::string& target, 146 static void ReadRangeToString(std::string& target,
147 IAccessor& accessor, 147 IAccessor& accessor,
148 const std::string& uuid, 148 const std::string& uuid,
149 OrthancPluginContentType type, 149 OrthancPluginContentType type,
150 uint64_t start, 150 uint64_t start,
151 uint64_t length); 151 size_t length);
152 }; 152 };
153 } 153 }