PluginFallback Class Reference

Class that can be used as a fallback for rutz::factory::set_fallback(). More...

#include <Component/Plugin.H>

Inheritance diagram for PluginFallback:
Inheritance graph
[legend]
Collaboration diagram for PluginFallback:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

PluginFallback::PluginFallback ( OptionManager mgr,
const char *  realm 
)

Construct with a given realm.

Definition at line 97 of file Plugin.C.

PluginFallback::~PluginFallback (  )  throw () [virtual]

Virtual destructor.

Definition at line 103 of file Plugin.C.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:23:51 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3