DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
DataProcessor.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _DataProcessor_0_dunedaq__appmodel_0_appmodel_H_
4
#define _DataProcessor_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
17
namespace
dunedaq
{
18
namespace
appmodel
{
19
20
class
DataProcessor
:
public
virtual
dunedaq::conffwk::DalObject
{
21
22
friend
class
conffwk::Configuration
;
23
friend
class
conffwk::DalObject
;
24
friend
class
conffwk::DalFactory
;
25
friend
class
conffwk::DalRegistry
;
26
27
protected
:
28
29
DataProcessor
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
30
virtual
~DataProcessor
() noexcept;
31
virtual
void
init
(
bool
init_children);
32
33
public:
34
36
37
static const
std
::
string
&
s_class_name
;
38
39
48
49
virtual
void
print
(
unsigned
int
offset
,
bool
print_header,
std
::ostream& s) const;
50
51
60
61
virtual
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>
get
(const
std
::
string
& name,
bool
upcast_unregistered = true) const;
62
63
64
protected:
65
66
bool
get
(const
std
::
string
& name,
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>& vec,
bool
upcast_unregistered,
bool
first_call) const;
67
68
69
private:
70
71
uint32_t
m_queue_sizes
;
72
std
::
string
m_thread_names_prefix
;
73
bool
m_latency_monitoring
;
74
75
76
public:
77
78
// attribute names
79
80
inline static const
std
::
string
s_queue_sizes
=
"queue_sizes"
;
81
inline static const
std
::
string
s_thread_names_prefix
=
"thread_names_prefix"
;
82
inline static const
std
::
string
s_latency_monitoring
=
"latency_monitoring"
;
83
84
static const
std
::
string
&
__get_queue_sizes_str
() noexcept {
return
s_queue_sizes
; }
85
static
const
std::string&
__get_thread_names_prefix_str
() noexcept {
return
s_thread_names_prefix
; }
86
static
const
std::string&
__get_latency_monitoring_str
() noexcept {
return
s_latency_monitoring
; }
87
88
94
95
uint32_t
96
get_queue_sizes
()
const
97
{
98
std::lock_guard scoped_lock(
m_mutex
);
99
check
();
100
check_init
();
101
return
m_queue_sizes
;
102
}
103
109
110
void
111
set_queue_sizes
(uint32_t value)
112
{
113
std::lock_guard scoped_lock(
m_mutex
);
114
check
();
115
clear
();
116
p_obj
.set_by_val(
s_queue_sizes
, value);
117
}
118
119
125
126
const
std::string&
127
get_thread_names_prefix
()
const
128
{
129
std::lock_guard scoped_lock(
m_mutex
);
130
check
();
131
check_init
();
132
return
m_thread_names_prefix
;
133
}
134
140
141
void
142
set_thread_names_prefix
(
const
std::string& value)
143
{
144
std::lock_guard scoped_lock(
m_mutex
);
145
check
();
146
clear
();
147
p_obj
.set_by_ref(
s_thread_names_prefix
, value);
148
}
149
150
156
157
bool
158
get_latency_monitoring
()
const
159
{
160
std::lock_guard scoped_lock(
m_mutex
);
161
check
();
162
check_init
();
163
return
m_latency_monitoring
;
164
}
165
171
172
void
173
set_latency_monitoring
(
bool
value)
174
{
175
std::lock_guard scoped_lock(
m_mutex
);
176
check
();
177
clear
();
178
p_obj
.set_by_val(
s_latency_monitoring
, value);
179
}
180
181
182
};
183
184
// out stream operator
185
186
inline
std::ostream&
operator<<
(std::ostream& s,
const
DataProcessor
&
obj
)
187
{
188
return
obj
.print_object(s);
189
}
190
191
typedef
std::vector<const DataProcessor*>::const_iterator
DataProcessorIterator
;
192
193
}
194
}
195
196
#endif
DalObject.hpp
dunedaq::appmodel::DataProcessor
Definition
DataProcessor.hpp:20
dunedaq::appmodel::DataProcessor::get_queue_sizes
uint32_t get_queue_sizes() const
Get "queue_sizes" attribute value.
Definition
DataProcessor.hpp:96
dunedaq::appmodel::DataProcessor::__get_queue_sizes_str
static const std::string & __get_queue_sizes_str() noexcept
Definition
DataProcessor.hpp:84
dunedaq::appmodel::DataProcessor::s_latency_monitoring
static const std::string s_latency_monitoring
Definition
DataProcessor.hpp:82
dunedaq::appmodel::DataProcessor::m_queue_sizes
uint32_t m_queue_sizes
Definition
DataProcessor.hpp:71
dunedaq::appmodel::DataProcessor::DataProcessor
DataProcessor(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
DataProcessor.cpp:26
dunedaq::appmodel::DataProcessor::~DataProcessor
virtual ~DataProcessor() noexcept
Definition
DataProcessor.cpp:72
dunedaq::appmodel::DataProcessor::set_latency_monitoring
void set_latency_monitoring(bool value)
Set "latency_monitoring" attribute value.
Definition
DataProcessor.hpp:173
dunedaq::appmodel::DataProcessor::__get_thread_names_prefix_str
static const std::string & __get_thread_names_prefix_str() noexcept
Definition
DataProcessor.hpp:85
dunedaq::appmodel::DataProcessor::__get_latency_monitoring_str
static const std::string & __get_latency_monitoring_str() noexcept
Definition
DataProcessor.hpp:86
dunedaq::appmodel::DataProcessor::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
DataProcessor.cpp:76
dunedaq::appmodel::DataProcessor::DalFactory
friend class conffwk::DalFactory
Definition
DataProcessor.hpp:24
dunedaq::appmodel::DataProcessor::init
virtual void init(bool init_children)
Definition
DataProcessor.cpp:56
dunedaq::appmodel::DataProcessor::s_class_name
static const std::string & s_class_name
Definition
DataProcessor.hpp:37
dunedaq::appmodel::DataProcessor::s_queue_sizes
static const std::string s_queue_sizes
Definition
DataProcessor.hpp:80
dunedaq::appmodel::DataProcessor::get_thread_names_prefix
const std::string & get_thread_names_prefix() const
Get "thread_names_prefix" attribute value.
Definition
DataProcessor.hpp:127
dunedaq::appmodel::DataProcessor::DalObject
friend class conffwk::DalObject
Definition
DataProcessor.hpp:23
dunedaq::appmodel::DataProcessor::set_queue_sizes
void set_queue_sizes(uint32_t value)
Set "queue_sizes" attribute value.
Definition
DataProcessor.hpp:111
dunedaq::appmodel::DataProcessor::get_latency_monitoring
bool get_latency_monitoring() const
Get "latency_monitoring" attribute value.
Definition
DataProcessor.hpp:158
dunedaq::appmodel::DataProcessor::set_thread_names_prefix
void set_thread_names_prefix(const std::string &value)
Set "thread_names_prefix" attribute value.
Definition
DataProcessor.hpp:142
dunedaq::appmodel::DataProcessor::s_thread_names_prefix
static const std::string s_thread_names_prefix
Definition
DataProcessor.hpp:81
dunedaq::appmodel::DataProcessor::m_latency_monitoring
bool m_latency_monitoring
Definition
DataProcessor.hpp:73
dunedaq::appmodel::DataProcessor::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the DataProcessor object.
Definition
DataProcessor.cpp:33
dunedaq::appmodel::DataProcessor::m_thread_names_prefix
std::string m_thread_names_prefix
Definition
DataProcessor.hpp:72
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
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::DataProcessorIterator
std::vector< constDataProcessor * >::const_iterator DataProcessorIterator
Definition
DataProcessor.hpp:191
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