Mercurial > hg > orthanc
diff Plugins/Engine/OrthancPluginDatabase.h @ 1630:ffd23c0104af
"/system" URI gives information about the plugins used for storage area and DB back-end
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2015 13:26:45 +0200 |
parents | c40fe92a68e7 |
children | eb8fbcf008b5 |
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPluginDatabase.h Fri Sep 18 17:45:59 2015 +0200 +++ b/Plugins/Engine/OrthancPluginDatabase.h Mon Sep 21 13:26:45 2015 +0200 @@ -34,6 +34,7 @@ #include "../../OrthancServer/IDatabaseWrapper.h" #include "../Include/orthanc/OrthancCDatabasePlugin.h" +#include "SharedLibrary.h" namespace Orthanc { @@ -44,6 +45,7 @@ typedef std::pair<int64_t, ResourceType> AnswerResource; + SharedLibrary& library_; _OrthancPluginDatabaseAnswerType type_; OrthancPluginDatabaseBackend backend_; OrthancPluginDatabaseExtensions extensions_; @@ -77,11 +79,17 @@ bool ForwardSingleAnswer(int64_t& target); public: - OrthancPluginDatabase(const OrthancPluginDatabaseBackend& backend, + OrthancPluginDatabase(SharedLibrary& library, + const OrthancPluginDatabaseBackend& backend, const OrthancPluginDatabaseExtensions* extensions, size_t extensionsSize, void *payload); + const SharedLibrary& GetSharedLibrary() const + { + return library_; + } + virtual void AddAttachment(int64_t id, const FileInfo& attachment);