/[projects]/smsdaemon/PluginManager.h
ViewVC logotype

Contents of /smsdaemon/PluginManager.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 205 - (show annotations) (download)
Fri Dec 19 22:29:25 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 595 byte(s)
Enable selection and configuration of loaded plugins to be specified in the configuration file

1 #ifndef __PLUGINMANAGER_H__
2 #define __PLUGINMANAGER_H__
3
4 #include <string>
5 #include <map>
6 #include <vector>
7
8 class Plugin;
9
10 class PluginManager
11 {
12 public:
13 PluginManager();
14 ~PluginManager();
15
16 void LoadPlugins();
17 void DestroyPlugins();
18 void AddPlugin(Plugin* plugin);
19
20 Plugin* GetPlugin(const std::string& pluginname);
21
22 std::vector<Plugin*> GetPluginList();
23
24 private:
25
26 Plugin* CreatePlugin(const std::string& pluginName, const std::map<std::string,std::string>& arguments);
27 std::map<std::string, Plugin*> _plugins;
28 std::vector<Plugin*> _helper_plugins;
29 };
30
31 #endif //__PLUGINMANAGER_H__

  ViewVC Help
Powered by ViewVC 1.1.20