DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
TPDataProcessor.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _TPDataProcessor_0_dunedaq__appmodel_0_appmodel_H_
4
#define _TPDataProcessor_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/DataProcessor.hpp
"
19
20
// forward declaration for classes used in relationships and algorithms
21
22
namespace
dunedaq
{
23
namespace
appmodel
{
24
class
TAAlgorithm
;
25
}
26
}
27
28
29
namespace
dunedaq
{
30
namespace
appmodel
{
31
32
class
TPDataProcessor
:
public
dunedaq::appmodel::DataProcessor
{
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
TPDataProcessor
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
42
virtual
~TPDataProcessor
() 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
bool
m_print_tp_info
;
84
std
::vector<const
dunedaq
::
appmodel
::
TAAlgorithm
*>
m_algorithms
;
85
86
87
public:
88
89
// attribute names
90
91
inline static const
std
::
string
s_print_tp_info
=
"print_tp_info"
;
92
93
static const
std
::
string
&
__get_print_tp_info_str
() noexcept {
return
s_print_tp_info
; }
94
95
102
103
bool
104
get_print_tp_info
()
const
105
{
106
std::lock_guard scoped_lock(
m_mutex
);
107
check
();
108
check_init
();
109
return
m_print_tp_info
;
110
}
111
118
119
void
120
set_print_tp_info
(
bool
value)
121
{
122
std::lock_guard scoped_lock(
m_mutex
);
123
check
();
124
clear
();
125
p_obj
.set_by_val(
s_print_tp_info
, value);
126
}
127
128
129
// relationship names
130
131
inline
static
const
std::string
s_algorithms
=
"algorithms"
;
132
133
static
const
std::string&
__get_algorithms_str
() noexcept {
return
s_algorithms
; }
134
135
141
142
const
std::vector<const dunedaq::appmodel::TAAlgorithm*>&
143
get_algorithms
()
const
144
{
145
std::lock_guard scoped_lock(
m_mutex
);
146
check
();
147
check_init
();
148
if
(
m_algorithms
.empty())
149
{
150
std::ostringstream text;
151
text <<
"relationship \""
<<
s_algorithms
<<
"\" of object "
<<
this
<<
" is empty"
;
152
throw
dunedaq::conffwk::Generic(
ERS_HERE
, text.str().c_str());
153
}
154
return
m_algorithms
;
155
}
156
157
163
164
void
165
set_algorithms
(
const
std::vector<const dunedaq::appmodel::TAAlgorithm*>& value);
166
167
};
168
169
// out stream operator
170
171
inline
std::ostream&
operator<<
(std::ostream& s,
const
TPDataProcessor
&
obj
)
172
{
173
return
obj
.print_object(s);
174
}
175
176
typedef
std::vector<const TPDataProcessor*>::const_iterator
TPDataProcessorIterator
;
177
178
}
179
}
180
181
#endif
DalObject.hpp
ERS_HERE
#define ERS_HERE
Definition
LocalContext.hpp:141
dunedaq::appmodel::DataProcessor
Definition
DataProcessor.hpp:20
dunedaq::appmodel::TAAlgorithm
Definition
TAAlgorithm.hpp:27
dunedaq::appmodel::TPDataProcessor
Definition
TPDataProcessor.hpp:32
dunedaq::appmodel::TPDataProcessor::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the TPDataProcessor object.
Definition
TPDataProcessor.cpp:40
dunedaq::appmodel::TPDataProcessor::s_print_tp_info
static const std::string s_print_tp_info
Definition
TPDataProcessor.hpp:91
dunedaq::appmodel::TPDataProcessor::get_algorithms
const std::vector< const dunedaq::appmodel::TAAlgorithm * > & get_algorithms() const
Get "algorithms" relationship value.
Definition
TPDataProcessor.hpp:143
dunedaq::appmodel::TPDataProcessor::get_print_tp_info
bool get_print_tp_info() const
Get "print_tp_info" attribute value. Whether to print TP information in the TA processor.
Definition
TPDataProcessor.hpp:104
dunedaq::appmodel::TPDataProcessor::__get_print_tp_info_str
static const std::string & __get_print_tp_info_str() noexcept
Definition
TPDataProcessor.hpp:93
dunedaq::appmodel::TPDataProcessor::m_print_tp_info
bool m_print_tp_info
Definition
TPDataProcessor.hpp:83
dunedaq::appmodel::TPDataProcessor::m_algorithms
std::vector< const dunedaq::appmodel::TAAlgorithm * > m_algorithms
Definition
TPDataProcessor.hpp:84
dunedaq::appmodel::TPDataProcessor::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
TPDataProcessor.cpp:90
dunedaq::appmodel::TPDataProcessor::DalFactory
friend class conffwk::DalFactory
Definition
TPDataProcessor.hpp:36
dunedaq::appmodel::TPDataProcessor::set_print_tp_info
void set_print_tp_info(bool value)
Set "print_tp_info" attribute value. Whether to print TP information in the TA processor.
Definition
TPDataProcessor.hpp:120
dunedaq::appmodel::TPDataProcessor::TPDataProcessor
TPDataProcessor(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
TPDataProcessor.cpp:31
dunedaq::appmodel::TPDataProcessor::DalObject
friend class conffwk::DalObject
Definition
TPDataProcessor.hpp:35
dunedaq::appmodel::TPDataProcessor::s_class_name
static const std::string & s_class_name
Definition
TPDataProcessor.hpp:49
dunedaq::appmodel::TPDataProcessor::~TPDataProcessor
virtual ~TPDataProcessor() noexcept
Definition
TPDataProcessor.cpp:86
dunedaq::appmodel::TPDataProcessor::__get_algorithms_str
static const std::string & __get_algorithms_str() noexcept
Definition
TPDataProcessor.hpp:133
dunedaq::appmodel::TPDataProcessor::s_algorithms
static const std::string s_algorithms
Definition
TPDataProcessor.hpp:131
dunedaq::appmodel::TPDataProcessor::set_algorithms
void set_algorithms(const std::vector< const dunedaq::appmodel::TAAlgorithm * > &value)
Set "algorithms" relationship value.
Definition
TPDataProcessor.cpp:121
dunedaq::appmodel::TPDataProcessor::init
virtual void init(bool init_children)
Definition
TPDataProcessor.cpp:71
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
DataProcessor.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::TPDataProcessorIterator
std::vector< constTPDataProcessor * >::const_iterator TPDataProcessorIterator
Definition
TPDataProcessor.hpp:176
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