14 #include <rad/assert.hpp>
15 #include <rad/exceptions.hpp>
16 #include <rad/oldbInterface.hpp>
21 : m_prefix(prefix), m_runtime_db(writer) {
24 throw std::invalid_argument(
"OLDB prefix is invalid (empty)");
26 if (prefix.back() !=
'/') {
27 m_prefix.push_back(
'/');
37 m_runtime_db.Set(m_prefix + rad::KEY_MON_STATE, value);
49 m_runtime_db.Set(m_prefix + key, value);
void Visit(Func &&func)
Visit each registered parameter.
Metadata const & metadata
CII representation of real value.
This class provide access to the command line options and the configuration parameters stored in the ...
daq::config::Manager & GetMgr()
DbInterface(const std::string &prefix, rad::OldbAsyncWriter &runtime_db)
Constructor.
void Set(const std::string &key, const std::string &value)
void SetConfig(Config &cfg)
Set the application configuration information in the DB.
void SetControlState(const std::string &value)
virtual ~DbInterface()
Destructor.
DbInterface class header file.
std::string canonical_name
log4cplus::Logger & GetLogger()
Config class header file.