#include <map>
#include <typeinfo>
#include <helpers/Log.hpp>
Go to the source code of this file.
|
#define | EXPORT_PLUGIN_INTERFACE(PluginNamespace, PluginInterface, PluginParameters) |
| Exports plugin interface. Made new plugin interface available to be used in OpenAB. This should be called at the end of *.cpp file of new plugin interface. More...
|
|
#define | DECLARE_PLUGIN_INTERFACE(PluginNamespace, PluginInterface, PluginParameters) |
| Declares new plugin interface. Should be called at the end of *.hpp file with new plugin interface. More...
|
|
#define | REGISTER_PLUGIN_FACTORY(PluginFactory) |
| Registers new plugin factory. New plugin interface implementations can register its factories so they can be used in OpenAB. This should be called at the end of *.cpp file of plugin. More...
|
|
#define DECLARE_PLUGIN_INTERFACE |
( |
|
PluginNamespace, |
|
|
|
PluginInterface, |
|
|
|
PluginParameters |
|
) |
| |
Value:namespace PluginNamespace { \
}
Definition: Plugin.hpp:133
Declares new plugin interface. Should be called at the end of *.hpp file with new plugin interface.
- Parameters
-
[in] | PluginNamespace | namespace in which plugin interface is defined. |
[in] | PluginInterface | class name defining interface of new plugin. |
[in] | PluginParameters | class name defining parameters for new plugin itnerface. |
#define EXPORT_PLUGIN_INTERFACE |
( |
|
PluginNamespace, |
|
|
|
PluginInterface, |
|
|
|
PluginParameters |
|
) |
| |
Value:namespace PluginNamespace { \
Factory::typeList factories; \
template<> \
Factory::PluginLoadedCallback Factory::loadedCb = NULL; \
\
template<> \
Factory::typeList Factory::factories = PluginNamespace::factories;\
}
Exports plugin interface. Made new plugin interface available to be used in OpenAB. This should be called at the end of *.cpp file of new plugin interface.
- Parameters
-
[in] | PlugyoinNamespace | namespace in which plugin interface is defined. |
[in] | PluginInterface | class name defining interface of new plugin. |
[in] | PluginParameters | class name defining parameters for new plugin itnerface. |
#define REGISTER_PLUGIN_FACTORY |
( |
|
PluginFactory | ) |
|
Value:namespace { \
PluginFactory factory; \
}
Registers new plugin factory. New plugin interface implementations can register its factories so they can be used in OpenAB. This should be called at the end of *.cpp file of plugin.
- Note
- Factory for new plugin implementation should be defined in unnamed namespace.
- Parameters
-
[in] | PluginFactory | factory class of new plugin implementation. |