Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.h @ 5455:176bc05f85f4 pg-transactions
DB: new Capabilities class to manage future new methods from DB plugins + Added IncrementGlobalProperty
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 07 Dec 2023 12:04:11 +0100 |
parents | df39c7583a49 |
children | b3ebe249ed5b |
comparison
equal
deleted
inserted
replaced
5454:099d45f49fe1 | 5455:176bc05f85f4 |
---|---|
40 PluginsErrorDictionary& errorDictionary_; | 40 PluginsErrorDictionary& errorDictionary_; |
41 _OrthancPluginRegisterDatabaseBackendV4 definition_; | 41 _OrthancPluginRegisterDatabaseBackendV4 definition_; |
42 std::string serverIdentifier_; | 42 std::string serverIdentifier_; |
43 bool open_; | 43 bool open_; |
44 unsigned int databaseVersion_; | 44 unsigned int databaseVersion_; |
45 bool hasFlushToDisk_; | 45 IDatabaseWrapper::Capabilities dbCapabilities_; |
46 bool hasRevisionsSupport_; | |
47 bool hasLabelsSupport_; | |
48 | 46 |
49 void CheckSuccess(OrthancPluginErrorCode code) const; | 47 void CheckSuccess(OrthancPluginErrorCode code) const; |
50 | 48 |
51 public: | 49 public: |
52 OrthancPluginDatabaseV4(SharedLibrary& library, | 50 OrthancPluginDatabaseV4(SharedLibrary& library, |
80 return library_; | 78 return library_; |
81 } | 79 } |
82 | 80 |
83 virtual void FlushToDisk() ORTHANC_OVERRIDE; | 81 virtual void FlushToDisk() ORTHANC_OVERRIDE; |
84 | 82 |
85 virtual bool HasFlushToDisk() const ORTHANC_OVERRIDE; | |
86 | |
87 virtual IDatabaseWrapper::ITransaction* StartTransaction(TransactionType type, | 83 virtual IDatabaseWrapper::ITransaction* StartTransaction(TransactionType type, |
88 IDatabaseListener& listener) | 84 IDatabaseListener& listener) |
89 ORTHANC_OVERRIDE; | 85 ORTHANC_OVERRIDE; |
90 | 86 |
91 virtual unsigned int GetDatabaseVersion() ORTHANC_OVERRIDE; | 87 virtual unsigned int GetDatabaseVersion() ORTHANC_OVERRIDE; |
92 | 88 |
93 virtual void Upgrade(unsigned int targetVersion, | 89 virtual void Upgrade(unsigned int targetVersion, |
94 IStorageArea& storageArea) ORTHANC_OVERRIDE; | 90 IStorageArea& storageArea) ORTHANC_OVERRIDE; |
95 | 91 |
96 virtual bool HasRevisionsSupport() const ORTHANC_OVERRIDE; | 92 virtual const IDatabaseWrapper::Capabilities& GetDatabaseCapabilities() const ORTHANC_OVERRIDE; |
97 | |
98 virtual bool HasLabelsSupport() const ORTHANC_OVERRIDE; | |
99 }; | 93 }; |
100 } | 94 } |
101 | 95 |
102 #endif | 96 #endif |