#include <app_cfg.hpp>
|
std::vector< std::string > | tokenizer (const char *str, const char *delim) |
|
◆ AppCfg()
eii::config_manager::AppCfg::AppCfg |
( |
cfgmgr_ctx_t * |
cfgmgr | ) |
|
|
explicit |
AppCfg Constructor
- Parameters
-
app_config | - The config associated with a service |
app_interface | - The interface associated with a service |
dev_mode | - bool whether dev mode is set |
◆ ~AppCfg()
virtual eii::config_manager::AppCfg::~AppCfg |
( |
| ) |
|
|
virtual |
◆ getAllowedClients()
virtual std::vector<std::string> eii::config_manager::AppCfg::getAllowedClients |
( |
| ) |
|
|
virtual |
◆ getConfig()
config_t* eii::config_manager::AppCfg::getConfig |
( |
| ) |
|
Gets app config
- Parameters
-
key | - Key for which value is needed |
- Returns
- config_value_t* - config_value_t object
◆ getConfigValue()
config_value_t* eii::config_manager::AppCfg::getConfigValue |
( |
const char * |
key | ) |
|
Gets value from respective application's config
- Parameters
-
key | - Key for which value is needed |
- Returns
- config_value_t* - config_value_t object
◆ getEndpoint()
virtual std::string eii::config_manager::AppCfg::getEndpoint |
( |
| ) |
|
|
virtual |
◆ getInterface()
config_t* eii::config_manager::AppCfg::getInterface |
( |
| ) |
|
Gets app interface
- Returns
- config_value_t* - config_value_t object
◆ getInterfaceValue()
virtual config_value_t* eii::config_manager::AppCfg::getInterfaceValue |
( |
const char * |
key | ) |
|
|
virtual |
◆ getMsgBusConfig()
virtual config_t* eii::config_manager::AppCfg::getMsgBusConfig |
( |
| ) |
|
|
virtual |
◆ getTopics()
virtual std::vector<std::string> eii::config_manager::AppCfg::getTopics |
( |
| ) |
|
|
virtual |
◆ setTopics()
virtual bool eii::config_manager::AppCfg::setTopics |
( |
std::vector< std::string > |
topics_list | ) |
|
|
virtual |
◆ tokenizer()
std::vector<std::string> eii::config_manager::AppCfg::tokenizer |
( |
const char * |
str, |
|
|
const char * |
delim |
|
) |
| |
|
protected |
Helper base class function to split string based on delimiter
- Parameters
-
str | - string to be split |
delim | - delimiter |
- Returns
- std::vector<std::string> - vector of split strings
◆ watch()
bool eii::config_manager::AppCfg::watch |
( |
const char * |
key, |
|
|
cfgmgr_watch_callback_t |
watch_callback, |
|
|
void * |
user_data |
|
) |
| |
Register a callback to watch on any given key
- Parameters
-
key | - key to watch |
watch_callback | - callback object |
user_data | - user data to be sent to callback |
- Returns
- bool - Boolean whether the callback was registered
◆ watchConfig()
bool eii::config_manager::AppCfg::watchConfig |
( |
cfgmgr_watch_callback_t |
watch_callback, |
|
|
void * |
user_data |
|
) |
| |
Register a callback to watch on app config
- Parameters
-
watch_callback | - callback object |
user_data | - user data to be sent to callback |
- Returns
- bool - Boolean whether the callback was registered
◆ watchInterface()
bool eii::config_manager::AppCfg::watchInterface |
( |
cfgmgr_watch_callback_t |
watch_callback, |
|
|
void * |
user_data |
|
) |
| |
Register a callback to watch on app interface
- Parameters
-
watch_callback | - callback object |
user_data | - user data to be sent to callback |
- Returns
- bool - Boolean whether the callback was registered
◆ watchPrefix()
bool eii::config_manager::AppCfg::watchPrefix |
( |
char * |
prefix, |
|
|
cfgmgr_watch_callback_t |
watch_callback, |
|
|
void * |
user_data |
|
) |
| |
Register a callback to watch on any given key prefix
- Parameters
-
prefix | - key prefix to watch |
watch_callback | - callback object |
user_data | - user data to be sent to callback |
- Returns
- bool - Boolean whether the callback was registered
The documentation for this class was generated from the following file: