DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
listrev
codegen
src
RandomListGeneratorSet.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _RandomListGeneratorSet_0_dunedaq__listrev__dal_0_listrev_dal_H_
4
#define _RandomListGeneratorSet_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
17
// forward declaration for classes used in relationships and algorithms
18
19
namespace
dunedaq
{
20
namespace
listrev
{
21
namespace
dal
{
22
class
RandomDataListGenerator
;
23
}
24
}
25
}
26
27
28
namespace
dunedaq
{
29
namespace
listrev
{
30
namespace
dal
{
31
32
class
RandomListGeneratorSet
:
public
virtual
dunedaq::conffwk::DalObject {
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
RandomListGeneratorSet
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
42
virtual
~RandomListGeneratorSet
() 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
std
::vector<const
dunedaq
::
listrev
::
dal
::
RandomDataListGenerator
*>
m_generators
;
84
85
86
public:
87
88
// relationship names
89
90
inline static const
std
::
string
s_generators
=
"generators"
;
91
92
static const
std
::
string
&
__get_generators_str
() noexcept {
return
s_generators
; }
93
94
100
101
const
std::vector<const dunedaq::listrev::dal::RandomDataListGenerator*>&
102
get_generators
()
const
103
{
104
std::lock_guard scoped_lock(
m_mutex
);
105
check
();
106
check_init
();
107
if
(
m_generators
.empty())
108
{
109
std::ostringstream text;
110
text <<
"relationship \""
<<
s_generators
<<
"\" of object "
<<
this
<<
" is empty"
;
111
throw
dunedaq::conffwk::Generic(
ERS_HERE
, text.str().c_str());
112
}
113
return
m_generators
;
114
}
115
116
122
123
void
124
set_generators
(
const
std::vector<const dunedaq::listrev::dal::RandomDataListGenerator*>& value);
125
126
};
127
128
// out stream operator
129
130
inline
std::ostream&
operator<<
(std::ostream& s,
const
RandomListGeneratorSet
&
obj
)
131
{
132
return
obj
.print_object(s);
133
}
134
135
typedef
std::vector<const RandomListGeneratorSet*>::const_iterator
RandomListGeneratorSetIterator
;
136
137
}
138
}
139
}
140
141
#endif
DalObject.hpp
ERS_HERE
#define ERS_HERE
Definition
LocalContext.hpp:141
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::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::RandomDataListGenerator
Definition
RandomDataListGenerator.hpp:24
dunedaq::listrev::dal::RandomListGeneratorSet
Definition
RandomListGeneratorSet.hpp:32
dunedaq::listrev::dal::RandomListGeneratorSet::DalRegistry
friend class conffwk::DalRegistry
Definition
RandomListGeneratorSet.hpp:37
dunedaq::listrev::dal::RandomListGeneratorSet::RandomListGeneratorSet
RandomListGeneratorSet(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
dunedaq::listrev::dal::RandomListGeneratorSet::__get_generators_str
static const std::string & __get_generators_str() noexcept
Definition
RandomListGeneratorSet.hpp:92
dunedaq::listrev::dal::RandomListGeneratorSet::DalFactory
friend class conffwk::DalFactory
Definition
RandomListGeneratorSet.hpp:36
dunedaq::listrev::dal::RandomListGeneratorSet::set_generators
void set_generators(const std::vector< const dunedaq::listrev::dal::RandomDataListGenerator * > &value)
Set "generators" relationship value.
dunedaq::listrev::dal::RandomListGeneratorSet::s_generators
static const std::string s_generators
Definition
RandomListGeneratorSet.hpp:90
dunedaq::listrev::dal::RandomListGeneratorSet::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
RandomListGeneratorSet.cpp:78
dunedaq::listrev::dal::RandomListGeneratorSet::get_generators
const std::vector< const dunedaq::listrev::dal::RandomDataListGenerator * > & get_generators() const
Get "generators" relationship value.
Definition
RandomListGeneratorSet.hpp:102
dunedaq::listrev::dal::RandomListGeneratorSet::~RandomListGeneratorSet
virtual ~RandomListGeneratorSet() noexcept
dunedaq::listrev::dal::RandomListGeneratorSet::s_class_name
static const std::string & s_class_name
Definition
RandomListGeneratorSet.hpp:49
dunedaq::listrev::dal::RandomListGeneratorSet::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the RandomListGeneratorSet object.
Definition
RandomListGeneratorSet.cpp:39
dunedaq::listrev::dal::RandomListGeneratorSet::DalObject
friend class conffwk::DalObject
Definition
RandomListGeneratorSet.hpp:35
dunedaq::listrev::dal::RandomListGeneratorSet::Configuration
friend class conffwk::Configuration
Definition
RandomListGeneratorSet.hpp:34
dunedaq::listrev::dal::RandomListGeneratorSet::init
virtual void init(bool init_children)
Definition
RandomListGeneratorSet.cpp:60
dunedaq::listrev::dal::RandomListGeneratorSet::m_generators
std::vector< const dunedaq::listrev::dal::RandomDataListGenerator * > m_generators
Definition
RandomListGeneratorSet.hpp:83
Configuration.hpp
conffwk entry point
offset
double offset
Definition
conversions-impl.hh:28
conffwk.ConfigObject
Definition
ConfigObject.py:1
conffwk
Definition
__init__.py:1
dunedaq::listrev::dal
Definition
ListReverser.hpp:22
dunedaq::listrev::dal::operator<<
std::ostream & operator<<(std::ostream &s, const ListReverser &obj)
Definition
ListReverser.hpp:122
dunedaq::listrev::dal::RandomListGeneratorSetIterator
std::vector< constRandomListGeneratorSet * >::const_iterator RandomListGeneratorSetIterator
Definition
RandomListGeneratorSet.hpp:135
dunedaq::listrev
Definition
ListCreator.hpp:19
dunedaq
Including Qt Headers.
Definition
module.cpp:16
dunedaq::obj
msgpack::object obj
Definition
Serialization.hpp:257
listrev
Definition
__init__.py:1
std
Definition
SchemaUtils.hpp:118
Generated on
for DUNE-DAQ by
1.17.0