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

#include <NetworkDetectorToDaqConnection.hpp>

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

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the NetworkDetectorToDaqConnection 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.
 
const std::vector< const dunedaq::appmodel::NWDetDataSender * > & get_net_senders () const
 Get "net_senders" relationship value. A collection of Network detector sending objects.
 
void set_net_senders (const std::vector< const dunedaq::appmodel::NWDetDataSender * > &value)
 Set "net_senders" relationship value. A collection of Network detector sending objects.
 
const dunedaq::appmodel::NWDetDataReceiverget_net_receiver () const
 Get "net_receiver" relationship value.
 
void set_net_receiver (const dunedaq::appmodel::NWDetDataReceiver *value)
 Set "net_receiver" relationship value.
 
std::vector< const confmodel::DetDataSender * > senders () const override
 
const confmodel::DetDataReceiverreceiver () const override
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the NetworkDetectorToDaqConnection 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.
 
const std::vector< const dunedaq::appmodel::NWDetDataSender * > & get_net_senders () const
 Get "net_senders" relationship value. A collection of Network detector sending objects.
 
void set_net_senders (const std::vector< const dunedaq::appmodel::NWDetDataSender * > &value)
 Set "net_senders" relationship value. A collection of Network detector sending objects.
 
const dunedaq::appmodel::NWDetDataReceiverget_net_receiver () const
 Get "net_receiver" relationship value.
 
void set_net_receiver (const dunedaq::appmodel::NWDetDataReceiver *value)
 Set "net_receiver" relationship value.
 
std::vector< const confmodel::DetDataSender * > senders () const override
 
const confmodel::DetDataReceiverreceiver () const override
 
- Public Member Functions inherited from dunedaq::confmodel::DetectorToDaqConnection
std::vector< const confmodel::DetectorStream * > streams () const
 
virtual std::vector< const Resource * > contained_resources () const override
 
bool compute_disabled_state (const std::set< std::string > &disabled) const final
 
std::vector< const confmodel::DetectorStream * > streams () const
 
virtual std::vector< const Resource * > contained_resources () const override
 
bool compute_disabled_state (const std::set< std::string > &disabled) const final
 
- Public Member Functions inherited from dunedaq::confmodel::ResourceSet
- Public Member Functions inherited from dunedaq::confmodel::Resource
void parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Resource * > > &parents) const
 
bool is_disabled (const dunedaq::confmodel::ResourceTree &session) const
 
void parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Resource * > > &parents) const
 
