Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.h @ 5209:154d37a56500 db-protobuf
started implementation of transactions
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 31 Mar 2023 17:33:33 +0200 |
parents | e7529e6241d2 |
children | 27e6ec2811e3 |
comparison
equal
deleted
inserted
replaced
5207:e7529e6241d2 | 5209:154d37a56500 |
---|---|
36 private: | 36 private: |
37 class Transaction; | 37 class Transaction; |
38 | 38 |
39 SharedLibrary& library_; | 39 SharedLibrary& library_; |
40 PluginsErrorDictionary& errorDictionary_; | 40 PluginsErrorDictionary& errorDictionary_; |
41 _OrthancPluginRegisterDatabaseBackendV4 database_; | 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 bool hasFlushToDisk_; |
46 bool hasRevisionsSupport_; | 46 bool hasRevisionsSupport_; |
52 PluginsErrorDictionary& errorDictionary, | 52 PluginsErrorDictionary& errorDictionary, |
53 const _OrthancPluginRegisterDatabaseBackendV4& database, | 53 const _OrthancPluginRegisterDatabaseBackendV4& database, |
54 const std::string& serverIdentifier); | 54 const std::string& serverIdentifier); |
55 | 55 |
56 virtual ~OrthancPluginDatabaseV4(); | 56 virtual ~OrthancPluginDatabaseV4(); |
57 | |
58 const _OrthancPluginRegisterDatabaseBackendV4& GetDefinition() const | |
59 { | |
60 return definition_; | |
61 } | |
62 | |
63 PluginsErrorDictionary& GetErrorDictionary() const | |
64 { | |
65 return errorDictionary_; | |
66 } | |
57 | 67 |
58 virtual void Open() ORTHANC_OVERRIDE; | 68 virtual void Open() ORTHANC_OVERRIDE; |
59 | 69 |
60 virtual void Close() ORTHANC_OVERRIDE; | 70 virtual void Close() ORTHANC_OVERRIDE; |
61 | 71 |