
Class that can be used as a fallback for rutz::factory::set_fallback(). More...
#include <Component/Plugin.H>


Public Member Functions | |
| PluginFallback (OptionManager *mgr, const char *realm) | |
| Construct with a given realm. | |
| virtual | ~PluginFallback () throw () |
| Virtual destructor. | |
| virtual void | try_fallback (const rutz::fstring &key) const |
| Fallback function -- try to load a plugin from <plugindir>/realm/key.so. | |
Class that can be used as a fallback for rutz::factory::set_fallback().
See ComponentFactory for an overview of the factory+plugin system.
See frameostream_debug_init() for an example plugin init function.
Definition at line 67 of file Plugin.H.
| PluginFallback::PluginFallback | ( | OptionManager * | mgr, | |
| const char * | realm | |||
| ) |
| PluginFallback::~PluginFallback | ( | ) | throw () [virtual] |
| void PluginFallback::try_fallback | ( | const rutz::fstring & | key | ) | const [virtual] |
Fallback function -- try to load a plugin from <plugindir>/realm/key.so.
Implements rutz::factory_fallback.
Definition at line 105 of file Plugin.C.
References rutz::fstring::c_str(), and loadPlugin().
1.6.3