DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TimingHardwareManagerConf.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _TimingHardwareManagerConf_0_dunedaq__timinglibs__dal_0_timinglibs_dal_H_
4#define _TimingHardwareManagerConf_0_dunedaq__timinglibs__dal_0_timinglibs_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
14#include "conffwk/DalObject.hpp"
15
16 // include files for classes used in inheritance hierarchy
17
19
20 // forward declaration for classes used in relationships and algorithms
21
22namespace dunedaq {
23 namespace timinglibs {
24 namespace dal {
25 class TimingFanoutDevice;
26 }
27 }
28}
29
30
31namespace dunedaq {
32 namespace timinglibs {
33 namespace dal {
34
40
41 friend class conffwk::Configuration;
42 friend class conffwk::DalObject;
43 friend class conffwk::DalFactory;
44 friend class conffwk::DalRegistry;
45
46 protected:
47
49 virtual ~TimingHardwareManagerConf() noexcept;
50 virtual void init(bool init_children);
51
52 public:
53
56 static const std::string& s_class_name;
57
58
68 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
69
70
80 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
81
82
83 protected:
84
85 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
86
87
88 private:
89
90 uint32_t m_gather_interval;
96
97
98 public:
99
100 // attribute names
101
102 inline static const std::string s_gather_interval = "gather_interval";
103 inline static const std::string s_gather_interval_debug = "gather_interval_debug";
104 inline static const std::string s_monitored_device_name_master = "monitored_device_name_master";
105 inline static const std::string s_monitored_device_name_endpoint = "monitored_device_name_endpoint";
106 inline static const std::string s_monitored_device_name_hsi = "monitored_device_name_hsi";
107
108 static const std::string& __get_gather_interval_str() noexcept { return s_gather_interval; }
109 static const std::string& __get_gather_interval_debug_str() noexcept { return s_gather_interval_debug; }
110 static const std::string& __get_monitored_device_name_master_str() noexcept { return s_monitored_device_name_master; }
111 static const std::string& __get_monitored_device_name_endpoint_str() noexcept { return s_monitored_device_name_endpoint; }
112 static const std::string& __get_monitored_device_name_hsi_str() noexcept { return s_monitored_device_name_hsi; }
113
114
122 uint32_t
124 {
125 std::lock_guard scoped_lock(m_mutex);
126 check();
127 check_init();
128 return m_gather_interval;
129 }
130
138 void
139 set_gather_interval(uint32_t value)
140 {
141 std::lock_guard scoped_lock(m_mutex);
142 check();
143 clear();
145 }
146
147
155 uint32_t
157 {
158 std::lock_guard scoped_lock(m_mutex);
159 check();
160 check_init();
162 }
163
171 void
173 {
174 std::lock_guard scoped_lock(m_mutex);
175 check();
176 clear();
178 }
179
180
188 const std::string&
190 {
191 std::lock_guard scoped_lock(m_mutex);
192 check();
193 check_init();
195 }
196
204 void
205 set_monitored_device_name_master(const std::string& value)
206 {
207 std::lock_guard scoped_lock(m_mutex);
208 check();
209 clear();
211 }
212
213
221 const std::string&
223 {
224 std::lock_guard scoped_lock(m_mutex);
225 check();
226 check_init();
228 }
229
237 void
238 set_monitored_device_name_endpoint(const std::string& value)
239 {
240 std::lock_guard scoped_lock(m_mutex);
241 check();
242 clear();
244 }
245
246
254 const std::string&
256 {
257 std::lock_guard scoped_lock(m_mutex);
258 check();
259 check_init();
261 }
262
270 void
271 set_monitored_device_name_hsi(const std::string& value)
272 {
273 std::lock_guard scoped_lock(m_mutex);
274 check();
275 clear();
277 }
278
279
280 // relationship names
281
282 inline static const std::string s_monitored_device_names_fanout = "monitored_device_names_fanout";
283
284 static const std::string& __get_monitored_device_names_fanout_str() noexcept { return s_monitored_device_names_fanout; }
285
286
294 const std::vector<const dunedaq::timinglibs::dal::TimingFanoutDevice*>&
296 {
297 std::lock_guard scoped_lock(m_mutex);
298 check();
299 check_init();
301 }
302
303
311 void
312 set_monitored_device_names_fanout(const std::vector<const dunedaq::timinglibs::dal::TimingFanoutDevice*>& value);
313
314 };
315
316 // out stream operator
317
318 inline std::ostream& operator<<(std::ostream& s, const TimingHardwareManagerConf& obj)
319 {
320 return obj.print_object(s);
321 }
322
323 typedef std::vector<const TimingHardwareManagerConf*>::const_iterator TimingHardwareManagerConfIterator;
324
325 }
326 }
327}
328
329#endif
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...
static const std::string & __get_monitored_device_name_endpoint_str() noexcept
static const std::string & __get_gather_interval_str() noexcept
TimingHardwareManagerConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
uint32_t get_gather_interval() const
Get "gather_interval" attribute value. Hardware device data gather interval [us].
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...
void set_monitored_device_name_hsi(const std::string &value)
Set "monitored_device_name_hsi" attribute value. Name of hsi device to be monitored.
void set_gather_interval_debug(uint32_t value)
Set "gather_interval_debug" attribute value. Hardware device data gather debug interval [us].
const std::string & get_monitored_device_name_hsi() const
Get "monitored_device_name_hsi" attribute value. Name of hsi device to be monitored.
const std::string & get_monitored_device_name_endpoint() const
Get "monitored_device_name_endpoint" attribute value. Name of timing endpoint device to be monitored.
static const std::string & __get_gather_interval_debug_str() noexcept
uint32_t get_gather_interval_debug() const
Get "gather_interval_debug" attribute value. Hardware device data gather debug interval [us].
void set_gather_interval(uint32_t value)
Set "gather_interval" attribute value. Hardware device data gather interval [us].
static const std::string & __get_monitored_device_name_master_str() noexcept
const std::string & get_monitored_device_name_master() const
Get "monitored_device_name_master" attribute value. Name of timing master device to be monitored.
void set_monitored_device_name_endpoint(const std::string &value)
Set "monitored_device_name_endpoint" attribute value. Name of timing endpoint device to be monitored.
void set_monitored_device_names_fanout(const std::vector< const dunedaq::timinglibs::dal::TimingFanoutDevice * > &value)
Set "monitored_device_names_fanout" relationship value. Timing fanout devices to be monitored.
static const std::string & __get_monitored_device_names_fanout_str() noexcept
const std::vector< const dunedaq::timinglibs::dal::TimingFanoutDevice * > & get_monitored_device_names_fanout() const
Get "monitored_device_names_fanout" relationship value. Timing fanout devices to be monitored.
std::vector< const dunedaq::timinglibs::dal::TimingFanoutDevice * > m_monitored_device_names_fanout
static const std::string & __get_monitored_device_name_hsi_str() noexcept
void set_monitored_device_name_master(const std::string &value)
Set "monitored_device_name_master" attribute value. Name of timing master device to be monitored.
conffwk entry point
double offset
std::ostream & operator<<(std::ostream &s, const EndpointLocation &obj)
std::vector< constTimingHardwareManagerConf * >::const_iterator TimingHardwareManagerConfIterator
Including Qt Headers.