rad 8.2.0
Loading...
Searching...
No Matches
config.hpp
Go to the documentation of this file.
1
9#ifndef {{cookiecutter.module_name|upper}}_CONFIG_HPP
10#define {{cookiecutter.module_name|upper}}_CONFIG_HPP
11
12#include <rad/config.hpp>
13
14namespace {{cookiecutter.module_name}} {
15
16
20const std::string CONFIG_DEFAULT_VERSION = std::string(VERSION);
21const std::string CONFIG_DEFAULT_MODNAME = "{{cookiecutter.module_name}}";
22const std::string CONFIG_DEFAULT_PROCNAME = "{{cookiecutter.application_name}}";
23//const std::string CONFIG_DEFAULT_FILENAME = ""; // by default use hard-coded values
24const std::string CONFIG_DEFAULT_FILENAME = "config/{{cookiecutter.module_name}}/config.yaml";
25const std::string CONFIG_DEFAULT_SCXML_FILENAME = "config/{{cookiecutter.module_name}}/sm.xml";
26const std::string CONFIG_DEFAULT_SCXML_APPEND = "";
27const std::string CONFIG_DEFAULT_LOG_LEVEL = "INFO";
28const std::string CONFIG_DEFAULT_LOG_PROPERTIES = "config/{{cookiecutter.module_name}}/log.properties";
29const std::string CONFIG_DEFAULT_REQ_ENDPOINT = "zpb.rr://127.0.0.1:12081/";
30const std::string CONFIG_DEFAULT_OLDB_URI_PREFIX = "cii.oldb:/elt/";
31const int CONFIG_DEFAULT_OLDB_CONN_TIMEOUT = 1; // sec
32const int CONFIG_DEFAULT_OLDB_ASYNC_PERIOD = 1000; // ms
33const bool CONFIG_DEFAULT_TRS_HEALTH_ENABLED = false;
34const std::string CONFIG_DEFAULT_TRS_PROTOCOL = "";
35const std::string CONFIG_DEFAULT_TRS_SOCKET_PATH = "";
36
41class Config : public rad::Config {
42 public:
50 Config();
51
55 virtual ~Config();
56};
57
58} // namespace {{cookiecutter.module_name}}
59
60#endif // {{cookiecutter.module_name|upper}}_CONFIG_HPP
Config class header file.
Definition config.hpp:83
Config(const std::string &name=LOGGER_NAME, const std::string &log_level="ERROR")
Definition config.cpp:23
virtual ~Config()
Definition config.cpp:86
const std::string CONFIG_DEFAULT_TRS_SOCKET_PATH
Definition config.hpp:40
const std::string CONFIG_DEFAULT_LOG_PROPERTIES
Definition config.hpp:33
const std::string CONFIG_DEFAULT_OLDB_URI_PREFIX
Definition config.hpp:35
const int CONFIG_DEFAULT_OLDB_CONN_TIMEOUT
Definition config.hpp:36
const std::string CONFIG_DEFAULT_REQ_ENDPOINT
Definition config.hpp:34
const std::string CONFIG_DEFAULT_TRS_PROTOCOL
Definition config.hpp:39
const bool CONFIG_DEFAULT_TRS_HEALTH_ENABLED
Definition config.hpp:38
const std::string CONFIG_DEFAULT_LOG_LEVEL
Definition config.hpp:32
const std::string CONFIG_DEFAULT_PROCNAME
Definition config.hpp:27
const std::string CONFIG_DEFAULT_FILENAME
Definition config.hpp:29
const std::string CONFIG_DEFAULT_SCXML_APPEND
Definition config.hpp:31
const std::string CONFIG_DEFAULT_SCXML_FILENAME
Definition config.hpp:30
const std::string CONFIG_DEFAULT_MODNAME
Definition config.hpp:26
const std::string CONFIG_DEFAULT_VERSION
Definition config.hpp:25
const int CONFIG_DEFAULT_OLDB_ASYNC_PERIOD
Definition config.hpp:37
#define cookiecutter