DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
FelixDataSender.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _FelixDataSender_0_dunedaq__appmodel_0_appmodel_H_
4
#define _FelixDataSender_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/DetDataSender.hpp
"
19
20
namespace
dunedaq
{
21
namespace
appmodel
{
22
23
class
FelixDataSender
:
public
dunedaq::confmodel::DetDataSender
{
24
25
friend
class
conffwk::Configuration
;
26
friend
class
conffwk::DalObject
;
27
friend
class
conffwk::DalFactory
;
28
friend
class
conffwk::DalRegistry
;
29
30
protected
:
31
32
FelixDataSender
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
33
virtual
~FelixDataSender
() noexcept;
34
virtual
void
init
(
bool
init_children);
35
36
public:
37
39
40
static const
std
::
string
&
s_class_name
;
41
42
51
52
virtual
void
print
(
unsigned
int
offset
,
bool
print_header,
std
::ostream& s) const;
53
54
63
64
virtual
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>
get
(const
std
::
string
& name,
bool
upcast_unregistered = true) const;
65
66
67
protected:
68
69
bool
get
(const
std
::
string
& name,
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>& vec,
bool
upcast_unregistered,
bool
first_call) const;
70
71
72
private:
73
74
std
::
string
m_protocol
;
75
uint8_t
m_link
;
76
std
::
string
m_control_host
;
77
78
79
public:
80
81
// attribute names
82
83
inline static const
std
::
string
s_protocol
=
"protocol"
;
84
inline static const
std
::
string
s_link
=
"link"
;
85
inline static const
std
::
string
s_control_host
=
"control_host"
;
86
87
static const
std
::
string
&
__get_protocol_str
() noexcept {
return
s_protocol
; }
88
static
const
std::string&
__get_link_str
() noexcept {
return
s_link
; }
89
static
const
std::string&
__get_control_host_str
() noexcept {
return
s_control_host
; }
90
91
95
96
struct
Protocol
{
97
inline
static
const
std::string
Full
=
"full"
;
98
inline
static
const
std::string
Half
=
"half"
;
99
};
100
106
107
const
std::string&
108
get_protocol
()
const
109
{
110
std::lock_guard scoped_lock(
m_mutex
);
111
check
();
112
check_init
();
113
return
m_protocol
;
114
}
115
121
122
void
123
set_protocol
(
const
std::string& value)
124
{
125
std::lock_guard scoped_lock(
m_mutex
);
126
check
();
127
clear
();
128
p_obj
.set_enum(
s_protocol
, value);
129
}
130
131
138
139
uint8_t
140
get_link
()
const
141
{
142
std::lock_guard scoped_lock(
m_mutex
);
143
check
();
144
check_init
();
145
return
m_link
;
146
}
147
154
155
void
156
set_link
(uint8_t value)
157
{
158
std::lock_guard scoped_lock(
m_mutex
);
159
check
();
160
clear
();
161
p_obj
.set_by_val(
s_link
, value);
162
}
163
164
170
171
const
std::string&
172
get_control_host
()
const
173
{
174
std::lock_guard scoped_lock(
m_mutex
);
175
check
();
176
check_init
();
177
return
m_control_host
;
178
}
179
185
186
void
187
set_control_host
(
const
std::string& value)
188
{
189
std::lock_guard scoped_lock(
m_mutex
);
190
check
();
191
clear
();
192
p_obj
.set_by_ref(
s_control_host
, value);
193
}
194
195
196
};
197
198
// out stream operator
199
200
inline
std::ostream&
operator<<
(std::ostream& s,
const
FelixDataSender
&
obj
)
201
{
202
return
obj
.print_object(s);
203
}
204
205
typedef
std::vector<const FelixDataSender*>::const_iterator
FelixDataSenderIterator
;
206
207
}
208
}
209
210
#endif
DalObject.hpp
dunedaq::appmodel::FelixDataSender
Definition
FelixDataSender.hpp:23
dunedaq::appmodel::FelixDataSender::FelixDataSender
FelixDataSender(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
FelixDataSender.cpp:26
dunedaq::appmodel::FelixDataSender::~FelixDataSender
virtual ~FelixDataSender() noexcept
Definition
FelixDataSender.cpp:79
dunedaq::appmodel::FelixDataSender::m_protocol
std::string m_protocol
Definition
FelixDataSender.hpp:74
dunedaq::appmodel::FelixDataSender::get_protocol
const std::string & get_protocol() const
Get "protocol" attribute value.
Definition
FelixDataSender.hpp:108
dunedaq::appmodel::FelixDataSender::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the FelixDataSender object.
Definition
FelixDataSender.cpp:35
dunedaq::appmodel::FelixDataSender::s_link
static const std::string s_link
Definition
FelixDataSender.hpp:84
dunedaq::appmodel::FelixDataSender::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
FelixDataSender.cpp:83
dunedaq::appmodel::FelixDataSender::s_class_name
static const std::string & s_class_name
Definition
FelixDataSender.hpp:40
dunedaq::appmodel::FelixDataSender::m_link
uint8_t m_link
Definition
FelixDataSender.hpp:75
dunedaq::appmodel::FelixDataSender::set_protocol
void set_protocol(const std::string &value)
Set "protocol" attribute value.
Definition
FelixDataSender.hpp:123
dunedaq::appmodel::FelixDataSender::init
virtual void init(bool init_children)
Definition
FelixDataSender.cpp:63
dunedaq::appmodel::FelixDataSender::DalFactory
friend class conffwk::DalFactory
Definition
FelixDataSender.hpp:27
dunedaq::appmodel::FelixDataSender::__get_control_host_str
static const std::string & __get_control_host_str() noexcept
Definition
FelixDataSender.hpp:89
dunedaq::appmodel::FelixDataSender::get_control_host
const std::string & get_control_host() const
Get "control_host" attribute value.
Definition
FelixDataSender.hpp:172
dunedaq::appmodel::FelixDataSender::__get_protocol_str
static const std::string & __get_protocol_str() noexcept
Definition
FelixDataSender.hpp:87
dunedaq::appmodel::FelixDataSender::DalObject
friend class conffwk::DalObject
Definition
FelixDataSender.hpp:26
dunedaq::appmodel::FelixDataSender::__get_link_str
static const std::string & __get_link_str() noexcept
Definition
FelixDataSender.hpp:88
dunedaq::appmodel::FelixDataSender::set_control_host
void set_control_host(const std::string &value)
Set "control_host" attribute value.
Definition
FelixDataSender.hpp:187
dunedaq::appmodel::FelixDataSender::set_link
void set_link(uint8_t value)
Set "link" attribute value. Link within SLR.
Definition
FelixDataSender.hpp:156
dunedaq::appmodel::FelixDataSender::get_link
uint8_t get_link() const
Get "link" attribute value. Link within SLR.
Definition
FelixDataSender.hpp:140
dunedaq::appmodel::FelixDataSender::s_protocol
static const std::string s_protocol
Definition
FelixDataSender.hpp:83
dunedaq::appmodel::FelixDataSender::s_control_host
static const std::string s_control_host
Definition
FelixDataSender.hpp:85
dunedaq::appmodel::FelixDataSender::m_control_host
std::string m_control_host
Definition
FelixDataSender.hpp:76
dunedaq::conffwk::DalObject
The base class for any generated DAL object.
Definition
DalObject.hpp:52
dunedaq::conffwk::DalObject::clear
void clear() noexcept
Definition
DalObject.hpp:83
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::p_obj
ConfigObject p_obj
Config object used by given template object.
Definition
DalObject.hpp:124
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::DetDataSender
Definition
DetDataSender.hpp:32
Configuration.hpp
conffwk entry point
offset
double offset
Definition
conversions-impl.hh:28
DetDataSender.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::FelixDataSenderIterator
std::vector< constFelixDataSender * >::const_iterator FelixDataSenderIterator
Definition
FelixDataSender.hpp:205
dunedaq
Including Qt Headers.
Definition
module.cpp:16
dunedaq::obj
msgpack::object obj
Definition
Serialization.hpp:257
std
Definition
SchemaUtils.hpp:118
dunedaq::appmodel::FelixDataSender::Protocol
Definition
FelixDataSender.hpp:96
dunedaq::appmodel::FelixDataSender::Protocol::Full
static const std::string Full
Definition
FelixDataSender.hpp:97
dunedaq::appmodel::FelixDataSender::Protocol::Half
static const std::string Half
Definition
FelixDataSender.hpp:98
Generated on
for DUNE-DAQ by
1.17.0