DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TimingHardwareInterfaceConf.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _TimingHardwareInterfaceConf_0_dunedaq__timinglibs__dal_0_timinglibs_dal_H_
4#define _TimingHardwareInterfaceConf_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
17namespace dunedaq {
18 namespace timinglibs {
19 namespace dal {
20
26
27 friend class conffwk::Configuration;
28 friend class conffwk::DalObject;
29 friend class conffwk::DalFactory;
30 friend class conffwk::DalRegistry;
31
32 protected:
33
35 virtual ~TimingHardwareInterfaceConf() noexcept;
36 virtual void init(bool init_children);
37
38 public:
39
42 static const std::string& s_class_name;
43
44
54 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
55
56
66 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
67
68
69 protected:
70
71 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
72
73
74 private:
75
76 std::string m_uhal_log_level;
77 std::string m_connections_file;
78
79
80 public:
81
82 // attribute names
83
84 inline static const std::string s_uhal_log_level = "uhal_log_level";
85 inline static const std::string s_connections_file = "connections_file";
86
87 static const std::string& __get_uhal_log_level_str() noexcept { return s_uhal_log_level; }
88 static const std::string& __get_connections_file_str() noexcept { return s_connections_file; }
89
90
96 inline static const std::string Fatal = "fatal";
97 inline static const std::string Error = "error";
98 inline static const std::string Warning = "warning";
99 inline static const std::string Notice = "notice";
100 inline static const std::string Info = "info";
101 inline static const std::string Debug = "debug";
102 };
103
111 const std::string&
113 {
114 std::lock_guard scoped_lock(m_mutex);
115 check();
116 check_init();
117 return m_uhal_log_level;
118 }
119
127 void
128 set_uhal_log_level(const std::string& value)
129 {
130 std::lock_guard scoped_lock(m_mutex);
131 check();
132 clear();
134 }
135
136
144 const std::string&
146 {
147 std::lock_guard scoped_lock(m_mutex);
148 check();
149 check_init();
150 return m_connections_file;
151 }
152
160 void
161 set_connections_file(const std::string& value)
162 {
163 std::lock_guard scoped_lock(m_mutex);
164 check();
165 clear();
167 }
168
169
170 };
171
172 // out stream operator
173
174 inline std::ostream& operator<<(std::ostream& s, const TimingHardwareInterfaceConf& obj)
175 {
176 return obj.print_object(s);
177 }
178
179 typedef std::vector<const TimingHardwareInterfaceConf*>::const_iterator TimingHardwareInterfaceConfIterator;
180
181 }
182 }
183}
184
185#endif
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...
void set_uhal_log_level(const std::string &value)
Set "uhal_log_level" attribute value. Log level for uhal.
const std::string & get_connections_file() const
Get "connections_file" attribute value. device connections file.
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...
const std::string & get_uhal_log_level() const
Get "uhal_log_level" attribute value. Log level for uhal.
void set_connections_file(const std::string &value)
Set "connections_file" attribute value. device connections file.
TimingHardwareInterfaceConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
conffwk entry point
double offset
std::vector< constTimingHardwareInterfaceConf * >::const_iterator TimingHardwareInterfaceConfIterator
std::ostream & operator<<(std::ostream &s, const EndpointLocation &obj)
Including Qt Headers.