#include <pluginmgr.hh>
Static Public Methods | |
Plugin * | find (PropertyNode *caps, PluginType_e type=PLUGIN_ANY_TYPE) |
find a enabled plugin that fits the required caps. | |
Plugin * | find (std::string name, PluginType_e type=PLUGIN_ANY_TYPE) |
find plugin by name | |
Private Methods | |
PluginMgr () | |
Hide constructor, since this is a singleton. |
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.
|
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. |