Lunchbox
1.8.0
|
A registry for loaded plugins. More...
#include <pluginRegistry.h>
Public Member Functions | |
PluginRegistry () | |
Construct a new plugin registry. | |
~PluginRegistry () | |
Destruct this plugin registry. | |
void | addDirectory (const std::string &path) |
Add a new directory to search for compressor DSOs during init(). | |
void | removeDirectory (const std::string &path) |
Remove a plugin directory. | |
const Strings & | getDirectories () const |
bool | addLunchboxPlugins () |
Add the lunchbox library plugins to this registry. | |
void | init () |
void | exit () |
VisitorResult | accept (PluginVisitor &visitor) |
Visit all plugins and compressors. | |
VisitorResult | accept (ConstPluginVisitor &visitor) const |
Visit all plugins and compressors. | |
const Plugins & | getPlugins () const |
Plugin * | findPlugin (const uint32_t name) |
const Plugin * | findPlugin (const uint32_t name) const |
bool | addPlugin (const std::string &filename) |
A registry for loaded plugins.
Downstream projects such as Collage and Equalizer use and initialize a global plugin registry in their respective initialization calls by adding directories in co::init(). This internal plugin registry can be obtained using co::Global::getPluginRegistry().
Definition at line 42 of file pluginRegistry.h.
lunchbox::PluginRegistry::PluginRegistry | ( | ) |
Construct a new plugin registry.
lunchbox::PluginRegistry::~PluginRegistry | ( | ) |
Destruct this plugin registry.
VisitorResult lunchbox::PluginRegistry::accept | ( | PluginVisitor & | visitor | ) |
Visit all plugins and compressors.
VisitorResult lunchbox::PluginRegistry::accept | ( | ConstPluginVisitor & | visitor | ) | const |
Visit all plugins and compressors.
void lunchbox::PluginRegistry::addDirectory | ( | const std::string & | path | ) |
Add a new directory to search for compressor DSOs during init().
bool lunchbox::PluginRegistry::addLunchboxPlugins | ( | ) |
Add the lunchbox library plugins to this registry.
const Strings& lunchbox::PluginRegistry::getDirectories | ( | ) | const |
void lunchbox::PluginRegistry::removeDirectory | ( | const std::string & | path | ) |
Remove a plugin directory.