9 #ifndef SERVER_CONFIG_HPP_
10 #define SERVER_CONFIG_HPP_
16 #include <rad/config.hpp>
91 void LoadConfig(
const std::string &filename =
"");
159 std::optional<elt::configng::CiiConfigDocument>
m_config;
Maintains the associativity of configuration attributes with metadata and value origin/priority.
This class provide access to the command line options and the configuration parameters stored in the ...
const std::string & GetLogLevel() const
std::filesystem::path GetWorkspace() const
std::string m_pub_endpoint
daq::DpmClientParams m_dpm_params
Config(const Config &)=delete
const std::string & GetSmScxmlFilename() const
std::string m_log_properties
bool ParseOptions(int argc, char *argv[])
Disable assignment operator.
Config()
Default constructor.
daq::DpmClientParams const & GetDpmClientParams() const
const std::string & GetMsgReplierEndpoint() const
const std::string & GetConfigFilename() const
void LoadConfig(const std::string &filename="")
This method load from a configuration file the application configuration overriding the initializatio...
std::chrono::seconds GetDbTimeout() const
daq::config::Manager & GetMgr()
std::optional< elt::configng::CiiConfigDocument > m_config
std::chrono::hours m_stale_merging
Config & operator=(const Config &)=delete
Disable copy constructor.
std::chrono::hours m_stale_acquiring
std::string m_instrument_id
const std::string & GetLogProperties() const
std::string m_req_endpoint
std::string m_config_filename
daq::config::Manager m_mgr
std::filesystem::path m_workspace
const std::string & GetProcName() const
const std::string & GetPubEndpoint() const
std::string m_scxml_filename
const std::string & GetDbPrefix() const
daq::config::Manager and associated types.
Connection parameters for DPM.
const std::string CONFIG_DEFAULT_WORKSPACE
const std::string KEY_CONFIG_PUB_ENDPOINT
Rad configuration keys.
const std::string KEY_CONFIG_DPM_TIMEOUT_SEC
const std::string KEY_CONFIG_STALE_DAQ_ACQUIRING
const std::string CONFIG_DEFAULT_SCXML_FILENAME
const std::string KEY_CONFIG_DATAROOT
const std::string CONFIG_DEFAULT_REQ_ENDPOINT
const std::string CONFIG_DEFAULT_OLDB_URI_PREFIX
const std::string KEY_CONFIG_DPM_PUB_ENDPOINT
const std::string KEY_CONFIG_WORKSPACE
const int CONFIG_DEFAULT_DB_TIMEOUT_SEC
const std::string CONFIG_DEFAULT_PUB_ENDPOINT
const std::string CONFIG_DEFAULT_LOG_LEVEL
const std::string KEY_CONFIG_INSTRUMENT_ID
const std::string CONFIG_ENVVAR_OUT_PATH
Application configuration environment variables.
const std::string CONFIG_DEFAULT_PROCNAME
Default application configuration values.
const std::string CONFIG_DEFAULT_FILENAME
const std::string KEY_CONFIG_STALE_DAQ_MERGING
const int CONFIG_DEFAULT_OLDB_CONN_TIMEOUT
const std::string KEY_CONFIG_DPM_REQ_ENDPOINT