DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
FelixDetectorToDaqConnection.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _FelixDetectorToDaqConnection_0_dunedaq__appmodel_0_appmodel_H_
4
#define _FelixDetectorToDaqConnection_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
FelixDataReceiver
;
25
class
FelixDataSender
;
26
}
27
namespace
confmodel
{
28
class
DetDataReceiver
;
29
class
DetDataSender
;
30
}
31
}
32
33
34
namespace
dunedaq
{
35
namespace
appmodel
{
36
37
class
FelixDetectorToDaqConnection
:
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
FelixDetectorToDaqConnection
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
47
virtual
~FelixDetectorToDaqConnection
() 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
const
dunedaq
::
appmodel
::
FelixDataReceiver
*
m_felix_receiver
;
89
std
::vector<const
dunedaq
::
appmodel
::
FelixDataSender
*>
m_felix_senders
;
90
91
92
public:
93
94
// relationship names
95
96
inline static const
std
::
string
s_felix_receiver
=
"felix_receiver"
;
97
inline static const
std
::
string
s_felix_senders
=
"felix_senders"
;
98
99
static const
std
::
string
&
__get_felix_receiver_str
() noexcept {
return
s_felix_receiver
; }
100
static
const
std::string&
__get_felix_senders_str
() noexcept {
return
s_felix_senders
; }
101
102
108
109
const
dunedaq::appmodel::FelixDataReceiver
*
110
get_felix_receiver
()
const
111
{
112
std::lock_guard scoped_lock(
m_mutex
);
113
check
();
114
check_init
();
115
if
(!
m_felix_receiver
)
116
{
117
std::ostringstream text;
118
text <<
"relationship \""
<<
s_felix_receiver
<<
"\" of object "
<<
this
<<
" is not set"
;
119
throw
dunedaq::conffwk::Generic(
ERS_HERE
, text.str().c_str());
120
}
121
return
m_felix_receiver
;
122
}
123
124
130
131
void
132
set_felix_receiver
(
const
dunedaq::appmodel::FelixDataReceiver
* value);
133
139
140
const
std::vector<const dunedaq::appmodel::FelixDataSender*>&
141
get_felix_senders
()
const
142
{
143
std::lock_guard scoped_lock(
m_mutex
);
144
check
();
145
check_init
();
146
return
m_felix_senders
;
147
}
148
149
155
156
void
157
set_felix_senders
(
const
std::vector<const dunedaq::appmodel::FelixDataSender*>& value);
158
159
160
public
:
161
162
// user-defined algorithms
163
164
const
confmodel::DetDataReceiver
*
receiver
()
const override
;
165
166
167
std::vector<const confmodel::DetDataSender*>
senders
()
const override
;
168
};
169
170
// out stream operator
171
172
inline
std::ostream&
operator<<
(std::ostream& s,
const
FelixDetectorToDaqConnection
&
obj
)
173
{
174
return
obj
.print_object(s);
175
}
176
177
typedef
std::vector<const FelixDetectorToDaqConnection*>::const_iterator
FelixDetectorToDaqConnectionIterator
;
178
179
}
180
}
181
182
#endif
DalObject.hpp
ERS_HERE
#define ERS_HERE
Definition
LocalContext.hpp:141
dunedaq::appmodel::FelixDataReceiver
Definition
FelixDataReceiver.hpp:23
dunedaq::appmodel::FelixDataSender
Definition
FelixDataSender.hpp:23
dunedaq::appmodel::FelixDetectorToDaqConnection
Definition
FelixDetectorToDaqConnection.hpp:37
dunedaq::appmodel::FelixDetectorToDaqConnection::m_felix_receiver
const dunedaq::appmodel::FelixDataReceiver * m_felix_receiver
Definition
FelixDetectorToDaqConnection.hpp:88
dunedaq::appmodel::FelixDetectorToDaqConnection::receiver
const confmodel::DetDataReceiver * receiver() const override
Definition
FelixDetectorToDaqConnection.cpp:34
dunedaq::appmodel::FelixDetectorToDaqConnection::init
virtual void init(bool init_children)
Definition
FelixDetectorToDaqConnection.cpp:69
dunedaq::appmodel::FelixDetectorToDaqConnection::s_felix_senders
static const std::string s_felix_senders
Definition
FelixDetectorToDaqConnection.hpp:97
dunedaq::appmodel::FelixDetectorToDaqConnection::get_felix_receiver
const dunedaq::appmodel::FelixDataReceiver * get_felix_receiver() const
Get "felix_receiver" relationship value.
Definition
FelixDetectorToDaqConnection.hpp:110
dunedaq::appmodel::FelixDetectorToDaqConnection::s_class_name
static const std::string & s_class_name
Definition
FelixDetectorToDaqConnection.hpp:54
dunedaq::appmodel::FelixDetectorToDaqConnection::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
FelixDetectorToDaqConnection.cpp:88
dunedaq::appmodel::FelixDetectorToDaqConnection::m_felix_senders
std::vector< const dunedaq::appmodel::FelixDataSender * > m_felix_senders
Definition
FelixDetectorToDaqConnection.hpp:89
dunedaq::appmodel::FelixDetectorToDaqConnection::DalFactory
friend class conffwk::DalFactory
Definition
FelixDetectorToDaqConnection.hpp:41
dunedaq::appmodel::FelixDetectorToDaqConnection::senders
std::vector< const confmodel::DetDataSender * > senders() const override
Definition
FelixDetectorToDaqConnection.cpp:20
dunedaq::appmodel::FelixDetectorToDaqConnection::__get_felix_receiver_str
static const std::string & __get_felix_receiver_str() noexcept
Definition
FelixDetectorToDaqConnection.hpp:99
dunedaq::appmodel::FelixDetectorToDaqConnection::DalObject
friend class conffwk::DalObject
Definition
FelixDetectorToDaqConnection.hpp:40
dunedaq::appmodel::FelixDetectorToDaqConnection::__get_felix_senders_str
static const std::string & __get_felix_senders_str() noexcept
Definition
FelixDetectorToDaqConnection.hpp:100
dunedaq::appmodel::FelixDetectorToDaqConnection::set_felix_receiver
void set_felix_receiver(const dunedaq::appmodel::FelixDataReceiver *value)
Set "felix_receiver" relationship value.
Definition
FelixDetectorToDaqConnection.cpp:119
dunedaq::appmodel::FelixDetectorToDaqConnection::~FelixDetectorToDaqConnection
virtual ~FelixDetectorToDaqConnection() noexcept
Definition
FelixDetectorToDaqConnection.cpp:84
dunedaq::appmodel::FelixDetectorToDaqConnection::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the FelixDetectorToDaqConnection object.
Definition
FelixDetectorToDaqConnection.cpp:42
dunedaq::appmodel::FelixDetectorToDaqConnection::s_felix_receiver
static const std::string s_felix_receiver
Definition
FelixDetectorToDaqConnection.hpp:96
dunedaq::appmodel::FelixDetectorToDaqConnection::FelixDetectorToDaqConnection
FelixDetectorToDaqConnection(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
FelixDetectorToDaqConnection.cpp:32
dunedaq::appmodel::FelixDetectorToDaqConnection::get_felix_senders
const std::vector< const dunedaq::appmodel::FelixDataSender * > & get_felix_senders() const
Get "felix_senders" relationship value.
Definition
FelixDetectorToDaqConnection.hpp:141
dunedaq::appmodel::FelixDetectorToDaqConnection::set_felix_senders
void set_felix_senders(const std::vector< const dunedaq::appmodel::FelixDataSender * > &value)
Set "felix_senders" relationship value.
Definition
FelixDetectorToDaqConnection.cpp:124
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::FelixDetectorToDaqConnectionIterator
std::vector< constFelixDetectorToDaqConnection * >::const_iterator FelixDetectorToDaqConnectionIterator
Definition
FelixDetectorToDaqConnection.hpp:177
dunedaq::appmodel::operator<<
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Definition
AVXAbsRunSumProcessor.hpp:80
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