bool is_disabled (const dunedaq::confmodel::ResourceTree &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_net_senders_str () noexcept
 
static const std::string & __get_net_receiver_str () noexcept
 
static const std::string & __get_net_senders_str () noexcept
 
static const std::string & __get_net_receiver_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_net_senders = "net_senders"
 
static const std::string s_net_receiver = "net_receiver"
 
- Static Public Attributes inherited from dunedaq::confmodel::DetectorToDaqConnection
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::ResourceSet
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::Resource
static const std::string & s_class_name
 

Protected Member Functions

 NetworkDetectorToDaqConnection (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~NetworkDetectorToDaqConnection () 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
 
 NetworkDetectorToDaqConnection (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~NetworkDetectorToDaqConnection () 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::confmodel::DetectorToDaqConnection
 DetectorToDaqConnection (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DetectorToDaqConnection () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 DetectorToDaqConnection (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DetectorToDaqConnection () 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::Resource
 Resource (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Resource () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 Resource (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Resource () 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

std::vector< const dunedaq::appmodel::NWDetDataSender * > m_net_senders
 
const dunedaq::appmodel::NWDetDataReceiverm_net_receiver
 

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 37 of file NetworkDetectorToDaqConnection.hpp.

Constructor & Destructor Documentation

◆ NetworkDetectorToDaqConnection() [1/2]

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

Definition at line 32 of file NetworkDetectorToDaqConnection.cpp.

◆ ~NetworkDetectorToDaqConnection() [1/2]

dunedaq::appmodel::NetworkDetectorToDaqConnection::~NetworkDetectorToDaqConnection ( )
protectedvirtualnoexcept

Definition at line 84 of file NetworkDetectorToDaqConnection.cpp.

85 {
86 }

◆ NetworkDetectorToDaqConnection() [2/2]

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

◆ ~NetworkDetectorToDaqConnection() [2/2]

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

Member Function Documentation

◆ __get_net_receiver_str() [1/2]

static const std::string & dunedaq::appmodel::NetworkDetectorToDaqConnection::__get_net_receiver_str ( )
inlinestaticnoexcept

◆ __get_net_receiver_str() [2/2]

static const std::string & dunedaq::appmodel::NetworkDetectorToDaqConnection::__get_net_receiver_str ( )
inlinestaticnoexcept

Definition at line 100 of file NetworkDetectorToDaqConnection.hpp.

100{ return s_net_receiver; }

◆ __get_net_senders_str() [1/2]

static const std::string & dunedaq::appmodel::NetworkDetectorToDaqConnection::__get_net_senders_str ( )
inlinestaticnoexcept

◆ __get_net_senders_str() [2/2]

static const std::string & dunedaq::appmodel::NetworkDetectorToDaqConnection::__get_net_senders_str ( )
inlinestaticnoexcept

Definition at line 99 of file NetworkDetectorToDaqConnection.hpp.

99{ return s_net_senders; }

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::NetworkDetectorToDaqConnection::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::confmodel::DetectorToDaqConnection.

Definition at line 88 of file NetworkDetectorToDaqConnection.cpp.

89 {
90 std::vector<const dunedaq::conffwk::DalObject *> vec;
91
92 if (!get(name, vec, upcast_unregistered, true))
93 throw_get_ex(name, s_class_name, this);
94
95 return vec;
96 }
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 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::NetworkDetectorToDaqConnection::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::confmodel::DetectorToDaqConnection.

◆ get() [3/4]

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

Definition at line 98 of file NetworkDetectorToDaqConnection.cpp.

99 {
100 if (first_call)
101 {
102 std::lock_guard scoped_lock(m_mutex);
103
104 check();
105 check_init();
106
107 if (get_rel_objects(name, upcast_unregistered, vec))
108 return true;
109 }
110
111 if (DetectorToDaqConnection::get(name, vec, upcast_unregistered, false)) return true;
112
113 if (first_call)
114 return get_algo_objects(name, vec);
115
116 return false;
117 }
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::NetworkDetectorToDaqConnection::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

◆ get_net_receiver() [1/2]

const dunedaq::appmodel::NWDetDataReceiver * dunedaq::appmodel::NetworkDetectorToDaqConnection::get_net_receiver ( ) const
inline

Get "net_receiver" relationship value.

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

Definition at line 137 of file NetworkDetectorToDaqConnection.hpp.

138 {
139 std::lock_guard scoped_lock(m_mutex);
140 check();
141 check_init();
142 if (!m_net_receiver)
143 {
144 std::ostringstream text;
145 text << "relationship \"" << s_net_receiver << "\" of object " << this << " is not set";
146 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
147 }
148 return m_net_receiver;
149 }
#define ERS_HERE
Generic configuration exception.

◆ get_net_receiver() [2/2]

const dunedaq::appmodel::NWDetDataReceiver * dunedaq::appmodel::NetworkDetectorToDaqConnection::get_net_receiver ( ) const
inline

Get "net_receiver" relationship value.

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

Definition at line 137 of file NetworkDetectorToDaqConnection.hpp.

138 {
139 std::lock_guard scoped_lock(m_mutex);
140 check();
141 check_init();
142 if (!m_net_receiver)
143 {
144 std::ostringstream text;
145 text << "relationship \"" << s_net_receiver << "\" of object " << this << " is not set";
146 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
147 }
148 return m_net_receiver;
149 }

◆ get_net_senders() [1/2]

const std::vector< const dunedaq::appmodel::NWDetDataSender * > & dunedaq::appmodel::NetworkDetectorToDaqConnection::get_net_senders ( ) const
inline

Get "net_senders" relationship value. A collection of Network detector sending objects.

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

Definition at line 111 of file NetworkDetectorToDaqConnection.hpp.

112 {
113 std::lock_guard scoped_lock(m_mutex);
114 check();
115 check_init();
116 return m_net_senders;
117 }
std::vector< const dunedaq::appmodel::NWDetDataSender * > m_net_senders

◆ get_net_senders() [2/2]

const std::vector< const dunedaq::appmodel::NWDetDataSender * > & dunedaq::appmodel::NetworkDetectorToDaqConnection::get_net_senders ( ) const
inline

Get "net_senders" relationship value. A collection of Network detector sending objects.

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

Definition at line 111 of file NetworkDetectorToDaqConnection.hpp.

112 {
113 std::lock_guard scoped_lock(m_mutex);
114 check();
115 check_init();
116 return m_net_senders;
117 }

◆ init() [1/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::confmodel::DetectorToDaqConnection.

Definition at line 69 of file NetworkDetectorToDaqConnection.cpp.

70 {
71 DetectorToDaqConnection::init(init_children);
72
73 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
74
75 try {
78 }
79 catch (dunedaq::conffwk::Exception & ex) {
80 throw_init_ex(ex);
81 }
82 }
void throw_init_ex(dunedaq::conffwk::Exception &ex)
throw object initialisation exception (i.e.
Definition DalObject.cpp:74
DalRegistry & p_registry
Configuration object.
ConfigObject p_obj
Config object used by given template object.
const T * _ref(ConfigObject &obj, const std::string &name, bool read_children)
Get signle value of object's relation and instantiate result with it (multi-thread safe).
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ init() [2/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::confmodel::DetectorToDaqConnection.

◆ print() [1/2]

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

Print details of the NetworkDetectorToDaqConnection 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::confmodel::DetectorToDaqConnection.

Definition at line 42 of file NetworkDetectorToDaqConnection.cpp.

43 {
44 check_init();
45
46 try {
47 const std::string str(indent+2, ' ');
48
49 if (print_header)
50 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
51
52
53 // print direct super-classes
54
56
57
58 // print direct relationships
59
62 }
63 catch (dunedaq::conffwk::Exception & ex) {
65 }
66 }
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
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the DetectorToDaqConnection object.
void p_sv_rel(std::ostream &s, const std::string &str, const std::string &name, const DalObject *obj)
print weak single-value relationship
void p_mv_rel(std::ostream &s, const std::string &str, const std::string &name, const T &objs) noexcept
print weak multi-value relationship

◆ print() [2/2]

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

Print details of the NetworkDetectorToDaqConnection 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::confmodel::DetectorToDaqConnection.

◆ receiver() [1/2]

const confmodel::DetDataReceiver * dunedaq::appmodel::NetworkDetectorToDaqConnection::receiver ( ) const
overridevirtual

get our net_receiver as a generic DetDataReceiver

Implements dunedaq::confmodel::DetectorToDaqConnection.

Definition at line 35 of file NetworkDetectorToDaqConnection.cpp.

35 {
36 if (m_net_senders.empty()) {
37 std::lock_guard scoped_lock(m_mutex);
38 check_init();
39 }
40 return (m_net_receiver);
41}

◆ receiver() [2/2]

const confmodel::DetDataReceiver * dunedaq::appmodel::NetworkDetectorToDaqConnection::receiver ( ) const
overridevirtual

get our net_receiver as a generic DetDataReceiver

Implements dunedaq::confmodel::DetectorToDaqConnection.

◆ senders() [1/2]

std::vector< const dunedaq::confmodel::DetDataSender * > dunedaq::appmodel::NetworkDetectorToDaqConnection::senders ( ) const
overridevirtual

get our list of NWDetSender objects as a vector of DetDataSenders

Implements dunedaq::confmodel::DetectorToDaqConnection.

Definition at line 20 of file NetworkDetectorToDaqConnection.cpp.

20 {
21 std::vector<const dunedaq::confmodel::DetDataSender*> senders;
22 if (m_net_senders.empty()) {
23 std::lock_guard scoped_lock(m_mutex);
24 check_init();
25 }
26 for (auto sender: m_net_senders) {
27 senders.push_back(
28 dynamic_cast<const dunedaq::confmodel::DetDataSender*>(sender));
29 }
30 TLOG_DEBUG(6) << "Found " << senders.size() << " senders\n";
31 return senders;
32}
std::vector< const confmodel::DetDataSender * > senders() const override

◆ senders() [2/2]

std::vector< const confmodel::DetDataSender * > dunedaq::appmodel::NetworkDetectorToDaqConnection::senders ( ) const
overridevirtual

get our list of NWDetSender objects as a vector of DetDataSenders

Implements dunedaq::confmodel::DetectorToDaqConnection.

◆ set_net_receiver() [1/2]

void dunedaq::appmodel::NetworkDetectorToDaqConnection::set_net_receiver ( const dunedaq::appmodel::NWDetDataReceiver * value)

Set "net_receiver" relationship value.

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

Definition at line 124 of file NetworkDetectorToDaqConnection.cpp.

125 {
127 }
void _set_object(const std::string &name, const T *value)
Helper method for generated set single-value relationship methods.

◆ set_net_receiver() [2/2]

void dunedaq::appmodel::NetworkDetectorToDaqConnection::set_net_receiver ( const dunedaq::appmodel::NWDetDataReceiver * value)

Set "net_receiver" relationship value.

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

◆ set_net_senders() [1/2]

void dunedaq::appmodel::NetworkDetectorToDaqConnection::set_net_senders ( const std::vector< const dunedaq::appmodel::NWDetDataSender * > & value)

Set "net_senders" relationship value. A collection of Network detector sending objects.

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

Definition at line 119 of file NetworkDetectorToDaqConnection.cpp.

120 {
122 }
void _set_objects(const std::string &name, const std::vector< const T * > &value)
Helper method for generated set multi-value relationship methods.

◆ set_net_senders() [2/2]

void dunedaq::appmodel::NetworkDetectorToDaqConnection::set_net_senders ( const std::vector< const dunedaq::appmodel::NWDetDataSender * > & value)

Set "net_senders" relationship value. A collection of Network detector sending objects.

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

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 39 of file NetworkDetectorToDaqConnection.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 41 of file NetworkDetectorToDaqConnection.hpp.

◆ conffwk::DalObject

Definition at line 40 of file NetworkDetectorToDaqConnection.hpp.

◆ conffwk::DalRegistry

Definition at line 42 of file NetworkDetectorToDaqConnection.hpp.

Member Data Documentation

◆ m_net_receiver

const dunedaq::appmodel::NWDetDataReceiver * dunedaq::appmodel::NetworkDetectorToDaqConnection::m_net_receiver
private

Definition at line 89 of file NetworkDetectorToDaqConnection.hpp.

◆ m_net_senders

std::vector< const dunedaq::appmodel::NWDetDataSender * > dunedaq::appmodel::NetworkDetectorToDaqConnection::m_net_senders
private

Definition at line 88 of file NetworkDetectorToDaqConnection.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 54 of file NetworkDetectorToDaqConnection.hpp.

◆ s_net_receiver

static const std::string dunedaq::appmodel::NetworkDetectorToDaqConnection::s_net_receiver = "net_receiver"
inlinestatic

Definition at line 97 of file NetworkDetectorToDaqConnection.hpp.

◆ s_net_senders

static const std::string dunedaq::appmodel::NetworkDetectorToDaqConnection::s_net_senders = "net_senders"
inlinestatic

Definition at line 96 of file NetworkDetectorToDaqConnection.hpp.


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