Mercurial > hg > orthanc
diff Plugins/Engine/OrthancPluginDatabase.h @ 1672:4c5a85c3ff43 db-changes
sample database plugin now working
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 02 Oct 2015 12:20:49 +0200 |
parents | de1413733c97 |
children | 2ad22b2970a2 |
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPluginDatabase.h Thu Oct 01 17:44:43 2015 +0200 +++ b/Plugins/Engine/OrthancPluginDatabase.h Fri Oct 02 12:20:49 2015 +0200 @@ -72,6 +72,8 @@ return reinterpret_cast<OrthancPluginDatabaseContext*>(this); } + void CheckSuccess(OrthancPluginErrorCode code); + void ResetAnswers(); void ForwardAnswers(std::list<int64_t>& target); @@ -90,6 +92,16 @@ size_t extensionsSize, void *payload); + virtual void Open() + { + CheckSuccess(backend_.open(payload_)); + } + + virtual void Close() + { + CheckSuccess(backend_.close(payload_)); + } + const SharedLibrary& GetSharedLibrary() const { return library_;