DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
confmodel
codegen
include
confmodel
ExcludableEntityTree.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _ExcludableEntityTree_0_dunedaq__confmodel_0_confmodel_H_
4
#define _ExcludableEntityTree_0_dunedaq__confmodel_0_confmodel_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
confmodel
{
21
class
ExcludableEntity
;
22
class
ExcludableEntitySet
;
23
}
24
}
25
26
27
// prologue of method ExcludableEntityTree::excluded_entities()
28
29
#include "
confmodel/ExcludedEntities.hpp
"
30
#include "
confmodel/ExcludableEntity.hpp
"
31
32
namespace
dunedaq
{
33
namespace
confmodel
{
34
35
class
ExcludableEntityTree
:
public
virtual
dunedaq::conffwk::DalObject
{
36
37
friend
class
conffwk::Configuration
;
38
friend
class
conffwk::DalObject
;
39
friend
class
conffwk::DalFactory
;
40
friend
class
conffwk::DalRegistry
;
41
42
protected
:
43
44
ExcludableEntityTree
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
45
virtual
~ExcludableEntityTree
() noexcept;
46
virtual
void
init
(
bool
init_children);
47
48
public:
49
51
52
static const
std
::
string
&
s_class_name
;
53
54
63
64
virtual
void
print
(
unsigned
int
offset
,
bool
print_header,
std
::ostream& s) const;
65
66
75
76
virtual
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>
get
(const
std
::
string
& name,
bool
upcast_unregistered = true) const;
77
78
79
protected:
80
81
bool
get
(const
std
::
string
& name,
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>& vec,
bool
upcast_unregistered,
bool
first_call) const;
82
83
84
private:
85
86
std
::vector<const
dunedaq
::
confmodel
::
ExcludableEntity
*>
m_excluded
;
87
88
// extension of method ExcludableEntityTree::excluded_entities()
89
mutable
ExcludedEntities
m_excluded_entities
;
90
91
92
public:
93
94
// relationship names
95
96
inline static const
std
::
string
s_excluded
=
"excluded"
;
97
98
static const
std
::
string
&
__get_excluded_str
() noexcept {
return
s_excluded
; }
99
100
107
108
const
std::vector<const dunedaq::confmodel::ExcludableEntity*>&
109
get_excluded
()
const
110
{
111
std::lock_guard scoped_lock(
m_mutex
);
112
check
();
113
check_init
();
114
return
m_excluded
;
115
}
116
117
124
125
void
126
set_excluded
(
const
std::vector<const dunedaq::confmodel::ExcludableEntity*>& value);
127
128
129
public
:
130
131
// user-defined algorithms
132
136
137
const
dunedaq::confmodel::ExcludedEntities
&
excluded_entities
()
const
;
138
139
143
144
virtual
const
ExcludableEntitySet
*
root_entity
()
const
= 0;
145
146
150
151
void
exclude
(
const
ExcludableEntity
*);
152
153
154
void
include
(
const
ExcludableEntity
*);
155
};
156
157
// out stream operator
158
159
inline
std::ostream&
operator<<
(std::ostream& s,
const
ExcludableEntityTree
&
obj
)
160
{
161
return
obj
.print_object(s);
162
}
163
164
typedef
std::vector<const ExcludableEntityTree*>::const_iterator
ExcludableEntityTreeIterator
;
165
166
}
167
}
168
169
#endif
DalObject.hpp
ExcludedEntities.hpp
dunedaq::conffwk::DalObject
The base class for any generated DAL object.
Definition
DalObject.hpp:51
dunedaq::conffwk::DalObject::m_mutex
std::mutex m_mutex
Used to protect changes of DAL object.
Definition
DalObject.hpp:100
dunedaq::conffwk::DalObject::check
void check() const
Definition
DalObject.hpp:88
dunedaq::conffwk::DalObject::check_init
void check_init() const
Check and initialize object if necessary.
Definition
DalObject.hpp:350
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::ExcludableEntitySet
Definition
ExcludableEntitySet.hpp:27
dunedaq::confmodel::ExcludableEntityTree
Definition
ExcludableEntityTree.hpp:35
dunedaq::confmodel::ExcludableEntityTree::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the ExcludableEntityTree object.
Definition
ExcludableEntityTree.cpp:27
dunedaq::confmodel::ExcludableEntityTree::excluded_entities
const dunedaq::confmodel::ExcludedEntities & excluded_entities() const
Definition
ExcludableEntityTree.cpp:106
dunedaq::confmodel::ExcludableEntityTree::root_entity
virtual const ExcludableEntitySet * root_entity() const =0
dunedaq::confmodel::ExcludableEntityTree::m_excluded
std::vector< const dunedaq::confmodel::ExcludableEntity * > m_excluded
Definition
ExcludableEntityTree.hpp:86
dunedaq::confmodel::ExcludableEntityTree::exclude
void exclude(const ExcludableEntity *)
Definition
dalMethods.cpp:368
dunedaq::confmodel::ExcludableEntityTree::init
virtual void init(bool init_children)
Definition
ExcludableEntityTree.cpp:48
dunedaq::confmodel::ExcludableEntityTree::get_excluded
const std::vector< const dunedaq::confmodel::ExcludableEntity * > & get_excluded() const
Get "excluded" relationship value. ExcludableEntitys that should not participate in the current run.
Definition
ExcludableEntityTree.hpp:109
dunedaq::confmodel::ExcludableEntityTree::__get_excluded_str
static const std::string & __get_excluded_str() noexcept
Definition
ExcludableEntityTree.hpp:98
dunedaq::confmodel::ExcludableEntityTree::DalFactory
friend class conffwk::DalFactory
Definition
ExcludableEntityTree.hpp:39
dunedaq::confmodel::ExcludableEntityTree::m_excluded_entities
ExcludedEntities m_excluded_entities
Definition
ExcludableEntityTree.hpp:89
dunedaq::confmodel::ExcludableEntityTree::DalObject
friend class conffwk::DalObject
Definition
ExcludableEntityTree.hpp:38
dunedaq::confmodel::ExcludableEntityTree::set_excluded
void set_excluded(const std::vector< const dunedaq::confmodel::ExcludableEntity * > &value)
Set "excluded" relationship value. ExcludableEntitys that should not participate in the current run.
Definition
ExcludableEntityTree.cpp:95
dunedaq::confmodel::ExcludableEntityTree::s_excluded
static const std::string s_excluded
Definition
ExcludableEntityTree.hpp:96
dunedaq::confmodel::ExcludableEntityTree::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
ExcludableEntityTree.cpp:66
dunedaq::confmodel::ExcludableEntityTree::s_class_name
static const std::string & s_class_name
Definition
ExcludableEntityTree.hpp:52
dunedaq::confmodel::ExcludableEntityTree::ExcludableEntityTree
ExcludableEntityTree(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
ExcludableEntityTree.cpp:20
dunedaq::confmodel::ExcludableEntity
Definition
ExcludableEntity.hpp:35
dunedaq::confmodel::ExcludedEntities
Definition
ExcludedEntities.hpp:16
Configuration.hpp
conffwk entry point
offset
double offset
Definition
conversions-impl.hh:28
ExcludableEntity.hpp
conffwk.ConfigObject
Definition
ConfigObject.py:1
conffwk.Configuration
Definition
Configuration.py:1
conffwk
Definition
__init__.py:1
dunedaq::confmodel
Definition
ExcludedEntities.hpp:9
dunedaq::confmodel::ExcludableEntityTreeIterator
std::vector< constExcludableEntityTree * >::const_iterator ExcludableEntityTreeIterator
Definition
ExcludableEntityTree.hpp:164
dunedaq::confmodel::operator<<
std::ostream & operator<<(std::ostream &s, const ActionPlan &obj)
Definition
ActionPlan.hpp:210
dunedaq
The DUNE-DAQ namespace.
Definition
cib_utilities.cpp:5
dunedaq::obj
msgpack::object obj
Definition
Serialization.hpp:252
include.include
None include(str oksfile, bool exclude, list[str] excludable_entity, str session_name)
Definition
include.py:8
std
Definition
SchemaUtils.hpp:118
Generated on
for DUNE-DAQ by
1.18.0