vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PluginManager.h
Go to the documentation of this file.
1 #ifndef PLUGIN_MANAGER_H
2 #define PLUGIN_MANAGER_H
3 
4 #include <vrecko/Export>
5 #include <vrecko/Ability.h>
6 
7 #include <osgDB/DynamicLibrary>
8 
9 #include <map>
10 
11 namespace vrecko {
12 
21 class VRECKO_EXPORT PluginManager {
22  public:
25 
26  static vrecko::Ability *getAbilityInstance(const std::string& plugin_name, const std::string& ability_name);
27  static void *getFuncPtr(std::string dl_name, std::string func_name);
28 
29  protected:
30  static std::map<std::string, osgDB::DynamicLibrary *> _dl_map;
31 };
32 
33 }
34 
35 #endif