DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::appmodel::HermesDataSender Class Reference

#include <HermesDataSender.hpp>

Inheritance diagram for dunedaq::appmodel::HermesDataSender:
[legend]
Collaboration diagram for dunedaq::appmodel::HermesDataSender:
[legend]

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the HermesDataSender object.
 
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 pointers.
 
uint32_t get_link_id () const
 Get "link_id" attribute value.
 
void set_link_id (uint32_t value)
 Set "link_id" attribute value.
 
uint32_t get_port () const
 Get "port" attribute value.
 
void set_port (uint32_t value)
 Set "port" attribute value.
 
const std::string & get_control_host () const
 Get "control_host" attribute value.
 
void set_control_host (const std::string &value)
 Set "control_host" attribute value.
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the HermesDataSender object.
 
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 pointers.
 
uint32_t get_link_id () const
 Get "link_id" attribute value.
 
void set_link_id (uint32_t value)
 Set "link_id" attribute value.
 
uint32_t get_port () const
 Get "port" attribute value.
 
void set_port (uint32_t value)
 Set "port" attribute value.
 
const std::string & get_control_host () const
 Get "control_host" attribute value.
 
void set_control_host (const std::string &value)
 Set "control_host" attribute value.
 
- Public Member Functions inherited from dunedaq::appmodel::NWDetDataSender
const dunedaq::confmodel::NetworkInterfaceget_uses () const
 Get "uses" relationship value.
 
void set_uses (const dunedaq::confmodel::NetworkInterface *value)
 Set "uses" relationship value.
 
const dunedaq::confmodel::NetworkInterfaceget_uses () const
 Get "uses" relationship value.
 
void set_uses (const dunedaq::confmodel::NetworkInterface *value)
 Set "uses" relationship value.
 
- Public Member Functions inherited from dunedaq::confmodel::DetDataSender
- Public Member Functions inherited from dunedaq::confmodel::ResourceSetAND
- Public Member Functions inherited from dunedaq::confmodel::ResourceSet
const std::vector< const dunedaq::confmodel::ResourceBase * > & get_contains () const
 Get "contains" relationship value. A resource set is a container of resources to easily implement group operations (add/remove, enable/disable).
 
void set_contains (const std::vector< const dunedaq::confmodel::ResourceBase * > &value)
 Set "contains" relationship value. A resource set is a container of resources to easily implement group operations (add/remove, enable/disable).
 
const std::vector< const dunedaq::confmodel::ResourceBase * > & get_contains () const
 Get "contains" relationship value. A resource set is a container of resources to easily implement group operations (add/remove, enable/disable).
 
void set_contains (const std::vector< const dunedaq::confmodel::ResourceBase * > &value)
 Set "contains" relationship value. A resource set is a container of resources to easily implement group operations (add/remove, enable/disable).
 
- Public Member Functions inherited from dunedaq::confmodel::ResourceBase
- Public Member Functions inherited from dunedaq::confmodel::Component
void get_parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Component * > > &parents) const
 
bool disabled (const dunedaq::confmodel::Session &session) const
 
void get_parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Component * > > &parents) const
 
bool disabled (const dunedaq::confmodel::Session &session) const
 
- Public Member Functions inherited from dunedaq::conffwk::DalObject
const std::string & UID () const noexcept
 
const std::string & class_name () const noexcept
 
bool castable (const std::string &target) const noexcept
 
bool castable (const std::string *target) const noexcept
 
template<class TARGET >
const TARGET * cast () const noexcept
 Casts object to different class.
 
std::string full_name () const noexcept
 
const ConfigObjectconfig_object () const
 
DalRegistryregistry () const noexcept
 
Configurationconfiguration () const noexcept
 
void unread ()
 
void set (const ConfigObject &o) noexcept
 
void move (const std::string &at)
 
void rename (const std::string &new_id)
 
