comparison OrthancServer/Plugins/Engine/OrthancPluginDatabaseV3.h @ 4628:5fabef29c4ff db-changes

added new primitive "hasRevisionsSupport" in database SDK, added "CheckRevisions" to URI "/system"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 20 Apr 2021 15:59:31 +0200
parents 2c702cfae274
children f0038043fb97 7053502fbf97
comparison
equal deleted inserted replaced
4627:f7d5372b59b3 4628:5fabef29c4ff
51 PluginsErrorDictionary& errorDictionary_; 51 PluginsErrorDictionary& errorDictionary_;
52 OrthancPluginDatabaseBackendV3 backend_; 52 OrthancPluginDatabaseBackendV3 backend_;
53 void* database_; 53 void* database_;
54 std::string serverIdentifier_; 54 std::string serverIdentifier_;
55 55
56 void CheckSuccess(OrthancPluginErrorCode code); 56 void CheckSuccess(OrthancPluginErrorCode code) const;
57 57
58 public: 58 public:
59 OrthancPluginDatabaseV3(SharedLibrary& library, 59 OrthancPluginDatabaseV3(SharedLibrary& library,
60 PluginsErrorDictionary& errorDictionary, 60 PluginsErrorDictionary& errorDictionary,
61 const OrthancPluginDatabaseBackendV3* backend, 61 const OrthancPluginDatabaseBackendV3* backend,
89 89
90 virtual unsigned int GetDatabaseVersion() ORTHANC_OVERRIDE; 90 virtual unsigned int GetDatabaseVersion() ORTHANC_OVERRIDE;
91 91
92 virtual void Upgrade(unsigned int targetVersion, 92 virtual void Upgrade(unsigned int targetVersion,
93 IStorageArea& storageArea) ORTHANC_OVERRIDE; 93 IStorageArea& storageArea) ORTHANC_OVERRIDE;
94
95 virtual bool HasRevisionsSupport() const ORTHANC_OVERRIDE;
94 }; 96 };
95 } 97 }
96 98
97 #endif 99 #endif