comparison Plugins/Engine/OrthancPlugins.h @ 1452:b737acb13da5

refactoring of the main function
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 02 Jul 2015 11:35:41 +0200
parents 8dc80ba768aa
children 89ab71a68fcf
comparison
equal deleted inserted replaced
1451:538fc8359a9a 1452:b737acb13da5
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
45 { 45 {
46 class OrthancRestApi;
47 class ServerContext; 46 class ServerContext;
48 47
49 class OrthancPlugins : 48 class OrthancPlugins :
50 public IHttpHandler, 49 public IHttpHandler,
51 public IPluginServiceProvider, 50 public IPluginServiceProvider,
122 const std::string& remoteAet) 121 const std::string& remoteAet)
123 { 122 {
124 return true; // TODO Enable filtering of instances from plugins 123 return true; // TODO Enable filtering of instances from plugins
125 } 124 }
126 125
127 void SetOrthancRestApi(OrthancRestApi& restApi);
128
129 void ResetOrthancRestApi();
130
131 bool HasStorageArea() const; 126 bool HasStorageArea() const;
132 127
133 IStorageArea* GetStorageArea(); // To be freed after use 128 IStorageArea* CreateStorageArea(); // To be freed after use
134 129
135 bool HasDatabase() const; 130 bool HasDatabase() const;
136 131
137 IDatabaseWrapper& GetDatabase(); 132 IDatabaseWrapper& GetDatabase();
138 133