void p_hdr (std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const
 print object headers
 
std::ostream & print_object (std::ostream &s) const
 print object details
 
void throw_init_ex (dunedaq::conffwk::Exception &ex)
 throw object initialisation exception (i.e.
 

Static Public Member Functions

static const std::string & __get_link_id_str () noexcept
 
static const std::string & __get_port_str () noexcept
 
static const std::string & __get_control_host_str () noexcept
 
static const std::string & __get_link_id_str () noexcept
 
static const std::string & __get_port_str () noexcept
 
static const std::string & __get_control_host_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::appmodel::NWDetDataSender
static const std::string & __get_uses_str () noexcept
 
static const std::string & __get_uses_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::confmodel::ResourceSet
static const std::string & __get_contains_str () noexcept
 
static const std::string & __get_contains_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::conffwk::DalObject
static void p_null (std::ostream &s)
 print "(null)"
 
static void p_rm (std::ostream &s)
 print "(deleted object)"
 
static void p_error (std::ostream &s, dunedaq::conffwk::Exception &ex)
 print error text
 
static void throw_get_ex (const std::string &what, const std::string &class_name, const DalObject *obj)
 throw exception in generated get method (i.e.
 
static bool is_null (const DalObject *ref) noexcept
 check a pointer on DAL object is null
 

Static Public Attributes

static const std::string & s_class_name
 
static const std::string s_link_id = "link_id"
 
static const std::string s_port = "port"
 
static const std::string s_control_host = "control_host"
 
- Static Public Attributes inherited from dunedaq::appmodel::NWDetDataSender
static const std::string & s_class_name
 
static const std::string s_uses = "uses"
 
- Static Public Attributes inherited from dunedaq::confmodel::DetDataSender
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::ResourceSetAND
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::ResourceSet
static const std::string & s_class_name
 
static const std::string s_contains = "contains"
 
- Static Public Attributes inherited from dunedaq::confmodel::ResourceBase
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::Component
static const std::string & s_class_name
 

Protected Member Functions

 HermesDataSender (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~HermesDataSender () noexcept
 
virtual void init (bool init_children)
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 HermesDataSender (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~HermesDataSender () noexcept
 
virtual void init (bool init_children)
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::appmodel::NWDetDataSender
 NWDetDataSender (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~NWDetDataSender () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 NWDetDataSender (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~NWDetDataSender () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::confmodel::DetDataSender
 DetDataSender (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DetDataSender () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 DetDataSender (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DetDataSender () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::confmodel::ResourceSetAND
 ResourceSetAND (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceSetAND () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 ResourceSetAND (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceSetAND () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::confmodel::ResourceSet
 ResourceSet (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceSet () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 ResourceSet (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceSet () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::confmodel::ResourceBase
 ResourceBase (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceBase () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 ResourceBase (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceBase () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::confmodel::Component
 Component (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Component () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 Component (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Component () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::conffwk::DalObject
 DalObject (DalRegistry &db, const ConfigObject &o) noexcept
 
virtual ~DalObject ()
 
void clear () noexcept
 
void check () const
 
bool is_deleted () const
 
void increment_created () noexcept
 
void increment_read () noexcept
 
void check_init () const
 Check and initialize object if necessary.
 
template<typename T >
void _set_object (const std::string &name, const T *value)
 Helper method for generated set single-value relationship methods.
 
template<typename T >
void _set_objects (const std::string &name, const std::vector< const T * > &value)
 Helper method for generated set multi-value relationship methods.
 
bool get_rel_objects (const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const
 Read relationship values as DAL objects using DAL factory.
 
bool get_algo_objects (const std::string &name, std::vector< const DalObject * > &objs) const
 Run algorithm and return result as DAL objects using DAL factory.
 

Private Attributes

uint32_t m_link_id
 
uint32_t m_port
 
std::string m_control_host
 

Friends

class conffwk::Configuration
 
class conffwk::DalObject
 
class conffwk::DalFactory
 
class conffwk::DalRegistry
 

Additional Inherited Members

- Protected Attributes inherited from dunedaq::conffwk::DalObject
std::mutex m_mutex
 Used to protect changes of DAL object.
 
bool p_was_read
 is true, if the object was read
 
DalRegistryp_registry
 Configuration object.
 
ConfigObject p_obj
 Config object used by given template object.
 
std::string p_UID
 Is used for template objects (see dqm_conffwk)
 

Detailed Description

Definition at line 23 of file HermesDataSender.hpp.

Constructor & Destructor Documentation

◆ HermesDataSender() [1/2]

dunedaq::appmodel::HermesDataSender::HermesDataSender ( conffwk::DalRegistry & db,
const conffwk::ConfigObject & obj )
protectednoexcept

Definition at line 26 of file HermesDataSender.cpp.

26 :
28 NWDetDataSender(db, o)
29
30 {
31 ;
32 }
NWDetDataSender(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~HermesDataSender() [1/2]

dunedaq::appmodel::HermesDataSender::~HermesDataSender ( )
protectedvirtualnoexcept

Definition at line 79 of file HermesDataSender.cpp.

80 {
81 }

◆ HermesDataSender() [2/2]

dunedaq::appmodel::HermesDataSender::HermesDataSender ( conffwk::DalRegistry & db,
const conffwk::ConfigObject & obj )
protectednoexcept

◆ ~HermesDataSender() [2/2]

virtual dunedaq::appmodel::HermesDataSender::~HermesDataSender ( )
protectedvirtualnoexcept

Member Function Documentation

◆ __get_control_host_str() [1/2]

static const std::string & dunedaq::appmodel::HermesDataSender::__get_control_host_str ( )
inlinestaticnoexcept

Definition at line 89 of file HermesDataSender.hpp.

89{ return s_control_host; }
static const std::string s_control_host

◆ __get_control_host_str() [2/2]

static const std::string & dunedaq::appmodel::HermesDataSender::__get_control_host_str ( )
inlinestaticnoexcept

Definition at line 89 of file HermesDataSender.hpp.

89{ return s_control_host; }

◆ __get_link_id_str() [1/2]

static const std::string & dunedaq::appmodel::HermesDataSender::__get_link_id_str ( )
inlinestaticnoexcept

Definition at line 87 of file HermesDataSender.hpp.

87{ return s_link_id; }

◆ __get_link_id_str() [2/2]

static const std::string & dunedaq::appmodel::HermesDataSender::__get_link_id_str ( )
inlinestaticnoexcept

Definition at line 87 of file HermesDataSender.hpp.

87{ return s_link_id; }

◆ __get_port_str() [1/2]

static const std::string & dunedaq::appmodel::HermesDataSender::__get_port_str ( )
inlinestaticnoexcept

Definition at line 88 of file HermesDataSender.hpp.

88{ return s_port; }

◆ __get_port_str() [2/2]

static const std::string & dunedaq::appmodel::HermesDataSender::__get_port_str ( )
inlinestaticnoexcept

Definition at line 88 of file HermesDataSender.hpp.

88{ return s_port; }

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::HermesDataSender::get ( const std::string & name,
bool upcast_unregistered = true ) const
virtual

Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.

Parameters are:

Parameters
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Reimplemented from dunedaq::appmodel::NWDetDataSender.

Definition at line 83 of file HermesDataSender.cpp.

84 {
85 std::vector<const dunedaq::conffwk::DalObject *> vec;
86
87 if (!get(name, vec, upcast_unregistered, true))
88 throw_get_ex(name, s_class_name, this);
89
90 return vec;
91 }
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
static void throw_get_ex(const std::string &what, const std::string &class_name, const DalObject *obj)
throw exception in generated get method (i.e.
Definition DalObject.cpp:82

◆ get() [2/4]

virtual std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::HermesDataSender::get ( const std::string & name,
bool upcast_unregistered = true ) const
virtual

Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.

Parameters are:

Parameters
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Reimplemented from dunedaq::appmodel::NWDetDataSender.

◆ get() [3/4]

bool dunedaq::appmodel::HermesDataSender::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

Definition at line 93 of file HermesDataSender.cpp.

94 {
95 if (first_call)
96 {
97 std::lock_guard scoped_lock(m_mutex);
98
99 check();
100 check_init();
101
102 if (get_rel_objects(name, upcast_unregistered, vec))
103 return true;
104 }
105
106 if (NWDetDataSender::get(name, vec, upcast_unregistered, false)) return true;
107
108 if (first_call)
109 return get_algo_objects(name, vec);
110
111 return false;
112 }
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...
bool get_rel_objects(const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const
Read relationship values as DAL objects using DAL factory.
Definition DalObject.cpp:8
std::mutex m_mutex
Used to protect changes of DAL object.
bool get_algo_objects(const std::string &name, std::vector< const DalObject * > &objs) const
Run algorithm and return result as DAL objects using DAL factory.
Definition DalObject.cpp:25
void check_init() const
Check and initialize object if necessary.

◆ get() [4/4]

bool dunedaq::appmodel::HermesDataSender::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

◆ get_control_host() [1/2]

const std::string & dunedaq::appmodel::HermesDataSender::get_control_host ( ) const
inline

Get "control_host" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 161 of file HermesDataSender.hpp.

162 {
163 std::lock_guard scoped_lock(m_mutex);
164 check();
165 check_init();
166 return m_control_host;
167 }

◆ get_control_host() [2/2]

const std::string & dunedaq::appmodel::HermesDataSender::get_control_host ( ) const
inline

Get "control_host" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 161 of file HermesDataSender.hpp.

162 {
163 std::lock_guard scoped_lock(m_mutex);
164 check();
165 check_init();
166 return m_control_host;
167 }

◆ get_link_id() [1/2]

uint32_t dunedaq::appmodel::HermesDataSender::get_link_id ( ) const
inline

Get "link_id" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 99 of file HermesDataSender.hpp.

100 {
101 std::lock_guard scoped_lock(m_mutex);
102 check();
103 check_init();
104 return m_link_id;
105 }

◆ get_link_id() [2/2]

uint32_t dunedaq::appmodel::HermesDataSender::get_link_id ( ) const
inline

Get "link_id" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 99 of file HermesDataSender.hpp.

100 {
101 std::lock_guard scoped_lock(m_mutex);
102 check();
103 check_init();
104 return m_link_id;
105 }

◆ get_port() [1/2]

uint32_t dunedaq::appmodel::HermesDataSender::get_port ( ) const
inline

Get "port" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 130 of file HermesDataSender.hpp.

131 {
132 std::lock_guard scoped_lock(m_mutex);
133 check();
134 check_init();
135 return m_port;
136 }

◆ get_port() [2/2]

uint32_t dunedaq::appmodel::HermesDataSender::get_port ( ) const
inline

Get "port" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 130 of file HermesDataSender.hpp.

131 {
132 std::lock_guard scoped_lock(m_mutex);
133 check();
134 check_init();
135 return m_port;
136 }

◆ init() [1/2]

void dunedaq::appmodel::HermesDataSender::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::NWDetDataSender.

Definition at line 63 of file HermesDataSender.cpp.

64 {
65 NWDetDataSender::init(init_children);
66
67 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
68
69 try {
73 }
74 catch (dunedaq::conffwk::Exception & ex) {
75 throw_init_ex(ex);
76 }
77 }
virtual void init(bool init_children)
void get(const std::string &name, T &value)
Get value of object's attribute or relationship.
void throw_init_ex(dunedaq::conffwk::Exception &ex)
throw object initialisation exception (i.e.
Definition DalObject.cpp:74
ConfigObject p_obj
Config object used by given template object.
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ init() [2/2]

virtual void dunedaq::appmodel::HermesDataSender::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::NWDetDataSender.

◆ print() [1/2]

void dunedaq::appmodel::HermesDataSender::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the HermesDataSender object.

Parameters are:

Parameters
offsetnumber of spaces to shift object right (useful to print nested objects)
print_headerif false, do not print object header (to print attributes of base classes)
soutput stream

Reimplemented from dunedaq::appmodel::NWDetDataSender.

Definition at line 35 of file HermesDataSender.cpp.

36 {
37 check_init();
38
39 try {
40 const std::string str(indent+2, ' ');
41
42 if (print_header)
43 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
44
45
46 // print direct super-classes
47
49
50
51 // print direct attributes
52
56 }
57 catch (dunedaq::conffwk::Exception & ex) {
59 }
60 }
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the NWDetDataSender object.
void p_hdr(std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const
print object headers
Definition DalObject.cpp:65
static void p_error(std::ostream &s, dunedaq::conffwk::Exception &ex)
print error text
Definition DalObject.cpp:59
void p_sv_attr(std::ostream &s, const std::string &str, const std::string &name, const T &val) noexcept
print single-value attribute

◆ print() [2/2]

virtual void dunedaq::appmodel::HermesDataSender::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the HermesDataSender object.

Parameters are:

Parameters
offsetnumber of spaces to shift object right (useful to print nested objects)
print_headerif false, do not print object header (to print attributes of base classes)
soutput stream

Reimplemented from dunedaq::appmodel::NWDetDataSender.

◆ set_control_host() [1/2]

void dunedaq::appmodel::HermesDataSender::set_control_host ( const std::string & value)
inline

Set "control_host" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 176 of file HermesDataSender.hpp.

177 {
178 std::lock_guard scoped_lock(m_mutex);
179 check();
180 clear();
182 }
void set_by_ref(const std::string &name, T &value)
Set attribute value.

◆ set_control_host() [2/2]

void dunedaq::appmodel::HermesDataSender::set_control_host ( const std::string & value)
inline

Set "control_host" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 176 of file HermesDataSender.hpp.

177 {
178 std::lock_guard scoped_lock(m_mutex);
179 check();
180 clear();
182 }

◆ set_link_id() [1/2]

void dunedaq::appmodel::HermesDataSender::set_link_id ( uint32_t value)
inline

Set "link_id" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 114 of file HermesDataSender.hpp.

115 {
116 std::lock_guard scoped_lock(m_mutex);
117 check();
118 clear();
119 p_obj.set_by_val(s_link_id, value);
120 }
void set_by_val(const std::string &name, T value)
Set attribute value.

◆ set_link_id() [2/2]

void dunedaq::appmodel::HermesDataSender::set_link_id ( uint32_t value)
inline

Set "link_id" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 114 of file HermesDataSender.hpp.

115 {
116 std::lock_guard scoped_lock(m_mutex);
117 check();
118 clear();
119 p_obj.set_by_val(s_link_id, value);
120 }

◆ set_port() [1/2]

void dunedaq::appmodel::HermesDataSender::set_port ( uint32_t value)
inline

Set "port" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 145 of file HermesDataSender.hpp.

146 {
147 std::lock_guard scoped_lock(m_mutex);
148 check();
149 clear();
150 p_obj.set_by_val(s_port, value);
151 }

◆ set_port() [2/2]

void dunedaq::appmodel::HermesDataSender::set_port ( uint32_t value)
inline

Set "port" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 145 of file HermesDataSender.hpp.

146 {
147 std::lock_guard scoped_lock(m_mutex);
148 check();
149 clear();
150 p_obj.set_by_val(s_port, value);
151 }

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 25 of file HermesDataSender.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 27 of file HermesDataSender.hpp.

◆ conffwk::DalObject

Definition at line 26 of file HermesDataSender.hpp.

◆ conffwk::DalRegistry

Definition at line 28 of file HermesDataSender.hpp.

Member Data Documentation

◆ m_control_host

std::string dunedaq::appmodel::HermesDataSender::m_control_host
private

Definition at line 76 of file HermesDataSender.hpp.

◆ m_link_id

uint32_t dunedaq::appmodel::HermesDataSender::m_link_id
private

Definition at line 74 of file HermesDataSender.hpp.

◆ m_port

uint32_t dunedaq::appmodel::HermesDataSender::m_port
private

Definition at line 75 of file HermesDataSender.hpp.

◆ s_class_name

static const std::string & dunedaq::appmodel::HermesDataSender::s_class_name
static

The name of the configuration class.

Definition at line 40 of file HermesDataSender.hpp.

◆ s_control_host

static const std::string dunedaq::appmodel::HermesDataSender::s_control_host = "control_host"
inlinestatic

Definition at line 85 of file HermesDataSender.hpp.

◆ s_link_id

static const std::string dunedaq::appmodel::HermesDataSender::s_link_id = "link_id"
inlinestatic

Definition at line 83 of file HermesDataSender.hpp.

◆ s_port

static const std::string dunedaq::appmodel::HermesDataSender::s_port = "port"
inlinestatic

Definition at line 84 of file HermesDataSender.hpp.


The documentation for this class was generated from the following files: