DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CTBPDSLLT.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _CTBPDSLLT_0_dunedaq__appmodel_0_appmodel_H_
4#define _CTBPDSLLT_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
14#include "conffwk/DalObject.hpp"
15
16
17namespace dunedaq {
18 namespace appmodel {
19
20 class CTBPDSLLT : public virtual dunedaq::conffwk::DalObject {
21
23 friend class conffwk::DalObject;
24 friend class conffwk::DalFactory;
26
27 protected:
28
30 virtual ~CTBPDSLLT() noexcept;
31 virtual void init(bool init_children);
32
33 public:
34
37 static const std::string& s_class_name;
38
39
49 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
50
51
61 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
62
63
64 protected:
65
66 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
67
68
69 private:
70
71 std::string m_id;
74 std::string m_mask;
75 std::string m_type;
76 std::string m_count;
77
78
79 public:
80
81 // attribute names
82
83 inline static const std::string s_id = "id";
84 inline static const std::string s_description = "description";
85 inline static const std::string s_enable = "enable";
86 inline static const std::string s_mask = "mask";
87 inline static const std::string s_type = "type";
88 inline static const std::string s_count = "count";
89
90 static const std::string& __get_id_str() noexcept { return s_id; }
91 static const std::string& __get_description_str() noexcept { return s_description; }
92 static const std::string& __get_enable_str() noexcept { return s_enable; }
93 static const std::string& __get_mask_str() noexcept { return s_mask; }
94 static const std::string& __get_type_str() noexcept { return s_type; }
95 static const std::string& __get_count_str() noexcept { return s_count; }
96
97
104 const std::string&
105 get_id() const
106 {
107 std::lock_guard scoped_lock(m_mutex);
108 check();
109 check_init();
110 return m_id;
111 }
112
119 void
120 set_id(const std::string& value)
121 {
122 std::lock_guard scoped_lock(m_mutex);
123 check();
124 clear();
125 p_obj.set_by_ref(s_id, value);
126 }
127
128
135 const std::string&
137 {
138 std::lock_guard scoped_lock(m_mutex);
139 check();
140 check_init();
141 return m_description;
142 }
143
150 void
151 set_description(const std::string& value)
152 {
153 std::lock_guard scoped_lock(m_mutex);
154 check();
155 clear();
157 }
158
159
166 bool
168 {
169 std::lock_guard scoped_lock(m_mutex);
170 check();
171 check_init();
172 return m_enable;
173 }
174
181 void
182 set_enable(bool value)
183 {
184 std::lock_guard scoped_lock(m_mutex);
185 check();
186 clear();
187 p_obj.set_by_val(s_enable, value);
188 }
189
190
197 const std::string&
198 get_mask() const
199 {
200 std::lock_guard scoped_lock(m_mutex);
201 check();
202 check_init();
203 return m_mask;
204 }
205
212 void
213 set_mask(const std::string& value)
214 {
215 std::lock_guard scoped_lock(m_mutex);
216 check();
217 clear();
218 p_obj.set_by_ref(s_mask, value);
219 }
220
221
228 const std::string&
229 get_type() const
230 {
231 std::lock_guard scoped_lock(m_mutex);
232 check();
233 check_init();
234 return m_type;
235 }
236
243 void
244 set_type(const std::string& value)
245 {
246 std::lock_guard scoped_lock(m_mutex);
247 check();
248 clear();
249 p_obj.set_by_ref(s_type, value);
250 }
251
252
259 const std::string&
260 get_count() const
261 {
262 std::lock_guard scoped_lock(m_mutex);
263 check();
264 check_init();
265 return m_count;
266 }
267
274 void
275 set_count(const std::string& value)
276 {
277 std::lock_guard scoped_lock(m_mutex);
278 check();
279 clear();
280 p_obj.set_by_ref(s_count, value);
281 }
282
283
284 };
285
286 // out stream operator
287
288 inline std::ostream& operator<<(std::ostream& s, const CTBPDSLLT& obj)
289 {
290 return obj.print_object(s);
291 }
292
293 typedef std::vector<const CTBPDSLLT*>::const_iterator CTBPDSLLTIterator;
294
295 }
296}
297
298#endif
virtual ~CTBPDSLLT() noexcept
Definition CTBPDSLLT.cpp:78
CTBPDSLLT(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition CTBPDSLLT.cpp:26
static const std::string & __get_description_str() noexcept
Definition CTBPDSLLT.hpp:91
void set_description(const std::string &value)
Set "description" attribute value.
const std::string & get_description() const
Get "description" attribute value.
void set_enable(bool value)
Set "enable" attribute value.
const std::string & get_type() const
Get "type" attribute value.
static const std::string & __get_enable_str() noexcept
Definition CTBPDSLLT.hpp:92
static const std::string & __get_id_str() noexcept
Definition CTBPDSLLT.hpp:90
const std::string & get_id() const
Get "id" attribute value.
void set_count(const std::string &value)
Set "count" attribute value.
void set_id(const std::string &value)
Set "id" attribute value.
static const std::string s_count
Definition CTBPDSLLT.hpp:88
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 CTBPDSLLT.cpp:82
friend class conffwk::DalFactory
Definition CTBPDSLLT.hpp:24
static const std::string & __get_count_str() noexcept
Definition CTBPDSLLT.hpp:95
const std::string & get_count() const
Get "count" attribute value.
virtual void init(bool init_children)
Definition CTBPDSLLT.cpp:59
static const std::string & __get_mask_str() noexcept
Definition CTBPDSLLT.hpp:93
static const std::string s_description
Definition CTBPDSLLT.hpp:84
bool get_enable() const
Get "enable" attribute value.
static const std::string & s_class_name
Definition CTBPDSLLT.hpp:37
static const std::string s_type
Definition CTBPDSLLT.hpp:87
void set_type(const std::string &value)
Set "type" attribute value.
friend class conffwk::DalObject
Definition CTBPDSLLT.hpp:23
static const std::string s_mask
Definition CTBPDSLLT.hpp:86
void set_mask(const std::string &value)
Set "mask" attribute value.
static const std::string s_enable
Definition CTBPDSLLT.hpp:85
static const std::string & __get_type_str() noexcept
Definition CTBPDSLLT.hpp:94
const std::string & get_mask() const
Get "mask" attribute value.
static const std::string s_id
Definition CTBPDSLLT.hpp:83
void set_by_val(const std::string &name, T value)
Set attribute value.
void set_by_ref(const std::string &name, T &value)
Set attribute value.
The base class for any generated DAL object.
Definition DalObject.hpp:45
std::mutex m_mutex
Used to protect changes of DAL object.
ConfigObject p_obj
Config object used by given template 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...
conffwk entry point
double offset
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constCTBPDSLLT * >::const_iterator CTBPDSLLTIterator
Including Qt Headers.