EII ConfigMgr C/C++ Reference
include
eii
config_manager
client_cfg.hpp
Go to the documentation of this file.
1
// Copyright (c) 2020 Intel Corporation.
2
//
3
// Permission is hereby granted, free of charge, to any person obtaining a copy
4
// of this software and associated documentation files (the "Software"), to
5
// deal in the Software without restriction, including without limitation the
6
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7
// sell copies of the Software, and to permit persons to whom the Software is
8
// furnished to do so, subject to the following conditions:
9
//
10
// The above copyright notice and this permission notice shall be included in
11
// all copies or substantial portions of the Software.
12
//
13
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18
// FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19
// IN THE SOFTWARE.
20
21
27
#ifndef _EII_CH_CLIENT_CFG_H
28
#define _EII_CH_CLIENT_CFG_H
29
30
#include <string.h>
31
#include <cjson/cJSON.h>
32
#include <iostream>
33
#include <safe_lib.h>
34
#include <eii/utils/logger.h>
35
#include "eii/utils/json_config.h"
36
#include "eii/config_manager/kv_store_plugin/kv_store_plugin.h"
37
#include "
eii/config_manager/app_cfg.hpp
"
38
#include "
eii/config_manager/cfgmgr.h
"
39
40
namespace
eii {
41
namespace
config_manager {
42
43
class
ClientCfg
:
public
AppCfg
{
44
private
:
45
46
// cfgmgr_interface_t object
47
cfgmgr_interface_t
* m_cfgmgr_interface;
48
52
ClientCfg
(
const
ClientCfg
& src);
53
57
ClientCfg
& operator=(
const
ClientCfg
& src);
58
public
:
65
explicit
ClientCfg
(
cfgmgr_interface_t
* cfgmgr_interface);
66
72
config_t*
getMsgBusConfig
()
override
;
73
80
config_value_t*
getInterfaceValue
(
const
char
* key)
override
;
81
86
std::string
getEndpoint
()
override
;
87
91
cfgmgr_interface_t
*
getCfg
();
92
96
~ClientCfg
();
97
98
};
99
}
100
}
101
#endif
app_cfg.hpp
ConfigMgr AppCfg class.
eii::config_manager::ClientCfg::getInterfaceValue
config_value_t * getInterfaceValue(const char *key) override
cfgmgr_interface_t
Definition:
cfgmgr.h:90
eii::config_manager::ClientCfg
Definition:
client_cfg.hpp:43
eii::config_manager::ClientCfg::getCfg
cfgmgr_interface_t * getCfg()
eii::config_manager::ClientCfg::~ClientCfg
~ClientCfg()
eii::config_manager::ClientCfg::getMsgBusConfig
config_t * getMsgBusConfig() override
eii::config_manager::ClientCfg::getEndpoint
std::string getEndpoint() override
cfgmgr.h
Configuration Manager C APIs.
eii::config_manager::AppCfg
Definition:
app_cfg.hpp:49
Generated by
1.8.17