3#ifndef _NetworkConnection_0_dunedaq__confmodel_0_confmodel_H_
4#define _NetworkConnection_0_dunedaq__confmodel_0_confmodel_H_
43 virtual
void init(
bool init_children);
61 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
101 inline static const std::string
KSendRecv =
"kSendRecv";
102 inline static const std::string
KPubSub =
"kPubSub";
115 std::lock_guard scoped_lock(
m_mutex);
131 std::lock_guard scoped_lock(
m_mutex);
155 std::lock_guard scoped_lock(
m_mutex);
160 std::ostringstream text;
184 return obj.print_object(s);
void set_enum(const std::string &name, const std::string &value)
Set attribute enumeration 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.
const dunedaq::confmodel::Service * m_associated_service
static const std::string s_connection_type
std::string m_connection_type
virtual ~NetworkConnection() noexcept
const std::string & get_connection_type() const
Get "connection_type" attribute value. Type of the network connection.
static const std::string & __get_connection_type_str() noexcept
void set_connection_type(const std::string &value)
Set "connection_type" attribute value. Type of the network connection.
friend class conffwk::DalFactory
void set_associated_service(const dunedaq::confmodel::Service *value)
Set "associated_service" relationship value. Service provided by this connection.
static const std::string s_associated_service
const dunedaq::confmodel::Service * get_associated_service() const
Get "associated_service" relationship value. Service provided by this connection.
static const std::string & s_class_name
static const std::string & __get_associated_service_str() noexcept
virtual void init(bool init_children)
friend class conffwk::DalObject
NetworkConnection(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
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...
std::vector< constNetworkConnection * >::const_iterator NetworkConnectionIterator
std::ostream & operator<<(std::ostream &s, const ActionPlan &obj)
static const std::string KSendRecv
static const std::string KPubSub