Mercurial > hg > orthanc
diff Plugins/Engine/OrthancPlugins.h @ 1310:61ce8147f30d db-changes
custom database back-end
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 11 Feb 2015 10:40:08 +0100 |
parents | 50632b89e294 |
children | b7351ecb79b4 |
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.h Wed Feb 11 10:36:22 2015 +0100 +++ b/Plugins/Engine/OrthancPlugins.h Wed Feb 11 10:40:08 2015 +0100 @@ -36,7 +36,7 @@ #include "../../Core/HttpServer/HttpHandler.h" #include "../../OrthancServer/ServerContext.h" #include "../../OrthancServer/OrthancRestApi/OrthancRestApi.h" -#include "../Include/OrthancCPlugin.h" +#include "OrthancPluginDatabase.h" #include <list> #include <boost/shared_ptr.hpp> @@ -87,10 +87,12 @@ void SetHttpHeader(const void* parameters); public: - OrthancPlugins(ServerContext& context); + OrthancPlugins(); virtual ~OrthancPlugins(); + void SetServerContext(ServerContext& context); + virtual bool Handle(HttpOutput& output, HttpMethod method, const UriComponents& uri, @@ -110,7 +112,11 @@ bool HasStorageArea() const; - IStorageArea* GetStorageArea(); + IStorageArea* GetStorageArea(); // To be freed after use + + bool HasDatabase() const; + + IDatabaseWrapper& GetDatabase(); void Stop();