|
ifw-daq
1.0.0
IFW Data Acquisition modules
|
Go to the documentation of this file.
9 #ifndef SERVER_CONFIG_HPP_
10 #define SERVER_CONFIG_HPP_
12 #include <yaml-cpp/yaml.h>
74 void LoadConfig(
const std::string& filename =
"");
144 #endif // SERVER_CONFIG_HPP_
std::string m_req_endpoint
const std::string CONFIG_DEFAULT_LOG_PROPERTIES
Config(const Config &)=delete
Config()
Default constructor.
std::string m_instrument_id
const std::string CONFIG_DEFAULT_PUB_ENDPOINT
const int CONFIG_DEFAULT_DB_TIMEOUT_SEC
void LoadConfig(const std::string &filename="")
This method load from a configuration file the application configuration overriding the initializatio...
const std::string CONFIG_DEFAULT_LOGLEVEL
const std::string CONFIG_DEFAULT_PROCNAME
Default application configuration values.
virtual ~Config()
Default destructor.
std::string m_db_host_endpoint
const std::string CONFIG_ENVVAR_OUT_PATH
const std::string & GetDbEndpoint() const
const std::string CONFIG_DEFAULT_SCXML_FILENAME
bool ParseOptions(int argc, char *argv[])
This method parses the command line parameters overriding the initialization done in the constructor.
std::string m_config_filename
const std::string & GetPubEndpoint() const
YAML::Node m_config_node
Disable assignment operator.
const std::string CONFIG_DEFAULT_REQ_ENDPOINT
const std::string & GetLogProperties() const
const timeval GetDbTimeout() const
const std::string & GetLogLevel() const
std::string m_pub_endpoint
Config & operator=(const Config &)=delete
Disable copy constructor.
const std::string & GetSmScxmlFilename() const
const std::string CONFIG_DEFAULT_FILENAME
std::string m_scxml_filename
const std::string & GetConfigFilename() const
const std::string CONFIG_DEFAULT_DB_ENDPOINT
const std::string & GetMsgReplierEndpoint() const
std::string m_log_properties
const std::string & GetProcName() const
This class provide access to the command line options and the configuration parameters stored in the ...
const std::string CONFIG_ENVVAR_DBHOST
Application configuration environment variables.