comparison Framework/Plugins/IDatabaseBackend.h @ 366:cd9521e04249 attach-custom-data

DatabaseBackendAdapterV4: added support for customData + revision when not already done
author Alain Mazy <am@osimis.io>
date Thu, 15 Sep 2022 18:12:34 +0200
parents 34e2b93a7ac1
children
comparison
equal deleted inserted replaced
365:7671fa7f099e 366:cd9521e04249
48 48
49 virtual IDatabaseBackendOutput* CreateOutput() = 0; 49 virtual IDatabaseBackendOutput* CreateOutput() = 0;
50 50
51 virtual bool HasRevisionsSupport() const = 0; 51 virtual bool HasRevisionsSupport() const = 0;
52 52
53 virtual bool HasAttachmentCustomDataSupport() const = 0;
54
53 virtual void AddAttachment(DatabaseManager& manager, 55 virtual void AddAttachment(DatabaseManager& manager,
54 int64_t id, 56 int64_t id,
55 const OrthancPluginAttachment& attachment, 57 const OrthancPluginAttachment& attachment,
56 int64_t revision) = 0; 58 int64_t revision) = 0;
59
60 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 0)
61
62 virtual void AddAttachment2(DatabaseManager& manager,
63 int64_t id,
64 const OrthancPluginAttachment2& attachment,
65 int64_t revision) = 0;
66 #endif
57 67
58 virtual void AttachChild(DatabaseManager& manager, 68 virtual void AttachChild(DatabaseManager& manager,
59 int64_t parent, 69 int64_t parent,
60 int64_t child) = 0; 70 int64_t child) = 0;
61 71