DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
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
14#include "conffwk/DalObject.hpp"
15
16
17 // forward declaration for classes used in relationships and algorithms
18
19namespace dunedaq {
20 namespace confmodel {
21 class ExcludableEntity;
23 }
24}
25
26
27 // prologue of method ExcludableEntityTree::excluded_entities()
28
31
32namespace dunedaq {
33 namespace confmodel {
34
36
38 friend class conffwk::DalObject;
39 friend class conffwk::DalFactory;
41
42 protected:
43
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
87
88 // extension of method ExcludableEntityTree::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*>&
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
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
The base class for any generated DAL object.
Definition DalObject.hpp:51
std::mutex m_mutex
Used to protect changes of DAL object.
void check_init() const
Check and initialize object if necessary.
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the ExcludableEntityTree object.
const dunedaq::confmodel::ExcludedEntities & excluded_entities() const
virtual const ExcludableEntitySet * root_entity() const =0
std::vector< const dunedaq::confmodel::ExcludableEntity * > m_excluded
void exclude(const ExcludableEntity *)
const std::vector< const dunedaq::confmodel::ExcludableEntity * > & get_excluded() const
Get "excluded" relationship value. ExcludableEntitys that should not participate in the current run.
static const std::string & __get_excluded_str() noexcept
void set_excluded(const std::vector< const dunedaq::confmodel::ExcludableEntity * > &value)
Set "excluded" relationship value. ExcludableEntitys that should not participate in the current run.
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...
ExcludableEntityTree(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
conffwk entry point
double offset
std::vector< constExcludableEntityTree * >::const_iterator ExcludableEntityTreeIterator
std::ostream & operator<<(std::ostream &s, const ActionPlan &obj)
The DUNE-DAQ namespace.
msgpack::object obj
None include(str oksfile, bool exclude, list[str] excludable_entity, str session_name)
Definition include.py:8