DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
HSIReadoutConf.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _HSIReadoutConf_0_dunedaq__appmodel_0_appmodel_H_
4#define _HSIReadoutConf_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
21
22 friend class conffwk::Configuration;
23 friend class conffwk::DalObject;
24 friend class conffwk::DalFactory;
25 friend class conffwk::DalRegistry;
26
27 protected:
28
30 virtual ~HSIReadoutConf() 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_connections_file;
72 std::string m_uhal_log_level;
73 uint64_t m_readout_period;
74 std::string m_hsi_device_name;
75
76
77 public:
78
79 // attribute names
80
81 inline static const std::string s_connections_file = "connections_file";
82 inline static const std::string s_uhal_log_level = "uhal_log_level";
83 inline static const std::string s_readout_period = "readout_period";
84 inline static const std::string s_hsi_device_name = "hsi_device_name";
85
86 static const std::string& __get_connections_file_str() noexcept { return s_connections_file; }
87 static const std::string& __get_uhal_log_level_str() noexcept { return s_uhal_log_level; }
88 static const std::string& __get_readout_period_str() noexcept { return s_readout_period; }
89 static const std::string& __get_hsi_device_name_str() noexcept { return s_hsi_device_name; }
90
91
99 const std::string&
101 {
102 std::lock_guard scoped_lock(m_mutex);
103 check();
104 check_init();
105 return m_connections_file;
106 }
107
115 void
116 set_connections_file(const std::string& value)
117 {
118 std::lock_guard scoped_lock(m_mutex);
119 check();
120 clear();
122 }
123
124
130 inline static const std::string Fatal = "fatal";
131 inline static const std::string Error = "error";
132 inline static const std::string Warning = "warning";
133 inline static const std::string Notice = "notice";
134 inline static const std::string Info = "info";
135 inline static const std::string Debug = "debug";
136 };
137
145 const std::string&
147 {
148 std::lock_guard scoped_lock(m_mutex);
149 check();
150 check_init();
151 return m_uhal_log_level;
152 }
153
161 void
162 set_uhal_log_level(const std::string& value)
163 {
164 std::lock_guard scoped_lock(m_mutex);
165 check();
166 clear();
168 }
169
170
178 uint64_t
180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 check_init();
184 return m_readout_period;
185 }
186
194 void
195 set_readout_period(uint64_t value)
196 {
197 std::lock_guard scoped_lock(m_mutex);
198 check();
199 clear();
201 }
202
203
210 const std::string&
212 {
213 std::lock_guard scoped_lock(m_mutex);
214 check();
215 check_init();
216 return m_hsi_device_name;
217 }
218
225 void
226 set_hsi_device_name(const std::string& value)
227 {
228 std::lock_guard scoped_lock(m_mutex);
229 check();
230 clear();
232 }
233
234
235 };
236
237 // out stream operator
238
239 inline std::ostream& operator<<(std::ostream& s, const HSIReadoutConf& obj)
240 {
241 return obj.print_object(s);
242 }
243
244 typedef std::vector<const HSIReadoutConf*>::const_iterator HSIReadoutConfIterator;
245
246 }
247}
248
249#endif
void set_uhal_log_level(const std::string &value)
Set "uhal_log_level" attribute value. Log level for uhal.
static const std::string & __get_readout_period_str() noexcept
static const std::string & __get_connections_file_str() noexcept
void set_hsi_device_name(const std::string &value)
Set "hsi_device_name" attribute value.
static const std::string s_hsi_device_name
uint64_t get_readout_period() const
Get "readout_period" attribute value. Hardware device poll period [us].
void set_readout_period(uint64_t value)
Set "readout_period" attribute value. Hardware device poll period [us].
virtual ~HSIReadoutConf() noexcept
HSIReadoutConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
virtual void init(bool init_children)
static const std::string s_readout_period
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...
static const std::string & s_class_name
static const std::string & __get_uhal_log_level_str() noexcept
const std::string & get_hsi_device_name() const
Get "hsi_device_name" attribute value.
const std::string & get_connections_file() const
Get "connections_file" attribute value. device connections file.
const std::string & get_uhal_log_level() const
Get "uhal_log_level" attribute value. Log level for uhal.
static const std::string s_connections_file
void set_connections_file(const std::string &value)
Set "connections_file" attribute value. device connections file.
static const std::string & __get_hsi_device_name_str() noexcept
static const std::string s_uhal_log_level
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.
void set_enum(const std::string &name, const std::string &value)
Set attribute enumeration 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::vector< constHSIReadoutConf * >::const_iterator HSIReadoutConfIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.