13#ifndef HLCC_TELIF_TELIF_CONFIG_HPP
14#define HLCC_TELIF_TELIF_CONFIG_HPP
17#include <config-ng/ciiConfigApi.hpp>
18#include <rad/config.hpp>
29 : std::runtime_error(message)
56struct CiiConfigValueConverter<
hlcc::telif::TelNamedPosition, CiiConfigInstanceNode> {
58 if (node.GetKind() != CiiConfigNodeKind::MAP || node.GetDataTypeName() !=
"TelNamedPosition") {
59 std::cerr <<
"Conversion to TelNamedPosition not possible" << std::endl;
62 target.
pos_string = node[
"pos_string"].As<std::string>();
63 target.
alt_pos = node[
"alt_pos"].As<
double>();
64 target.
az_pos = node[
"az_pos"].As<
double>();
69 if (node.GetKind() != elt::configng::CiiConfigNodeKind::MAP) {
72 node.Set(
"pos_string", elt::configng::CiiConfigInstanceNode::From(source.
pos_string));
73 node.Set(
"alt_pos", elt::configng::CiiConfigInstanceNode::From(source.
alt_pos));
74 node.Set(
"az_pos", elt::configng::CiiConfigInstanceNode::From(source.
az_pos));
83struct CiiConfigValueConverter<
hlcc::telif::LsvApp, CiiConfigInstanceNode> {
85 if (node.GetKind() != CiiConfigNodeKind::MAP || node.GetDataTypeName() !=
"LsvApp") {
86 std::cerr <<
"Conversion to LsvApp not possible" << std::endl;
89 target.
name = node[
"name"].As<std::string>();
90 target.
oldb = node[
"oldb"].As<std::string>();
91 target.
cmds = node[
"cmds"].As<std::string>();
96 if (node.GetKind() != elt::configng::CiiConfigNodeKind::MAP) {
99 node.Set(
"name", elt::configng::CiiConfigInstanceNode::From(source.
name));
100 node.Set(
"oldb", elt::configng::CiiConfigInstanceNode::From(source.
oldb));
101 node.Set(
"cmds", elt::configng::CiiConfigInstanceNode::From(source.
cmds));
158 =
KEY_CONFIG +
"ready_for_handover/estimation_period_ms";
ConfigError(const std::string &message)
Definition config.hpp:28
Config()
Definition config.cpp:19
Config & operator=(const Config &)=delete
Disable copy constructor.
virtual ~Config()
Definition config.cpp:63
Config(const Config &)=delete
Definition guideStarHelper.cpp:19
Definition configTest.cpp:22
const std::string KEY_CONFIG_ALTAZ_ALT_LOWER_LIMIT_FCT
Definition config.hpp:153
const double CONFIG_DEFAULT_ROUS_TIMER_PERIOD_S
Definition config.hpp:231
const double CONFIG_DEFAULT_ALTAZ_ALT_UPPER_LIMIT_FCT
Definition config.hpp:227
const std::vector< std::string > OLDB_CFG_KEYS_STRING
Definition config.hpp:168
const std::string KEY_CONFIG_ALTAZ_AZ_LOWER_LIMIT_FCT
Definition config.hpp:155
const std::string KEY_CONFIG_PUB_DDS_PROFILE
Definition config.hpp:142
const std::string KEY_CONFIG_REQ_TREX
Definition config.hpp:138
const std::string CONFIG_DEFAULT_REQ_ENDPOINT
Definition config.hpp:208
const std::string KEY_CONFIG_TRSHKS_CMDS
Definition config.hpp:140
const double CONFIG_DEFAULT_ALTAZ_ALT_LOWER_LIMIT_OP
Definition config.hpp:224
const std::string KEY_CONFIG_PUB_DDS_DOMAIN_ID_HLCC
Definition config.hpp:145
const std::string CONFIG_DEFAULT_PUB_DDS_PROFILE
Definition config.hpp:217
const std::vector< std::string > OLDB_CFG_KEYS_DOUBLE
Definition config.hpp:186
const std::string KEY_CONFIG_PUB_DDS_NIC
Definition config.hpp:143
const uint32_t CONFIG_DEFAULT_READY_FOR_HANDOVER_ESTIMATION_PERIOD_MS
Definition config.hpp:232
const uint32_t CONFIG_DEFAULT_PUB_DDS_DOMAIN_ID_GENERAL
Definition config.hpp:222
const std::string KEY_CONFIG_PUB_DDS_FILE
Definition config.hpp:144
const std::string KEY_CONFIG_ALTAZ_AZ_UPPER_LIMIT_FCT
Definition config.hpp:154
const std::vector< std::string > OLDB_CFG_KEYS_UINT32
Definition config.hpp:177
const std::vector< TelNamedPosition > CONFIG_DEFAULT_CONFIG_NAMED_POS
Definition config.hpp:236
const std::string KEY_CONFIG_RTCTK_CCSSIM_UPD_PORT
Definition config.hpp:161
const std::string KEY_CONFIG
Definition config.hpp:136
const std::string KEY_CONFIG_ALTAZ_ALT_LOWER_LIMIT_OP
Definition config.hpp:149
const std::string CONFIG_DEFAULT_OLDB_URI_PREFIX
Definition config.hpp:211
const std::string CONFIG_DEFAULT_VERSION
Definition config.hpp:200
const std::string CONFIG_DEFAULT_LOG_PROPERTIES
Definition config.hpp:207
const char CONFIG_KEY_SEPARATOR_OLDB
Definition config.hpp:110
const std::string KEY_CONFIG_GS_TO_GP_MAPPING
Definition config.hpp:162
const std::string KEY_CONFIG_ALTAZ_ALT_UPPER_LIMIT_OP
Definition config.hpp:148
const std::string CONFIG_DEFAULT_FILENAME
Definition config.hpp:203
const std::string KEY_CONFIG_REQ_ELTPK
Definition config.hpp:137
const std::string KEY_CONFIG_ALTAZ_AZ_LOWER_LIMIT_OP
Definition config.hpp:151
const std::string CONFIG_DEFAULT_SCXML_APPEND
Definition config.hpp:205
const std::string CONFIG_DEFAULT_PUB_DDS_FILE
Definition config.hpp:219
const std::string KEY_CONFIG_READY_FOR_HANDOVER_ESTIMATION_PERIOD_MS
Definition config.hpp:158
const double CONFIG_DEFAULT_ALTAZ_AZ_LOWER_LIMIT_OP
Definition config.hpp:226
const uint32_t CONFIG_DEFAULT_PUB_DDS_DOMAIN_ID_CCS_INS
Definition config.hpp:221
const uint32_t CONFIG_DEFAULT_OLDB_ASYNC_PERIOD
Definition config.hpp:213
const bool CONFIG_DEFAULT_TRS_HEALTH_ENABLED
Definition config.hpp:214
const std::string KEY_CONFIG_PUB_DDS_DOMAIN_ID_CCS_INS
Definition config.hpp:146
const double CONFIG_DEFAULT_ALTAZ_AZ_UPPER_LIMIT_FCT
Definition config.hpp:229
const uint32_t CONFIG_DEFAULT_PUB_DDS_DOMAIN_ID_HLCC
Definition config.hpp:220
const std::string CONFIG_DEFAULT_REQ_ELTPK
Definition config.hpp:209
const std::string KEY_CONFIG_ALTAZ_AZ_UPPER_LIMIT_OP
Definition config.hpp:150
const TelNamedPosition zenith
Definition config.hpp:235
const double CONFIG_DEFAULT_ALTAZ_ALT_UPPER_LIMIT_OP
Definition config.hpp:223
const std::string KEY_CONFIG_PUB_DDS_DOMAIN_ID_GENERAL
Definition config.hpp:147
const double CONFIG_DEFAULT_ALTAZ_AZ_LOWER_LIMIT_FCT
Definition config.hpp:230
const std::vector< std::string > CONFIG_DEFAULT_GS_TO_GP_MAPPING
Definition config.hpp:240
const std::string CONFIG_DEFAULT_MODNAME
Definition config.hpp:201
const std::string CONFIG_DEFAULT_REQ_TREX
Definition config.hpp:210
const std::string KEY_CONFIG_NAMED_POS
Definition config.hpp:159
const std::string CONFIG_DEFAULT_SCXML_FILENAME
Definition config.hpp:204
const double CONFIG_DEFAULT_ALTAZ_ALT_LOWER_LIMIT_FCT
Definition config.hpp:228
const std::string CONFIG_DEFAULT_PUB_DDS_NIC
Definition config.hpp:218
const TelNamedPosition park
Definition config.hpp:234
const std::string CONFIG_DEFAULT_PROCNAME
Definition config.hpp:202
const std::string KEY_CONFIG_ROUS_TIMER_PERIOD_S
Definition config.hpp:156
const std::string CONFIG_DEFAULT_RTCTK_CCSSIM_UDP_IP
Definition config.hpp:238
const std::string KEY_CONFIG_ALTAZ_ALT_UPPER_LIMIT_FCT
Definition config.hpp:152
const double CONFIG_DEFAULT_ALTAZ_AZ_UPPER_LIMIT_OP
Definition config.hpp:225
const uint32_t CONFIG_DEFAULT_RTCTK_CCSSIM_UDP_PORT
Definition config.hpp:239
const std::string KEY_CONFIG_RTCTK_CCSSIM_UPD_IP
Definition config.hpp:160
const std::string CONFIG_DEFAULT_LOG_LEVEL
Definition config.hpp:206
const std::vector< LsvApp > CONFIG_DEFAULT_LSVS
Definition config.hpp:215
const uint32_t CONFIG_DEFAULT_OLDB_CONN_TIMEOUT
Definition config.hpp:212
const std::string KEY_CONFIG_LSVS
Definition config.hpp:139
Definition ccsinsoldb.hpp:10
static bool Encode(CiiConfigInstanceNode &node, const hlcc::telif::LsvApp &source)
Definition config.hpp:95
static bool Decode(const CiiConfigInstanceNode &node, hlcc::telif::LsvApp &target)
Definition config.hpp:84
static bool Decode(const CiiConfigInstanceNode &node, hlcc::telif::TelNamedPosition &target)
Definition config.hpp:57
static bool Encode(CiiConfigInstanceNode &node, const hlcc::telif::TelNamedPosition &source)
Definition config.hpp:68
std::string cmds
Definition config.hpp:46
std::string name
Definition config.hpp:44
std::string oldb
Definition config.hpp:45
double alt_pos
Definition config.hpp:40
std::string pos_string
Definition config.hpp:39
double az_pos
Definition config.hpp:41