DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CTBTiming.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _CTBTiming_0_dunedaq__appmodel_0_appmodel_H_
4#define _CTBTiming_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 // include files for classes used in inheritance hierarchy
17
19
20namespace dunedaq {
21 namespace appmodel {
22
28
29 friend class conffwk::Configuration;
30 friend class conffwk::DalObject;
31 friend class conffwk::DalFactory;
32 friend class conffwk::DalRegistry;
33
34 protected:
35
37 virtual ~CTBTiming() noexcept;
38 virtual void init(bool init_children);
39
40 public:
41
44 static const std::string& s_class_name;
45
46
56 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
57
58
68 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
69
70
71 protected:
72
73 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
74
75
76 private:
77
78 std::string m_address;
79 bool m_triggers;
80 std::string m_lockout;
81
82
83 public:
84
85 // attribute names
86
87 inline static const std::string s_address = "address";
88 inline static const std::string s_triggers = "triggers";
89 inline static const std::string s_lockout = "lockout";
90
91 static const std::string& __get_address_str() noexcept { return s_address; }
92 static const std::string& __get_triggers_str() noexcept { return s_triggers; }
93 static const std::string& __get_lockout_str() noexcept { return s_lockout; }
94
95
102 const std::string&
104 {
105 std::lock_guard scoped_lock(m_mutex);
106 check();
107 check_init();
108 return m_address;
109 }
110
117 void
118 set_address(const std::string& value)
119 {
120 std::lock_guard scoped_lock(m_mutex);
121 check();
122 clear();
123 p_obj.set_by_ref(s_address, value);
124 }
125
126
133 bool
135 {
136 std::lock_guard scoped_lock(m_mutex);
137 check();
138 check_init();
139 return m_triggers;
140 }
141
148 void
149 set_triggers(bool value)
150 {
151 std::lock_guard scoped_lock(m_mutex);
152 check();
153 clear();
155 }
156
157
164 const std::string&
166 {
167 std::lock_guard scoped_lock(m_mutex);
168 check();
169 check_init();
170 return m_lockout;
171 }
172
179 void
180 set_lockout(const std::string& value)
181 {
182 std::lock_guard scoped_lock(m_mutex);
183 check();
184 clear();
185 p_obj.set_by_ref(s_lockout, value);
186 }
187
188
189 };
190
191 // out stream operator
192
193 inline std::ostream& operator<<(std::ostream& s, const CTBTiming& obj)
194 {
195 return obj.print_object(s);
196 }
197
198 typedef std::vector<const CTBTiming*>::const_iterator CTBTimingIterator;
199
200 }
201}
202
203#endif
static const std::string s_triggers
Definition CTBTiming.hpp:88
static const std::string & __get_address_str() noexcept
Definition CTBTiming.hpp:91
void set_lockout(const std::string &value)
Set "lockout" attribute value.
const std::string & get_address() const
Get "address" attribute value.
static const std::string s_lockout
Definition CTBTiming.hpp:89
void set_triggers(bool value)
Set "triggers" attribute value.
friend class conffwk::DalFactory
Definition CTBTiming.hpp:31
CTBTiming(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
const std::string & get_lockout() const
Get "lockout" attribute value.
static const std::string & __get_triggers_str() noexcept
Definition CTBTiming.hpp:92
virtual ~CTBTiming() noexcept
static const std::string s_address
Definition CTBTiming.hpp:87
virtual void init(bool init_children)
Definition CTBTiming.cpp:63
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 CTBTiming.cpp:83
friend class conffwk::DalObject
Definition CTBTiming.hpp:30
void set_address(const std::string &value)
Set "address" attribute value.
static const std::string & __get_lockout_str() noexcept
Definition CTBTiming.hpp:93
static const std::string & s_class_name
Definition CTBTiming.hpp:44
bool get_triggers() const
Get "triggers" attribute value.
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< constCTBTiming * >::const_iterator CTBTimingIterator
Including Qt Headers.