◆ FilterPlugin()
FilterPlugin::FilterPlugin |
( |
const std::string & |
name, |
|
|
PLUGIN_HANDLE |
handle |
|
) |
| |
FilterPlugin class constructor.
This class wraps the filter plugin C interface and creates set of function pointers that resolve to the loaded plugin and enclose in the class.
- Parameters
-
name | The filter name |
handle | The loaded plugin handle |
Set the function pointers to Filter Plugin C API
◆ ingest()
void FilterPlugin::ingest |
( |
READINGSET * |
readings | ) |
|
Call the loaded plugin "plugin_ingest" method.
This call ingest the readings through the filters chain
- Parameters
-
readings | The reading set to ingest |
◆ init()
PLUGIN_HANDLE FilterPlugin::init |
( |
const ConfigCategory & |
config, |
|
|
OUTPUT_HANDLE * |
outHandle, |
|
|
OUTPUT_STREAM |
outputFunc |
|
) |
| |
Call the loaded plugin "plugin_init" method.
- Parameters
-
config | The filter configuration |
outHandle | The output_handled passed with filtered data to OUTPUT_STREAM function |
outputFunc | The output_stream function pointer the filter uses to pass data out |
- Returns
- The PLUGIN_HANDLE object
◆ reconfigure()
void FilterPlugin::reconfigure |
( |
const std::string & |
| ) |
|
Call plugin_reconfigure method.
- Parameters
-
configuration | The new filter configuration |
◆ shutdownSaveData()
string FilterPlugin::shutdownSaveData |
( |
| ) |
|
Call the loaded plugin "plugin_shutdown" method returning plugind data (as string)
- Returns
- Plugin data as JSON string (to be saved into strage layer)
◆ startData()
void FilterPlugin::startData |
( |
const std::string & |
pluginData | ) |
|
Call plugin_start passing plugin data.
- Parameters
-
storedData | Plugin data to pass (from storage layer) |
The documentation for this class was generated from the following files: