DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
TdeAmcDetDataSender.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _TdeAmcDetDataSender_0_dunedaq__appmodel_0_appmodel_H_
4
#define _TdeAmcDetDataSender_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
// forward declaration for classes used in relationships and algorithms
21
22
namespace
dunedaq
{
23
namespace
confmodel
{
24
class
NetworkInterface
;
25
}
26
}
27
28
29
namespace
dunedaq
{
30
namespace
appmodel
{
31
32
class
TdeAmcDetDataSender
:
public
dunedaq::appmodel::NWDetDataSender
{
33
34
friend
class
conffwk::Configuration
;
35
friend
class
conffwk::DalObject
;
36
friend
class
conffwk::DalFactory
;
37
friend
class
conffwk::DalRegistry
;
38
39
protected
:
40
41
TdeAmcDetDataSender
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
42
virtual
~TdeAmcDetDataSender
() noexcept;
43
virtual
void
init
(
bool
init_children);
44
45
public:
46
48
49
static const
std
::
string
&
s_class_name
;
50
51
60
61
virtual
void
print
(
unsigned
int
offset
,
bool
print_header,
std
::ostream& s) const;
62
63
72
73
virtual
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>
get
(const
std
::
string
& name,
bool
upcast_unregistered = true) const;
74
75
76
protected:
77
78
bool
get
(const
std
::
string
& name,
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>& vec,
bool
upcast_unregistered,
bool
first_call) const;
79
80
81
private:
82
83
uint32_t
m_port
;
84
std
::
string
m_control_host
;
85
const
dunedaq
::
confmodel
::NetworkInterface*
m_control_endpoint
;
86
87
88
public:
89
90
// attribute names
91
92
inline static const
std
::
string
s_port
=
"port"
;
93
inline static const
std
::
string
s_control_host
=
"control_host"
;
94
95
static const
std
::
string
&
__get_port_str
() noexcept {
return
s_port
; }
96
static
const
std::string&
__get_control_host_str
() noexcept {
return
s_control_host
; }
97
98
104
105
uint32_t
106
get_port
()
const
107
{
108
std::lock_guard scoped_lock(
m_mutex
);
109
check
();
110
check_init
();
111
return
m_port
;
112
}
113
119
120
void
121
set_port
(uint32_t value)
122
{
123
std::lock_guard scoped_lock(
m_mutex
);
124
check
();
125
clear
();
126
p_obj
.set_by_val(
s_port
, value);
127
}
128
129
135
136
const
std::string&
137
get_control_host
()
const
138
{
139
std::lock_guard scoped_lock(
m_mutex
);
140
check
();
141
check_init
();
142
return
m_control_host
;
143
}
144
150
151
void
152
set_control_host
(
const
std::string& value)
153
{
154
std::lock_guard scoped_lock(
m_mutex
);
155
check
();
156
clear
();
157
p_obj
.set_by_ref(
s_control_host
, value);
158
}
159
160
161
// relationship names
162
163
inline
static
const
std::string
s_control_endpoint
=
"control_endpoint"
;
164
165
static
const
std::string&
__get_control_endpoint_str
() noexcept {
return
s_control_endpoint
; }
166
167
173
174
const
dunedaq::confmodel::NetworkInterface
*
175
get_control_endpoint
()
const
176
{
177
std::lock_guard scoped_lock(
m_mutex
);
178
check
();
179
check_init
();
180
if
(!
m_control_endpoint
)
181
{
182
std::ostringstream text;
183
text <<
"relationship \""
<<
s_control_endpoint
<<
"\" of object "
<<
this
<<
" is not set"
;
184
throw
dunedaq::conffwk::Generic(
ERS_HERE
, text.str().c_str());
185
}
186
return
m_control_endpoint
;
187
}
188
189
195
196
void
197
set_control_endpoint
(
const
dunedaq::confmodel::NetworkInterface
* value);
198
199
};
200
201
// out stream operator
202
203
inline
std::ostream&
operator<<
(std::ostream& s,
const
TdeAmcDetDataSender
&
obj
)
204
{
205
return
obj
.print_object(s);
206
}
207
208
typedef
std::vector<const TdeAmcDetDataSender*>::const_iterator
TdeAmcDetDataSenderIterator
;
209
210
}
211
}
212
213
#endif
DalObject.hpp
ERS_HERE
#define ERS_HERE
Definition
LocalContext.hpp:141
dunedaq::appmodel::NWDetDataSender
Definition
NWDetDataSender.hpp:32
dunedaq::appmodel::TdeAmcDetDataSender
Definition
TdeAmcDetDataSender.hpp:32
dunedaq::appmodel::TdeAmcDetDataSender::set_control_endpoint
void set_control_endpoint(const dunedaq::confmodel::NetworkInterface *value)
Set "control_endpoint" relationship value.
Definition
TdeAmcDetDataSender.cpp:124
dunedaq::appmodel::TdeAmcDetDataSender::s_control_host
static const std::string s_control_host
Definition
TdeAmcDetDataSender.hpp:93
dunedaq::appmodel::TdeAmcDetDataSender::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
TdeAmcDetDataSender.cpp:93
dunedaq::appmodel::TdeAmcDetDataSender::m_control_endpoint
const dunedaq::confmodel::NetworkInterface * m_control_endpoint
Definition
TdeAmcDetDataSender.hpp:85
dunedaq::appmodel::TdeAmcDetDataSender::m_port
uint32_t m_port
Definition
TdeAmcDetDataSender.hpp:83
dunedaq::appmodel::TdeAmcDetDataSender::__get_control_endpoint_str
static const std::string & __get_control_endpoint_str() noexcept
Definition
TdeAmcDetDataSender.hpp:165
dunedaq::appmodel::TdeAmcDetDataSender::get_control_host
const std::string & get_control_host() const
Get "control_host" attribute value.
Definition
TdeAmcDetDataSender.hpp:137
dunedaq::appmodel::TdeAmcDetDataSender::TdeAmcDetDataSender
TdeAmcDetDataSender(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
TdeAmcDetDataSender.cpp:31
dunedaq::appmodel::TdeAmcDetDataSender::s_class_name
static const std::string & s_class_name
Definition
TdeAmcDetDataSender.hpp:49
dunedaq::appmodel::TdeAmcDetDataSender::s_port
static const std::string s_port
Definition
TdeAmcDetDataSender.hpp:92
dunedaq::appmodel::TdeAmcDetDataSender::__get_control_host_str
static const std::string & __get_control_host_str() noexcept
Definition
TdeAmcDetDataSender.hpp:96
dunedaq::appmodel::TdeAmcDetDataSender::set_port
void set_port(uint32_t value)
Set "port" attribute value.
Definition
TdeAmcDetDataSender.hpp:121
dunedaq::appmodel::TdeAmcDetDataSender::m_control_host
std::string m_control_host
Definition
TdeAmcDetDataSender.hpp:84
dunedaq::appmodel::TdeAmcDetDataSender::~TdeAmcDetDataSender
virtual ~TdeAmcDetDataSender() noexcept
Definition
TdeAmcDetDataSender.cpp:89
dunedaq::appmodel::TdeAmcDetDataSender::get_port
uint32_t get_port() const
Get "port" attribute value.
Definition
TdeAmcDetDataSender.hpp:106
dunedaq::appmodel::TdeAmcDetDataSender::get_control_endpoint
const dunedaq::confmodel::NetworkInterface * get_control_endpoint() const
Get "control_endpoint" relationship value.
Definition
TdeAmcDetDataSender.hpp:175
dunedaq::appmodel::TdeAmcDetDataSender::DalFactory
friend class conffwk::DalFactory
Definition
TdeAmcDetDataSender.hpp:36
dunedaq::appmodel::TdeAmcDetDataSender::s_control_endpoint
static const std::string s_control_endpoint
Definition
TdeAmcDetDataSender.hpp:163
dunedaq::appmodel::TdeAmcDetDataSender::DalObject
friend class conffwk::DalObject
Definition
TdeAmcDetDataSender.hpp:35
dunedaq::appmodel::TdeAmcDetDataSender::__get_port_str
static const std::string & __get_port_str() noexcept
Definition
TdeAmcDetDataSender.hpp:95
dunedaq::appmodel::TdeAmcDetDataSender::set_control_host
void set_control_host(const std::string &value)
Set "control_host" attribute value.
Definition
TdeAmcDetDataSender.hpp:152
dunedaq::appmodel::TdeAmcDetDataSender::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the TdeAmcDetDataSender object.
Definition
TdeAmcDetDataSender.cpp:41
dunedaq::appmodel::TdeAmcDetDataSender::init
virtual void init(bool init_children)
Definition
TdeAmcDetDataSender.cpp:73
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::NetworkInterface
Definition
NetworkInterface.hpp:20
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::operator<<
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Definition
AVXAbsRunSumProcessor.hpp:80
dunedaq::appmodel::TdeAmcDetDataSenderIterator
std::vector< constTdeAmcDetDataSender * >::const_iterator TdeAmcDetDataSenderIterator
Definition
TdeAmcDetDataSender.hpp:208
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