DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
StandaloneTCMakerConf.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _StandaloneTCMakerConf_0_dunedaq__appmodel_0_appmodel_H_
4#define _StandaloneTCMakerConf_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 StandaloneTCMakerConf : public virtual dunedaq::conffwk::DalObject {
21
23 friend class conffwk::DalObject;
24 friend class conffwk::DalFactory;
26
27 protected:
28
30 virtual ~StandaloneTCMakerConf() 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
74
75
76 public:
77
78 // attribute names
79
80 inline static const std::string s_template_for = "template_for";
81 inline static const std::string s_timestamp_method = "timestamp_method";
82 inline static const std::string s_latency_monitoring = "latency_monitoring";
83
84 static const std::string& __get_template_for_str() noexcept { return s_template_for; }
85 static const std::string& __get_timestamp_method_str() noexcept { return s_timestamp_method; }
86 static const std::string& __get_latency_monitoring_str() noexcept { return s_latency_monitoring; }
87
88
95 const std::string&
97 {
98 std::lock_guard scoped_lock(m_mutex);
99 check();
100 check_init();
101 return m_template_for;
102 }
103
110 void
111 set_template_for(const std::string& value)
112 {
113 std::lock_guard scoped_lock(m_mutex);
114 check();
115 clear();
117 }
118
119
124 struct Timestamp_method {
125 inline static const std::string KTimeSync = "kTimeSync";
126 inline static const std::string KSystemClock = "kSystemClock";
127 };
128
136 const std::string&
138 {
139 std::lock_guard scoped_lock(m_mutex);
140 check();
141 check_init();
142 return m_timestamp_method;
143 }
144
152 void
153 set_timestamp_method(const std::string& value)
154 {
155 std::lock_guard scoped_lock(m_mutex);
156 check();
157 clear();
159 }
160
161
169 bool
171 {
172 std::lock_guard scoped_lock(m_mutex);
173 check();
174 check_init();
176 }
177
185 void
187 {
188 std::lock_guard scoped_lock(m_mutex);
189 check();
190 clear();
192 }
193
194
195 };
196
197 // out stream operator
198
199 inline std::ostream& operator<<(std::ostream& s, const StandaloneTCMakerConf& obj)
200 {
201 return obj.print_object(s);
202 }
203
204 typedef std::vector<const StandaloneTCMakerConf*>::const_iterator StandaloneTCMakerConfIterator;
205
206 }
207}
208
209#endif
const std::string & get_template_for() const
Get "template_for" attribute value.
static const std::string & __get_latency_monitoring_str() noexcept
void set_timestamp_method(const std::string &value)
Set "timestamp_method" attribute value. Option to pick source for timing (system / timesync)
static const std::string & __get_timestamp_method_str() noexcept
void set_latency_monitoring(bool value)
Set "latency_monitoring" attribute value. Should we monitor latency in Grafana?
bool get_latency_monitoring() const
Get "latency_monitoring" attribute value. Should we monitor latency in Grafana?
StandaloneTCMakerConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
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_timestamp_method() const
Get "timestamp_method" attribute value. Option to pick source for timing (system / timesync)
void set_template_for(const std::string &value)
Set "template_for" attribute value.
static const std::string & __get_template_for_str() noexcept
void set_by_val(const std::string &name, T value)
Set attribute value.
void set_class(const std::string &name, const std::string &value)
Set attribute class 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::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constStandaloneTCMakerConf * >::const_iterator StandaloneTCMakerConfIterator
Including Qt Headers.