Lunchbox
1.12.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
|
Helper class to statically register derived plugin classes. More...
#include <pluginRegisterer.h>
Static Public Member Functions | |
template<typename U > | |
static char(& | test (typename U::InitDataT const *))[1] |
template<typename U > | |
static char(& | test (...))[2] |
Static Public Attributes | |
static const bool | value = (sizeof(test<T>(0)) == 1) |
Helper class to statically register derived plugin classes.
If MyInitDataType is not given, default value is servus::URI.
The following code can be placed in a plugin's cpp file:
Also note that it needs the following type definition to be placed in the plugin's interface (or in all its implementations that are to be registered):
Definition at line 64 of file pluginRegisterer.h.