ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
|
Go to the documentation of this file.
14 #include <rad/assert.hpp>
15 #include <rad/exceptions.hpp>
22 m_runtime_db(runtime_db) {
25 if (prefix.size() > 0) {
26 m_prefix = prefix +
".";
41 return m_runtime_db.Get(m_prefix + key);
53 std::vector < std::string > kvs;
61 kvs.push_back(std::to_string(cfg.
GetDbTimeout().tv_sec));
84 kvs.push_back(std::to_string(dpm.
timeout.count()));
86 m_runtime_db.MultiSet(kvs);
91 m_runtime_db.Set(m_prefix + key, value);
const std::string KEY_CONFIG_DPM_TIMEOUT_SEC
const std::string KEY_CONFIG_REQ_ENDPOINT
const std::string KEY_CONFIG_DATAROOT
void Set(const std::string &key, const std::string &value)
virtual ~DbInterface()
Destructor.
std::string Get(const std::string &key)
const std::string KEY_CONFIG_FILENAME
const std::string KEY_CONFIG_PUB_ENDPOINT
void SetConfig(Config &cfg)
Set the application configuration information in the DB.
daq::DpmClientParams const & GetDpmClientParams() const
const std::string KEY_CONFIG_DPM_REQ_ENDPOINT
const std::string KEY_CONFIG_WORKSPACE
const std::string KEY_CONFIG_DB_ENDPOINT
std::chrono::seconds timeout
const std::string & GetDbEndpoint() const
Config class header file.
const std::string KEY_CONTROL_STATE
const std::string & GetPubEndpoint() const
const std::string & GetLogProperties() const
const std::string KEY_CONFIG_LOG_LEVEL
const timeval GetDbTimeout() const
const std::string & GetLogLevel() const
std::filesystem::path GetWorkspace() const
void SetControlState(const std::string &value)
const std::string & GetSmScxmlFilename() const
DbInterface class header file.
const std::string KEY_CONFIG_DB_TIMEOUT_SEC
const std::string & GetConfigFilename() const
log4cplus::Logger & GetLogger()
DbInterface(const std::string &prefix, rad::DbAdapter &runtime_db)
Constructor.
const std::string KEY_CONFIG_DPM_PUB_ENDPOINT
Connection parameters for DPM.
const std::string & GetMsgReplierEndpoint() const
std::string GetControlState()
const std::string KEY_CONFIG_LOG_PROPERTIES
This class provide access to the command line options and the configuration parameters stored in the ...
const std::string KEY_CONFIG_SM_SCXML