3#ifndef _ConnectivityService_0_dunedaq__confmodel_0_confmodel_H_
4#define _ConnectivityService_0_dunedaq__confmodel_0_confmodel_H_
40 virtual
void init(
bool init_children);
58 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
90 inline static const
std::
string s_host = "host";
106 std::lock_guard scoped_lock(
m_mutex);
122 std::lock_guard scoped_lock(
m_mutex);
139 std::lock_guard scoped_lock(
m_mutex);
155 std::lock_guard scoped_lock(
m_mutex);
164 inline static const std::string
s_service =
"service";
179 std::lock_guard scoped_lock(
m_mutex);
184 std::ostringstream text;
185 text <<
"relationship \"" <<
s_service <<
"\" of object " <<
this <<
" is not set";
208 return obj.print_object(s);
void set_by_val(const std::string &name, T value)
Set attribute value.
void set_by_ref(const std::string &name, T &value)
Set attribute value.
The base class for any generated DAL object.
std::mutex m_mutex
Used to protect changes of DAL object.
ConfigObject p_obj
Config object used by given template object.
void check_init() const
Check and initialize object if necessary.
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
Generic configuration exception.
static const std::string & __get_host_str() noexcept
void set_service(const dunedaq::confmodel::Service *value)
Set "service" relationship value. Connectivity service Service definition.
void set_interval_ms(uint32_t value)
Set "interval_ms" attribute value. Interval between publishes and polls of connectivity service infor...
ConnectivityService(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
uint32_t get_interval_ms() const
Get "interval_ms" attribute value. Interval between publishes and polls of connectivity service infor...
virtual ~ConnectivityService() noexcept
void set_host(const std::string &value)
Set "host" attribute value. Connectivity service Host.
virtual std::vector< const dunedaq::conffwk::DalObject * > get(const std::string &name, bool upcast_unregistered=true) const
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject...
static const std::string s_service
static const std::string & s_class_name
friend class conffwk::DalFactory
static const std::string & __get_service_str() noexcept
const dunedaq::confmodel::Service * get_service() const
Get "service" relationship value. Connectivity service Service definition.
static const std::string s_host
const dunedaq::confmodel::Service * m_service
static const std::string & __get_interval_ms_str() noexcept
friend class conffwk::DalObject
const std::string & get_host() const
Get "host" attribute value. Connectivity service Host.
virtual void init(bool init_children)
static const std::string s_interval_ms
std::vector< constConnectivityService * >::const_iterator ConnectivityServiceIterator
std::ostream & operator<<(std::ostream &s, const ActionPlan &obj)