3#ifndef _NetworkInterface_0_dunedaq__confmodel_0_confmodel_H_
4#define _NetworkInterface_0_dunedaq__confmodel_0_confmodel_H_
31 virtual
void init(
bool init_children);
49 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
105 std::lock_guard scoped_lock(
m_mutex);
121 std::lock_guard scoped_lock(
m_mutex);
135 const std::vector<std::string>&
138 std::lock_guard scoped_lock(
m_mutex);
154 std::lock_guard scoped_lock(
m_mutex);
171 std::lock_guard scoped_lock(
m_mutex);
187 std::lock_guard scoped_lock(
m_mutex);
204 std::lock_guard scoped_lock(
m_mutex);
220 std::lock_guard scoped_lock(
m_mutex);
232 inline static const std::string
Control =
"Control";
233 inline static const std::string
Data =
"Data";
246 std::lock_guard scoped_lock(
m_mutex);
262 std::lock_guard scoped_lock(
m_mutex);
273 inline std::ostream&
operator<<(std::ostream& s,
const NetworkInterface& obj)
275 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.
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...
static const std::string & __get_mac_address_str() noexcept
void set_ip_address(const std::vector< std::string > &value)
Set "ip_address" attribute value. IP address in form a.b.c.d.
static const std::string s_interface_name
static const std::string s_network_mask
static const std::string s_ip_address
std::vector< std::string > m_ip_address
std::string m_interface_name
std::string m_network_name
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_class_name
friend class conffwk::DalFactory
static const std::string & __get_network_name_str() noexcept
static const std::string s_network_name
void set_interface_name(const std::string &value)
Set "interface_name" attribute value. Name of interface e.g. eth0 or eno1.
void set_network_mask(const std::string &value)
Set "network_mask" attribute value. Network mask in for a.b.c.d.
const std::string & get_network_name() const
Get "network_name" attribute value. Name of network on this interface Control or Data.
NetworkInterface(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string s_mac_address
friend class conffwk::DalObject
static const std::string & __get_interface_name_str() noexcept
const std::string & get_interface_name() const
Get "interface_name" attribute value. Name of interface e.g. eth0 or eno1.
virtual void init(bool init_children)
static const std::string & __get_network_mask_str() noexcept
void set_mac_address(const std::string &value)
Set "mac_address" attribute value. Destination MAC address on readout host.
static const std::string & __get_ip_address_str() noexcept
const std::string & get_network_mask() const
Get "network_mask" attribute value. Network mask in for a.b.c.d.
std::string m_network_mask
std::string m_mac_address
virtual ~NetworkInterface() noexcept
void set_network_name(const std::string &value)
Set "network_name" attribute value. Name of network on this interface Control or Data.
const std::vector< std::string > & get_ip_address() const
Get "ip_address" attribute value. IP address in form a.b.c.d.
const std::string & get_mac_address() const
Get "mac_address" attribute value. Destination MAC address on readout host.
std::vector< constNetworkInterface * >::const_iterator NetworkInterfaceIterator
std::ostream & operator<<(std::ostream &s, const ActionPlan &obj)
static const std::string Data
static const std::string Control