3#ifndef _IpbusDevice_0_dunedaq__appmodel_0_appmodel_H_
4#define _IpbusDevice_0_dunedaq__appmodel_0_appmodel_H_
21 class IpbusAddressTable;
40 virtual
void init(
bool init_children);
58 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
105 std::lock_guard scoped_lock(
m_mutex);
120 std::lock_guard scoped_lock(
m_mutex);
137 std::lock_guard scoped_lock(
m_mutex);
153 std::lock_guard scoped_lock(
m_mutex);
176 std::lock_guard scoped_lock(
m_mutex);
181 std::ostringstream text;
182 text <<
"relationship \"" <<
s_address_table <<
"\" of object " <<
this <<
" is not set";
204 return obj.print_object(s);
void set_timeout_ms(uint32_t value)
Set "timeout_ms" attribute value. IPBus device timeout.
static const std::string & s_class_name
static const std::string s_address_table
static const std::string s_uri
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...
virtual void init(bool init_children)
const dunedaq::appmodel::IpbusAddressTable * get_address_table() const
Get "address_table" relationship value.
static const std::string s_timeout_ms
const std::string & get_uri() const
Get "uri" attribute value.
const dunedaq::appmodel::IpbusAddressTable * m_address_table
friend class conffwk::DalFactory
virtual ~IpbusDevice() noexcept
void set_uri(const std::string &value)
Set "uri" attribute value.
friend class conffwk::DalObject
void set_address_table(const dunedaq::appmodel::IpbusAddressTable *value)
Set "address_table" relationship value.
static const std::string & __get_address_table_str() noexcept
static const std::string & __get_uri_str() noexcept
uint32_t get_timeout_ms() const
Get "timeout_ms" attribute value. IPBus device timeout.
IpbusDevice(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string & __get_timeout_ms_str() noexcept
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.
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constIpbusDevice * >::const_iterator IpbusDeviceIterator
Unsupported std::string uri Execution of command std::string error Failed to create CommandFacility uri