EII ConfigMgr C/C++ Reference
|
Go to the documentation of this file.
27 #ifndef _EII_CH_APP_CFG_H
28 #define _EII_CH_APP_CFG_H
31 #include <cjson/cJSON.h>
35 #include <bits/stdc++.h>
37 #include <eii/utils/logger.h>
38 #include "eii/utils/json_config.h"
39 #include "eii/config_manager/kv_store_plugin/kv_store_plugin.h"
44 namespace config_manager {
53 config_t* m_app_config;
56 config_t* m_app_interface;
59 config_t* m_app_data_store;
82 std::vector<std::string>
tokenizer(
const char* str,
122 bool watch(
const char* key, cfgmgr_watch_callback_t watch_callback,
void* user_data);
131 bool watchPrefix(
char* prefix, cfgmgr_watch_callback_t watch_callback,
void* user_data);
139 bool watchConfig(cfgmgr_watch_callback_t watch_callback,
void* user_data);
147 bool watchInterface(cfgmgr_watch_callback_t watch_callback,
void* user_data);
176 virtual std::vector<std::string>
getTopics();
185 virtual bool setTopics(std::vector<std::string> topics_list);
virtual std::vector< std::string > getAllowedClients()
bool watchInterface(cfgmgr_watch_callback_t watch_callback, void *user_data)
virtual config_value_t * getInterfaceValue(const char *key)
bool watchConfig(cfgmgr_watch_callback_t watch_callback, void *user_data)
virtual std::vector< std::string > getTopics()
virtual bool setTopics(std::vector< std::string > topics_list)
config_value_t * getConfigValue(const char *key)
std::vector< std::string > tokenizer(const char *str, const char *delim)
bool watchPrefix(char *prefix, cfgmgr_watch_callback_t watch_callback, void *user_data)
config_t * getInterface()
virtual std::string getEndpoint()
Configuration Manager C APIs.
virtual config_t * getMsgBusConfig()
bool watch(const char *key, cfgmgr_watch_callback_t watch_callback, void *user_data)
Definition: app_cfg.hpp:49