Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

PIAVE::PluginMgr Class Reference

The PluginMgr is a singleton factory for and a register of all known plugins. More...

#include <pluginmgr.hh>

List of all members.

Static Public Methods

Pluginfind (PropertyNode *caps, PluginType_e type=PLUGIN_ANY_TYPE)
 find a enabled plugin that fits the required caps.

Pluginfind (std::string name, PluginType_e type=PLUGIN_ANY_TYPE)
 find plugin by name


Private Methods

 PluginMgr ()
 Hide constructor, since this is a singleton.


Detailed Description

The PluginMgr is a singleton factory for and a register of all known plugins.

It also serves as a loader. It tries to open all shared library files from the default or specified directories and searches for the symbol "piavePluginInfo". If found, it is assumed the library contains one or more plugins which will be added to the register.


Member Function Documentation

Plugin * PluginMgr::find PropertyNode *    caps,
PluginType_e    type = PLUGIN_ANY_TYPE
[static]
 

find a enabled plugin that fits the required caps.

in case more than one plugin fits the caps, the plugin with the highes priority is returned.

It is _not_ checked if the plugin will work. Some plugins might require e.g. a special sound server to run and will throw an exception when trying to instantiate.


The documentation for this class was generated from the following files:
Generated on Tue Oct 14 20:45:37 2003 for piave by doxygen1.2.18