xentara-plugin v1.2.1
The Xentara Plugin Framework
Loading...
Searching...
No Matches
The Global Plugin Object

Each plugin needs to provide a single plugin object. The plugin object must be object of a custom plugin class derived from xentara::io::Plugin. The plugin object must have static storage duration, i.e. it must be a static member variable or a global variable. It is recommended that the plugin object be a static variable of the custom plugin class.

Note
Many plugin frameworks require the use some sort of preprocessor macro to publish the plugin functionality. Xentara does not require such a macro. Instead, the global plugin object automatically registers itself when it is constructed.

The plugin object must override registerObjects() and register all drivers and service providers the plugin provides.