comparison Framework/Plugins/IDatabaseBackend.h @ 261:34e2b93a7ac1

implementing interface for revisions in attachments
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Apr 2021 18:47:50 +0200
parents 793bbbe11287
children 16aac0287485 cd9521e04249
comparison
equal deleted inserted replaced
260:793bbbe11287 261:34e2b93a7ac1
50 50
51 virtual bool HasRevisionsSupport() const = 0; 51 virtual bool HasRevisionsSupport() const = 0;
52 52
53 virtual void AddAttachment(DatabaseManager& manager, 53 virtual void AddAttachment(DatabaseManager& manager,
54 int64_t id, 54 int64_t id,
55 const OrthancPluginAttachment& attachment) = 0; 55 const OrthancPluginAttachment& attachment,
56 int64_t revision) = 0;
56 57
57 virtual void AttachChild(DatabaseManager& manager, 58 virtual void AttachChild(DatabaseManager& manager,
58 int64_t parent, 59 int64_t parent,
59 int64_t child) = 0; 60 int64_t child) = 0;
60 61
164 virtual void LogExportedResource(DatabaseManager& manager, 165 virtual void LogExportedResource(DatabaseManager& manager,
165 const OrthancPluginExportedResource& resource) = 0; 166 const OrthancPluginExportedResource& resource) = 0;
166 167
167 /* Use GetOutput().AnswerAttachment() */ 168 /* Use GetOutput().AnswerAttachment() */
168 virtual bool LookupAttachment(IDatabaseBackendOutput& output, 169 virtual bool LookupAttachment(IDatabaseBackendOutput& output,
170 int64_t& revision /*out*/,
169 DatabaseManager& manager, 171 DatabaseManager& manager,
170 int64_t id, 172 int64_t id,
171 int32_t contentType) = 0; 173 int32_t contentType) = 0;
172 174
173 virtual bool LookupGlobalProperty(std::string& target /*out*/, 175 virtual bool LookupGlobalProperty(std::string& target /*out*/,