Lunchbox
1.12.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
|
Manages a class deriving from a PluginT interface. More...
#include <plugin.h>
Public Types | |
typedef boost::function< PluginT *(const InitDataT &) > | Constructor |
The constructor method / concrete factory for Plugin objects. More... | |
typedef boost::function< bool(const InitDataT &) > | HandlesFunc |
The method to check if the plugin can handle a given initData. More... | |
Public Member Functions | |
Plugin (const Constructor &constructor_, const HandlesFunc &handles_) | |
Construct a new Plugin. More... | |
bool | operator== (const Plugin &rhs) const |
bool | operator!= (const Plugin &rhs) const |
Friends | |
class | PluginFactory< PluginT, InitDataT > |
Manages a class deriving from a PluginT interface.
Plugin classes deriving from PluginT must implement the following prototype for their constructor:
PluginT must also implement the following method to be registered:
typedef boost::function< PluginT* ( const InitDataT& ) > lunchbox::Plugin< PluginT, InitDataT >::Constructor |
typedef boost::function< bool ( const InitDataT& ) > lunchbox::Plugin< PluginT, InitDataT >::HandlesFunc |
|
inline |
|
inline |
|
inline |