DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
listrev
codegen
src
ListReverser.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _ListReverser_0_dunedaq__listrev__dal_0_listrev_dal_H_
4
#define _ListReverser_0_dunedaq__listrev__dal_0_listrev_dal_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 "
listrev/dal/ListRevModule.hpp
"
19
20
namespace
dunedaq
{
21
namespace
listrev
{
22
namespace
dal
{
23
24
class
ListReverser
:
public
dunedaq::listrev::dal::ListRevModule {
25
26
friend
class
conffwk::Configuration
;
27
friend
class
conffwk::DalObject
;
28
friend
class
conffwk::DalFactory
;
29
friend
class
conffwk::DalRegistry
;
30
31
protected
:
32
33
ListReverser
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
34
virtual
~ListReverser
() noexcept;
35
virtual
void
init
(
bool
init_children);
36
37
public:
38
40
41
static const
std
::
string
&
s_class_name
;
42
43
52
53
virtual
void
print
(
unsigned
int
offset
,
bool
print_header,
std
::ostream& s) const;
54
55
64
65
virtual
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>
get
(const
std
::
string
& name,
bool
upcast_unregistered = true) const;
66
67
68
protected:
69
70
bool
get
(const
std
::
string
& name,
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>& vec,
bool
upcast_unregistered,
bool
first_call) const;
71
72
73
private:
74
75
uint32_t
m_reverser_id
;
76
77
78
public:
79
80
// attribute names
81
82
inline static const
std
::
string
s_reverser_id
=
"reverser_id"
;
83
84
static const
std
::
string
&
__get_reverser_id_str
() noexcept {
return
s_reverser_id
; }
85
86
92
93
uint32_t
94
get_reverser_id
()
const
95
{
96
std::lock_guard scoped_lock(
m_mutex
);
97
check
();
98
check_init
();
99
return
m_reverser_id
;
100
}
101
107
108
void
109
set_reverser_id
(uint32_t value)
110
{
111
std::lock_guard scoped_lock(
m_mutex
);
112
check
();
113
clear
();
114
p_obj
.set_by_val(
s_reverser_id
, value);
115
}
116
117
118
};
119
120
// out stream operator
121
122
inline
std::ostream&
operator<<
(std::ostream& s,
const
ListReverser&
obj
)
123
{
124
return
obj
.print_object(s);
125
}
126
127
typedef
std::vector<const ListReverser*>::const_iterator
ListReverserIterator
;
128
129
}
130
}
131
}
132
133
#endif
DalObject.hpp
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::listrev::dal::ListReverser
Definition
ListReverser.hpp:24
dunedaq::listrev::dal::ListReverser::DalRegistry
friend class conffwk::DalRegistry
Definition
ListReverser.hpp:29
dunedaq::listrev::dal::ListReverser::__get_reverser_id_str
static const std::string & __get_reverser_id_str() noexcept
Definition
ListReverser.hpp:84
dunedaq::listrev::dal::ListReverser::m_reverser_id
uint32_t m_reverser_id
Definition
ListReverser.hpp:75
dunedaq::listrev::dal::ListReverser::~ListReverser
virtual ~ListReverser() noexcept
dunedaq::listrev::dal::ListReverser::init
virtual void init(bool init_children)
Definition
ListReverser.cpp:62
dunedaq::listrev::dal::ListReverser::get_reverser_id
uint32_t get_reverser_id() const
Get "reverser_id" attribute value.
Definition
ListReverser.hpp:94
dunedaq::listrev::dal::ListReverser::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the ListReverser object.
Definition
ListReverser.cpp:36
dunedaq::listrev::dal::ListReverser::set_reverser_id
void set_reverser_id(uint32_t value)
Set "reverser_id" attribute value.
Definition
ListReverser.hpp:109
dunedaq::listrev::dal::ListReverser::DalFactory
friend class conffwk::DalFactory
Definition
ListReverser.hpp:28
dunedaq::listrev::dal::ListReverser::DalObject
friend class conffwk::DalObject
Definition
ListReverser.hpp:27
dunedaq::listrev::dal::ListReverser::s_class_name
static const std::string & s_class_name
Definition
ListReverser.hpp:41
dunedaq::listrev::dal::ListReverser::Configuration
friend class conffwk::Configuration
Definition
ListReverser.hpp:26
dunedaq::listrev::dal::ListReverser::s_reverser_id
static const std::string s_reverser_id
Definition
ListReverser.hpp:82
dunedaq::listrev::dal::ListReverser::ListReverser
ListReverser(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
dunedaq::listrev::dal::ListReverser::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
ListReverser.cpp:80
Configuration.hpp
conffwk entry point
offset
double offset
Definition
conversions-impl.hh:28
ListRevModule.hpp
conffwk.ConfigObject
Definition
ConfigObject.py:1
conffwk
Definition
__init__.py:1
dunedaq::listrev::dal
Definition
ListReverser.hpp:22
dunedaq::listrev::dal::ListReverserIterator
std::vector< constListReverser * >::const_iterator ListReverserIterator
Definition
ListReverser.hpp:127
dunedaq::listrev::dal::operator<<
std::ostream & operator<<(std::ostream &s, const ListReverser &obj)
Definition
ListReverser.hpp:122
dunedaq::listrev
Definition
ListCreator.hpp:19
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