libvisual
0.5.0
|
Manages the registry of plugins. More...
#include <libvisual/lv_plugin_registry.h>
Public Member Functions | |
PluginRegistry (PluginRegistry const &)=delete | |
virtual | ~PluginRegistry () |
Destructor. | |
void | add_path (std::string const &path) |
Adds an extra plugin search path. More... | |
PluginRef const * | find_plugin (PluginType type, std::string const &name) const |
bool | has_plugin (PluginType type, std::string const &name) const |
Checks if a plugin is available. More... | |
PluginList const & | get_plugins () const |
Returns the list of all available plugins. More... | |
PluginList const & | get_plugins_by_type (PluginType type) const |
Returns the list of all available plugins of a given type. More... | |
VisPluginInfo const * | get_plugin_info (PluginType type, std::string const &name) const |
Returns information on a plugin. More... | |
Public Member Functions inherited from LV::Singleton< PluginRegistry > | |
Singleton (Singleton const &)=delete | |
Singleton const & | operator= (Singleton const &)=delete |
virtual | ~Singleton () |
Destructor. | |
Additional Inherited Members | |
Static Public Member Functions inherited from LV::Singleton< PluginRegistry > | |
static PluginRegistry * | instance () |
Returns the singleton instance. More... | |
static void | destroy () |
Destroys the singleton instance. | |
Static Protected Attributes inherited from LV::Singleton< PluginRegistry > | |
static PluginRegistry * | m_instance |
Manages the registry of plugins.
Definition at line 23 of file lv_plugin_registry.h.
void LV::PluginRegistry::add_path | ( | std::string const & | path | ) |
Adds an extra plugin search path.
path | Path to plugin directory |
Definition at line 116 of file lv_plugin_registry.cpp.
VisPluginInfo const * LV::PluginRegistry::get_plugin_info | ( | PluginType | type, |
std::string const & | name | ||
) | const |
Returns information on a plugin.
type | Type of plugin |
name | Name of plugin |
Definition at line 158 of file lv_plugin_registry.cpp.
Referenced by visual_plugin_load().
PluginList const& LV::PluginRegistry::get_plugins | ( | ) | const |
Returns the list of all available plugins.
PluginList const & LV::PluginRegistry::get_plugins_by_type | ( | PluginType | type | ) | const |
Returns the list of all available plugins of a given type.
type | Type of plugin |
Definition at line 147 of file lv_plugin_registry.cpp.
bool LV::PluginRegistry::has_plugin | ( | PluginType | type, |
std::string const & | name | ||
) | const |
Checks if a plugin is available.
type | Type of plugin |
name | Name of plugin |
Definition at line 142 of file lv_plugin_registry.cpp.