1 #ifndef _PLUGIN_CONFIGURATION_H 2 #define _PLUGIN_CONFIGURATION_H 15 #include <rapidjson/document.h> 16 #include <config_category.h> 17 #include <management_client.h> 31 const char *
getValue(
const std::string& key);
32 bool hasValue(
const std::string& key);
33 bool setValue(
const std::string& key,
const std::string& value);
39 void getConfigCache(std::string& cache);
43 const std::string m_name;
45 std::string m_category;
46 std::string m_defaultConfiguration;
47 rapidjson::Document *m_document;
Fledge Logger class used to log to syslog.
Definition: logger.h:26
ConfigCategory * getConfiguration()
Return the category to register with the core.
Definition: pluginconfiguration.cpp:235
DefaultConfigCategory.
Definition: config_category.h:236
Definition: config_category.h:56
Class that represents a storage plugin.
Definition: storage_plugin.h:34
The storage service must handle its own configuration differently to other services as it is unable t...
Definition: plugin_configuration.h:28
DefaultConfigCategory * getDefaultCategory()
Return the default category to register with the core.
Definition: pluginconfiguration.cpp:220
The management client class used by services and tasks to communicate with the management API of the ...
Definition: management_client.h:43
const char * getValue(const std::string &key)
Return a value from the cached configuration category.
Definition: pluginconfiguration.cpp:59
bool setValue(const std::string &key, const std::string &value)
Set the value of a configuration item.
Definition: pluginconfiguration.cpp:77
StoragePluginConfiguration(const std::string &name, StoragePlugin *plugin)
Constructor for storage service configuration class.
Definition: pluginconfiguration.cpp:28
void updateCategory(const std::string &json)
Called when the configuration category is updated.
Definition: pluginconfiguration.cpp:92
bool hasValue(const std::string &key)
Return if a value exsits for the cached configuration category.
Definition: pluginconfiguration.cpp:42