OpenAB
1.0.1
|
OpenAB provide couple of Helper classes:
OpenAB::Variant allows to store different types of data in one variable, OBA::Variant objects are mostly used for providing parameters (OpenAB_Plugin::Parameters) to create new instances of OpenAB_Plugin::Plugin.
OpenAB::Variant currently supports data types like:
OpenAB::SmartPtr allows to safely pass around pointers to dynamically allocated data. It automatically tracks reference count of pointer that it manages and frees it when no longer needed.
OpenAB::PluginManager provides methods to discover new plugins and load/unload them on demand.
PluginManager is implemented as singleton and can be accessed using OpenAB::PluginManager::getInstance() function.
PluginManager keeps list of all known plugins and modules which are providing them, allowing to load modules into memory on demand and unloading them when no longer needed, keeping in this way overall memory footprint low.
Here is the list of most important functions provided by PluginManager:
OpenAB::Logger provides set of macros that are used by OpenAB to log messages. Client applications can provide their own implementations of OpenAB::Logger to override way in which messages from OpenAB are logged.
usage Example: