Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1309:8f4487d8f79e | 1310:61ce8147f30d |
---|---|
34 | 34 |
35 #include "PluginsManager.h" | 35 #include "PluginsManager.h" |
36 #include "../../Core/HttpServer/HttpHandler.h" | 36 #include "../../Core/HttpServer/HttpHandler.h" |
37 #include "../../OrthancServer/ServerContext.h" | 37 #include "../../OrthancServer/ServerContext.h" |
38 #include "../../OrthancServer/OrthancRestApi/OrthancRestApi.h" | 38 #include "../../OrthancServer/OrthancRestApi/OrthancRestApi.h" |
39 #include "../Include/OrthancCPlugin.h" | 39 #include "OrthancPluginDatabase.h" |
40 | 40 |
41 #include <list> | 41 #include <list> |
42 #include <boost/shared_ptr.hpp> | 42 #include <boost/shared_ptr.hpp> |
43 | 43 |
44 namespace Orthanc | 44 namespace Orthanc |
85 void SetCookie(const void* parameters); | 85 void SetCookie(const void* parameters); |
86 | 86 |
87 void SetHttpHeader(const void* parameters); | 87 void SetHttpHeader(const void* parameters); |
88 | 88 |
89 public: | 89 public: |
90 OrthancPlugins(ServerContext& context); | 90 OrthancPlugins(); |
91 | 91 |
92 virtual ~OrthancPlugins(); | 92 virtual ~OrthancPlugins(); |
93 | |
94 void SetServerContext(ServerContext& context); | |
93 | 95 |
94 virtual bool Handle(HttpOutput& output, | 96 virtual bool Handle(HttpOutput& output, |
95 HttpMethod method, | 97 HttpMethod method, |
96 const UriComponents& uri, | 98 const UriComponents& uri, |
97 const Arguments& headers, | 99 const Arguments& headers, |
108 | 110 |
109 void SetOrthancRestApi(OrthancRestApi& restApi); | 111 void SetOrthancRestApi(OrthancRestApi& restApi); |
110 | 112 |
111 bool HasStorageArea() const; | 113 bool HasStorageArea() const; |
112 | 114 |
113 IStorageArea* GetStorageArea(); | 115 IStorageArea* GetStorageArea(); // To be freed after use |
116 | |
117 bool HasDatabase() const; | |
118 | |
119 IDatabaseWrapper& GetDatabase(); | |
114 | 120 |
115 void Stop(); | 121 void Stop(); |
116 | 122 |
117 const char* GetProperty(const char* plugin, | 123 const char* GetProperty(const char* plugin, |
118 _OrthancPluginProperty property) const; | 124 _OrthancPluginProperty property) const; |