Class jac::PluginManager
ClassList > jac > PluginManager
A class for managing groups of plugins and initializing them all at once.
#include <plugins.h>
Public Functions
Type | Name |
---|---|
PluginManager () = default |
|
size_t | addPlugin () Adds a plugin to the manager. |
PluginHandle | initialize (Machine & machine) Initializes all plugins in the manager. |
Public Functions Documentation
function PluginManager
function addPlugin
Adds a plugin to the manager.
Note:
The initialization of the plugin is to be performed by the constructor.
Template parameters:
Plugin_t
The type of the plugin to add
Returns:
The offset of the plugin in the group. Can be added to the PluginHandle returned by initialize() to get a handle to the plugin instance inside the Machine.
function initialize
Initializes all plugins in the manager.
Template parameters:
Machine
The type of the machine to initialize the plugins for
Parameters:
machine
The machine to initialize the plugins for
Returns:
A Handle to the first plugin initialized.
The documentation for this class was generated from the following file src/jac/machine/plugins.h