DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
HermesDataSender.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _HermesDataSender_0_dunedaq__appmodel_0_appmodel_H_
4
#define _HermesDataSender_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 "
appmodel/NWDetDataSender.hpp
"
19
20
namespace
dunedaq
{
21
namespace
appmodel
{
22
23
class
HermesDataSender
:
public
dunedaq::appmodel::NWDetDataSender
{
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
HermesDataSender
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
33
virtual
~HermesDataSender
() 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
uint32_t
m_link_id
;
75
uint32_t
m_port
;
76
std
::
string
m_control_host
;
77
78
79
public:
80
81
// attribute names
82
83
inline static const
std
::
string
s_link_id
=
"link_id"
;
84
inline static const
std
::
string
s_port
=
"port"
;
85
inline static const
std
::
string
s_control_host
=
"control_host"
;
86
87
static const
std
::
string
&
__get_link_id_str
() noexcept {
return
s_link_id
; }
88
static
const
std::string&
__get_port_str
() noexcept {
return
s_port
; }
89
static
const
std::string&
__get_control_host_str
() noexcept {
return
s_control_host
; }
90
91
97
98
uint32_t
99
get_link_id
()
const
100
{
101
std::lock_guard scoped_lock(
m_mutex
);
102
check
();
103
check_init
();
104
return
m_link_id
;
105
}
106
112
113
void
114
set_link_id
(uint32_t value)
115
{
116
std::lock_guard scoped_lock(
m_mutex
);
117
check
();
118
clear
();
119
p_obj
.set_by_val(
s_link_id
, value);
120
}
121
122
128
129
uint32_t
130
get_port
()
const
131
{
132
std::lock_guard scoped_lock(
m_mutex
);
133
check
();
134
check_init
();
135
return
m_port
;
136
}
137
143
144
void
145
set_port
(uint32_t value)
146
{
147
std::lock_guard scoped_lock(
m_mutex
);
148
check
();
149
clear
();
150
p_obj
.set_by_val(
s_port
, value);
151
}
152
153
159
160
const
std::string&
161
get_control_host
()
const
162
{
163
std::lock_guard scoped_lock(
m_mutex
);
164
check
();
165
check_init
();
166
return
m_control_host
;
167
}
168
174
175
void
176
set_control_host
(
const
std::string& value)
177
{
178
std::lock_guard scoped_lock(
m_mutex
);
179
check
();
180
clear
();
181
p_obj
.set_by_ref(
s_control_host
, value);
182
}
183
184
185
};
186
187
// out stream operator
188
189
inline
std::ostream&
operator<<
(std::ostream& s,
const
HermesDataSender
&
obj
)
190
{
191
return
obj
.print_object(s);
192
}
193
194
typedef
std::vector<const HermesDataSender*>::const_iterator
HermesDataSenderIterator
;
195
196
}
197
}
198
199
#endif
DalObject.hpp
dunedaq::appmodel::HermesDataSender
Definition
HermesDataSender.hpp:23
dunedaq::appmodel::HermesDataSender::get_link_id
uint32_t get_link_id() const
Get "link_id" attribute value.
Definition
HermesDataSender.hpp:99
dunedaq::appmodel::HermesDataSender::s_port
static const std::string s_port
Definition
HermesDataSender.hpp:84
dunedaq::appmodel::HermesDataSender::m_control_host
std::string m_control_host
Definition
HermesDataSender.hpp:76
dunedaq::appmodel::HermesDataSender::set_link_id
void set_link_id(uint32_t value)
Set "link_id" attribute value.
Definition
HermesDataSender.hpp:114
dunedaq::appmodel::HermesDataSender::set_control_host
void set_control_host(const std::string &value)
Set "control_host" attribute value.
Definition
HermesDataSender.hpp:176
dunedaq::appmodel::HermesDataSender::get_port
uint32_t get_port() const
Get "port" attribute value.
Definition
HermesDataSender.hpp:130
dunedaq::appmodel::HermesDataSender::__get_control_host_str
static const std::string & __get_control_host_str() noexcept
Definition
HermesDataSender.hpp:89
dunedaq::appmodel::HermesDataSender::__get_link_id_str
static const std::string & __get_link_id_str() noexcept
Definition
HermesDataSender.hpp:87
dunedaq::appmodel::HermesDataSender::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the HermesDataSender object.
Definition
HermesDataSender.cpp:35
dunedaq::appmodel::HermesDataSender::get_control_host
const std::string & get_control_host() const
Get "control_host" attribute value.
Definition
HermesDataSender.hpp:161
dunedaq::appmodel::HermesDataSender::~HermesDataSender
virtual ~HermesDataSender() noexcept
Definition
HermesDataSender.cpp:79
dunedaq::appmodel::HermesDataSender::DalFactory
friend class conffwk::DalFactory
Definition
HermesDataSender.hpp:27
dunedaq::appmodel::HermesDataSender::m_link_id
uint32_t m_link_id
Definition
HermesDataSender.hpp:74
dunedaq::appmodel::HermesDataSender::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
HermesDataSender.cpp:83
dunedaq::appmodel::HermesDataSender::DalObject
friend class conffwk::DalObject
Definition
HermesDataSender.hpp:26
dunedaq::appmodel::HermesDataSender::m_port
uint32_t m_port
Definition
HermesDataSender.hpp:75
dunedaq::appmodel::HermesDataSender::set_port
void set_port(uint32_t value)
Set "port" attribute value.
Definition
HermesDataSender.hpp:145
dunedaq::appmodel::HermesDataSender::s_link_id
static const std::string s_link_id
Definition
HermesDataSender.hpp:83
dunedaq::appmodel::HermesDataSender::init
virtual void init(bool init_children)
Definition
HermesDataSender.cpp:63
dunedaq::appmodel::HermesDataSender::__get_port_str
static const std::string & __get_port_str() noexcept
Definition
HermesDataSender.hpp:88
dunedaq::appmodel::HermesDataSender::HermesDataSender
HermesDataSender(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
HermesDataSender.cpp:26
dunedaq::appmodel::HermesDataSender::s_control_host
static const std::string s_control_host
Definition
HermesDataSender.hpp:85
dunedaq::appmodel::HermesDataSender::s_class_name
static const std::string & s_class_name
Definition
HermesDataSender.hpp:40
dunedaq::appmodel::NWDetDataSender
Definition
NWDetDataSender.hpp:32
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
Configuration.hpp
conffwk entry point
offset
double offset
Definition
conversions-impl.hh:28
NWDetDataSender.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::HermesDataSenderIterator
std::vector< constHermesDataSender * >::const_iterator HermesDataSenderIterator
Definition
HermesDataSender.hpp:194
dunedaq::appmodel::operator<<
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Definition
AVXAbsRunSumProcessor.hpp:80
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