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

Annotation of /smsdaemon/PluginManager.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 184 - (hide annotations) (download)
Fri Dec 12 14:06:11 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 467 byte(s)
Add the helper plugin concept

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

  ViewVC Help
Powered by ViewVC 1.1.20