Fledge
An open source edge computing platform for industrial users
PluginData Class Reference

Public Member Functions

 PluginData (StorageClient *client)
 PluginData constructor. More...
 
std::string loadStoredData (const std::string &key)
 Load stored data for a given key. More...
 
bool persistPluginData (const std::string &key, const std::string &data, const std::string &service_name)
 Store plugin data for a given key. More...
 

Constructor & Destructor Documentation

◆ PluginData()

PluginData::PluginData ( StorageClient client)

PluginData constructor.

Parameters
clientStorageClient pointer

Member Function Documentation

◆ loadStoredData()

string PluginData::loadStoredData ( const std::string &  key)

Load stored data for a given key.

Parameters
keyGiven key for data load
Returns
JSON string with found data or empty JSON data

◆ persistPluginData()

bool PluginData::persistPluginData ( const std::string &  key,
const std::string &  data,
const std::string &  service_name 
)

Store plugin data for a given key.

Parameters
keyThe given key
dataThe JSON data to save (as string)
service_nameThe name of service
Returns
true on success, false otherwise.

The documentation for this class was generated from the following files: