14 #include <plugin_manager.h> 16 #include <config_category.h> 17 #include <plugin_data.h> 38 uint32_t
send(
const std::vector<Reading* >& readings)
const;
40 bool persistData() {
return info->
options & SP_PERSIST_DATA; };
42 void startData(
const std::string& pluginData);
46 void (*pluginShutdown)(
const PLUGIN_HANDLE);
47 std::string (*pluginShutdownData)(
const PLUGIN_HANDLE);
48 uint32_t (*pluginSend)(
const PLUGIN_HANDLE,
49 const std::vector<Reading* >& readings);
51 void (*pluginStart)(PLUGIN_HANDLE);
52 void (*pluginStartData)(PLUGIN_HANDLE,
53 const std::string& pluginData);
61 PLUGIN_HANDLE m_instance;
uint32_t send(const std::vector< Reading *> &readings)
Call the send method in the plugin.
Definition: north_plugin.cpp:103
Definition: config_category.h:56
NorthPlugin(PLUGIN_HANDLE handle, const ConfigCategory &category)
Constructor for the class that wraps the north plugin.
Definition: north_plugin.cpp:31
A generic representation of a plugin.
Definition: plugin.h:20
Definition: plugin_data.h:15
void shutdown()
Call the shutdown method in the plugin.
Definition: north_plugin.cpp:169
Class that represents a north plugin.
Definition: north_plugin.h:33
PLUGIN_HANDLE init(const ConfigCategory &config)
Initialise the plugin with configuration data.
Definition: north_plugin.cpp:57
std::string shutdownSaveData()
Call the shutdown method in the plugin and return plugin data to parsist as JSON string.
Definition: north_plugin.cpp:192
void start()
Call the start method in the plugin with no persisted data.
Definition: north_plugin.cpp:78