DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
NetworkDetectorToDaqConnection.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _NetworkDetectorToDaqConnection_0_dunedaq__appmodel_0_appmodel_H_
4
#define _NetworkDetectorToDaqConnection_0_dunedaq__appmodel_0_appmodel_H_
5
6
#include <stdint.h>
// to define 64 bits types
7
#include <iostream>
8
#include <sstream>
9
#include <string>
10
#include <map>
11
#include <vector>
12
13
#include "
conffwk/Configuration.hpp
"
14
#include "
conffwk/DalObject.hpp
"
15
16
// include files for classes used in inheritance hierarchy
17
18
#include "
confmodel/DetectorToDaqConnection.hpp
"
19
20
// forward declaration for classes used in relationships and algorithms
21
22
namespace
dunedaq
{
23
namespace
appmodel
{
24
class
NWDetDataReceiver
;
25
class
NWDetDataSender
;
26
}
27
namespace
confmodel
{
28
class
DetDataReceiver
;
29
class
DetDataSender
;
30
}
31
}
32
33
34
namespace
dunedaq
{
35
namespace
appmodel
{
36
37
class
NetworkDetectorToDaqConnection
:
public
dunedaq::confmodel::DetectorToDaqConnection
{
38
39
friend
class
conffwk::Configuration
;
40
friend
class
conffwk::DalObject
;
41
friend
class
conffwk::DalFactory
;
42
friend
class
conffwk::DalRegistry
;
43
44
protected
:
45
46
NetworkDetectorToDaqConnection
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
47
virtual
~NetworkDetectorToDaqConnection
() noexcept;
48
virtual
void
init
(
bool
init_children);
49
50
public:
51
53
54
static const
std
::
string
&
s_class_name
;
55
56
65
66
virtual
void
print
(
unsigned
int
offset
,
bool
print_header,
std
::ostream& s) const;
67
68
77
78
virtual
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>
get
(const
std
::
string
& name,
bool
upcast_unregistered = true) const;
79
80
81
protected:
82
83
bool
get
(const
std
::
string
& name,
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>& vec,
bool
upcast_unregistered,
bool
first_call) const;
84
85
86
private:
87
88
std
::vector<const
dunedaq
::
appmodel
::
NWDetDataSender
*>
m_net_senders
;
89
const
dunedaq
::
appmodel
::
NWDetDataReceiver
*
m_net_receiver
;
90
91
92
public:
93
94
// relationship names
95
96
inline static const
std
::
string
s_net_senders
=
"net_senders"
;
97
inline static const
std
::
string
s_net_receiver
=
"net_receiver"
;
98
99
static const
std
::
string
&
__get_net_senders_str
() noexcept {
return
s_net_senders
; }
100
static
const
std::string&
__get_net_receiver_str
() noexcept {
return
s_net_receiver
; }
101
102
109
110
const
std::vector<const dunedaq::appmodel::NWDetDataSender*>&
111
get_net_senders
()
const
112
{
113
std::lock_guard scoped_lock(
m_mutex
);
114
check
();
115
check_init
();
116
return
m_net_senders
;
117
}
118
119
126
127
void
128
set_net_senders
(
const
std::vector<const dunedaq::appmodel::NWDetDataSender*>& value);
129
135
136
const
dunedaq::appmodel::NWDetDataReceiver
*
137
get_net_receiver
()
const
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
}
150
151
157
158
void
159
set_net_receiver
(
const
dunedaq::appmodel::NWDetDataReceiver
* value);
160
161
162
public
:
163
164
// user-defined algorithms
165
169
170
std::vector<const confmodel::DetDataSender*>
senders
()
const override
;
171
172
176
177
const
confmodel::DetDataReceiver
*
receiver
()
const override
;
178
};
179
180
// out stream operator
181
182
inline
std::ostream&
operator<<
(std::ostream& s,
const
NetworkDetectorToDaqConnection
&
obj
)
183
{
184
return
obj
.print_object(s);
185
}
186
187
typedef
std::vector<const NetworkDetectorToDaqConnection*>::const_iterator
NetworkDetectorToDaqConnectionIterator
;
188
189
}
190
}
191
192
#endif
DalObject.hpp
ERS_HERE
#define ERS_HERE
Definition
LocalContext.hpp:141
dunedaq::appmodel::NWDetDataReceiver
Definition
NWDetDataReceiver.hpp:32
dunedaq::appmodel::NWDetDataSender
Definition
NWDetDataSender.hpp:32
dunedaq::appmodel::NetworkDetectorToDaqConnection
Definition
NetworkDetectorToDaqConnection.hpp:37
dunedaq::appmodel::NetworkDetectorToDaqConnection::s_net_receiver
static const std::string s_net_receiver
Definition
NetworkDetectorToDaqConnection.hpp:97
dunedaq::appmodel::NetworkDetectorToDaqConnection::s_net_senders
static const std::string s_net_senders
Definition
NetworkDetectorToDaqConnection.hpp:96
dunedaq::appmodel::NetworkDetectorToDaqConnection::m_net_senders
std::vector< const dunedaq::appmodel::NWDetDataSender * > m_net_senders
Definition
NetworkDetectorToDaqConnection.hpp:88
dunedaq::appmodel::NetworkDetectorToDaqConnection::get_net_receiver
const dunedaq::appmodel::NWDetDataReceiver * get_net_receiver() const
Get "net_receiver" relationship value.
Definition
NetworkDetectorToDaqConnection.hpp:137
dunedaq::appmodel::NetworkDetectorToDaqConnection::s_class_name
static const std::string & s_class_name
Definition
NetworkDetectorToDaqConnection.hpp:54
dunedaq::appmodel::NetworkDetectorToDaqConnection::receiver
const confmodel::DetDataReceiver * receiver() const override
Definition
NetworkDetectorToDaqConnection.cpp:35
dunedaq::appmodel::NetworkDetectorToDaqConnection::set_net_senders
void set_net_senders(const std::vector< const dunedaq::appmodel::NWDetDataSender * > &value)
Set "net_senders" relationship value. A collection of Network detector sending objects.
Definition
NetworkDetectorToDaqConnection.cpp:119
dunedaq::appmodel::NetworkDetectorToDaqConnection::DalFactory
friend class conffwk::DalFactory
Definition
NetworkDetectorToDaqConnection.hpp:41
dunedaq::appmodel::NetworkDetectorToDaqConnection::NetworkDetectorToDaqConnection
NetworkDetectorToDaqConnection(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
NetworkDetectorToDaqConnection.cpp:32
dunedaq::appmodel::NetworkDetectorToDaqConnection::senders
std::vector< const confmodel::DetDataSender * > senders() const override
Definition
NetworkDetectorToDaqConnection.cpp:20
dunedaq::appmodel::NetworkDetectorToDaqConnection::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the NetworkDetectorToDaqConnection object.
Definition
NetworkDetectorToDaqConnection.cpp:42
dunedaq::appmodel::NetworkDetectorToDaqConnection::set_net_receiver
void set_net_receiver(const dunedaq::appmodel::NWDetDataReceiver *value)
Set "net_receiver" relationship value.
Definition
NetworkDetectorToDaqConnection.cpp:124
dunedaq::appmodel::NetworkDetectorToDaqConnection::get_net_senders
const std::vector< const dunedaq::appmodel::NWDetDataSender * > & get_net_senders() const
Get "net_senders" relationship value. A collection of Network detector sending objects.
Definition
NetworkDetectorToDaqConnection.hpp:111
dunedaq::appmodel::NetworkDetectorToDaqConnection::__get_net_receiver_str
static const std::string & __get_net_receiver_str() noexcept
Definition
NetworkDetectorToDaqConnection.hpp:100
dunedaq::appmodel::NetworkDetectorToDaqConnection::DalObject
friend class conffwk::DalObject
Definition
NetworkDetectorToDaqConnection.hpp:40
dunedaq::appmodel::NetworkDetectorToDaqConnection::init
virtual void init(bool init_children)
Definition
NetworkDetectorToDaqConnection.cpp:69
dunedaq::appmodel::NetworkDetectorToDaqConnection::get
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...
Definition
NetworkDetectorToDaqConnection.cpp:88
dunedaq::appmodel::NetworkDetectorToDaqConnection::__get_net_senders_str
static const std::string & __get_net_senders_str() noexcept
Definition
NetworkDetectorToDaqConnection.hpp:99
dunedaq::appmodel::NetworkDetectorToDaqConnection::m_net_receiver
const dunedaq::appmodel::NWDetDataReceiver * m_net_receiver
Definition
NetworkDetectorToDaqConnection.hpp:89
dunedaq::appmodel::NetworkDetectorToDaqConnection::~NetworkDetectorToDaqConnection
virtual ~NetworkDetectorToDaqConnection() noexcept
Definition
NetworkDetectorToDaqConnection.cpp:84
dunedaq::conffwk::DalObject
The base class for any generated DAL object.
Definition
DalObject.hpp:52
dunedaq::conffwk::DalObject::m_mutex
std::mutex m_mutex
Used to protect changes of DAL object.
Definition
DalObject.hpp:115
dunedaq::conffwk::DalObject::check
void check() const
Definition
DalObject.hpp:94
dunedaq::conffwk::DalObject::check_init
void check_init() const
Check and initialize object if necessary.
Definition
DalObject.hpp:412
dunedaq::conffwk::DalRegistry
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
Definition
DalRegistry.hpp:19
dunedaq::confmodel::DetDataReceiver
Definition
DetDataReceiver.hpp:23
dunedaq::confmodel::DetDataSender
Definition
DetDataSender.hpp:32
dunedaq::confmodel::DetectorToDaqConnection
Definition
DetectorToDaqConnection.hpp:34
Configuration.hpp
conffwk entry point
offset
double offset
Definition
conversions-impl.hh:28
DetectorToDaqConnection.hpp
conffwk.ConfigObject
Definition
ConfigObject.py:1
conffwk.Configuration
Definition
Configuration.py:1
conffwk
Definition
__init__.py:1
dunedaq::appmodel
Definition
CardControllerWrapper.hpp:21
dunedaq::appmodel::operator<<
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Definition
AVXAbsRunSumProcessor.hpp:80
dunedaq::appmodel::NetworkDetectorToDaqConnectionIterator
std::vector< constNetworkDetectorToDaqConnection * >::const_iterator NetworkDetectorToDaqConnectionIterator
Definition
NetworkDetectorToDaqConnection.hpp:187
dunedaq::confmodel
Definition
DisabledResources.hpp:10
dunedaq
Including Qt Headers.
Definition
module.cpp:16
dunedaq::obj
msgpack::object obj
Definition
Serialization.hpp:257
std
Definition
SchemaUtils.hpp:118
Generated on
for DUNE-DAQ by
1.17.0