ifw-slm 0.1.2
 
Loading...
Searching...
No Matches
config.hpp
Go to the documentation of this file.
1
9#ifndef IFWSLM_CONFIG_HPP
10#define IFWSLM_CONFIG_HPP
11
12#include <rad/config.hpp>
13
14namespace ifw::slm {
15
16
20const std::string CONFIG_DEFAULT_VERSION = std::string(VERSION);
21const std::string CONFIG_DEFAULT_MODNAME = "slm";
22const std::string CONFIG_DEFAULT_PROCNAME = "ifw-slm";
23const std::string CONFIG_DEFAULT_FILENAME = "config/ifw/slm/config.yaml";
24const std::string CONFIG_DEFAULT_SCXML_FILENAME = "config/ifw/slm/sm.xml";
25const std::string CONFIG_DEFAULT_SCXML_APPEND = "";
26const std::string CONFIG_DEFAULT_LOG_LEVEL = "INFO";
27const std::string CONFIG_DEFAULT_LOG_PROPERTIES = "config/ifw/slm/log.properties";
28const std::string CONFIG_DEFAULT_REQ_ENDPOINT = "zpb.rr://127.0.0.1:12081/";
29const std::string CONFIG_DEFAULT_PUB_ENDPOINT = "zpb.ps://127.0.0.1:12082/";
30const std::string CONFIG_DEFAULT_OLDB_URI_PREFIX = "cii.oldb:/elt/xxx/";
31
32// Configuration key for pub_endpoint (MAL pub/sub for status)
33constexpr auto KEY_CONFIG_PUB_ENDPOINT = "server/pub_endpoint";
34const int CONFIG_DEFAULT_LOOP_PERIOD_SEC = 60; // sec
36const int CONFIG_DEFAULT_OLDB_ASYNC_PERIOD = 1000; // ms
38
43
48class Config : public rad::Config {
49 public:
57 Config();
58
62 virtual ~Config();
63};
64
65} // namespace ifw::slm
66
67#endif // IFWSLM_CONFIG_HPP
virtual ~Config()
Definition config.cpp:34
Config()
Definition config.cpp:16
Definition actionMgr.cpp:29
const std::string CONFIG_DEFAULT_REQ_ENDPOINT
Definition config.hpp:28
const std::string CONFIG_DEFAULT_VERSION
Definition config.hpp:20
const int CONFIG_DEFAULT_OLDB_ASYNC_PERIOD
Definition config.hpp:36
const std::string CONFIG_DEFAULT_SCXML_APPEND
Definition config.hpp:25
const bool CONFIG_DEFAULT_TRS_HEALTH_ENABLED
Definition config.hpp:37
const std::string CONFIG_DEFAULT_FILENAME
Definition config.hpp:23
const std::string CONFIG_DEFAULT_SCXML_FILENAME
Definition config.hpp:24
const std::string CONFIG_DEFAULT_PUB_ENDPOINT
Definition config.hpp:29
const int CONFIG_DEFAULT_OLDB_CONN_TIMEOUT
Definition config.hpp:35
const std::string CONFIG_DEFAULT_LOG_LEVEL
Definition config.hpp:26
const std::string CONFIG_DEFAULT_OLDB_URI_PREFIX
Definition config.hpp:30
const std::string CONFIG_DEFAULT_MODNAME
Definition config.hpp:21
const std::string CONFIG_DEFAULT_LOG_PROPERTIES
Definition config.hpp:27
constexpr auto KEY_CONFIG_PUB_ENDPOINT
Definition config.hpp:33
const std::string CONFIG_DEFAULT_PROCNAME
Definition config.hpp:22
const int CONFIG_DEFAULT_LOOP_PERIOD_SEC
Definition config.hpp:34