DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
MLTConf.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _MLTConf_0_dunedaq__appmodel_0_appmodel_H_
4#define _MLTConf_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
17 // forward declaration for classes used in relationships and algorithms
18
19namespace dunedaq {
20 namespace appmodel {
21 class SubdetectorReadoutWindowMap;
22 }
23}
24
25
26namespace dunedaq {
27 namespace appmodel {
28
29 class MLTConf : public virtual dunedaq::conffwk::DalObject {
30
32 friend class conffwk::DalObject;
33 friend class conffwk::DalFactory;
35
36 protected:
37
38 MLTConf(conffwk::DalRegistry& db, const conffwk::ConfigObject& obj) noexcept;
39 virtual ~MLTConf() noexcept;
40 virtual void init(bool init_children);
41
42 public:
43
46 static const std::string& s_class_name;
47
48
58 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
59
60
70 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
71
72
73 protected:
74
75 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
76
77
78 private:
79
83
84
85 public:
86
87 // attribute names
88
89 inline static const std::string s_template_for = "template_for";
90 inline static const std::string s_latency_monitoring = "latency_monitoring";
91
92 static const std::string& __get_template_for_str() noexcept { return s_template_for; }
93 static const std::string& __get_latency_monitoring_str() noexcept { return s_latency_monitoring; }
94
95
102 const std::string&
104 {
105 std::lock_guard scoped_lock(m_mutex);
106 check();
107 check_init();
108 return m_template_for;
109 }
110
117 void
118 set_template_for(const std::string& value)
119 {
120 std::lock_guard scoped_lock(m_mutex);
121 check();
122 clear();
124 }
125
126
134 bool
136 {
137 std::lock_guard scoped_lock(m_mutex);
138 check();
139 check_init();
141 }
142
150 void
152 {
153 std::lock_guard scoped_lock(m_mutex);
154 check();
155 clear();
157 }
158
159
160 // relationship names
161
162 inline static const std::string s_subdetector_readout_map = "subdetector_readout_map";
163
164 static const std::string& __get_subdetector_readout_map_str() noexcept { return s_subdetector_readout_map; }
165
166
174 const std::vector<const dunedaq::appmodel::SubdetectorReadoutWindowMap*>&
176 {
177 std::lock_guard scoped_lock(m_mutex);
178 check();
179 check_init();
181 }
182
183
191 void
192 set_subdetector_readout_map(const std::vector<const dunedaq::appmodel::SubdetectorReadoutWindowMap*>& value);
193
194 };
195
196 // out stream operator
197
198 inline std::ostream& operator<<(std::ostream& s, const MLTConf& obj)
199 {
200 return obj.print_object(s);
201 }
202
203 typedef std::vector<const MLTConf*>::const_iterator MLTConfIterator;
204
205 }
206}
207
208#endif
const std::vector< const dunedaq::appmodel::SubdetectorReadoutWindowMap * > & get_subdetector_readout_map() const
Get "subdetector_readout_map" relationship value. Optional detector readout map per sub-dector as def...
Definition MLTConf.hpp:175
static const std::string s_subdetector_readout_map
Definition MLTConf.hpp:162
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 MLTConf.cpp:85
static const std::string & s_class_name
Definition MLTConf.hpp:46
static const std::string s_template_for
Definition MLTConf.hpp:89
void set_latency_monitoring(bool value)
Set "latency_monitoring" attribute value. Should we monitor latency in Grafana?
Definition MLTConf.hpp:151
static const std::string & __get_latency_monitoring_str() noexcept
Definition MLTConf.hpp:93
static const std::string & __get_subdetector_readout_map_str() noexcept
Definition MLTConf.hpp:164
bool get_latency_monitoring() const
Get "latency_monitoring" attribute value. Should we monitor latency in Grafana?
Definition MLTConf.hpp:135
friend class conffwk::DalFactory
Definition MLTConf.hpp:33
static const std::string s_latency_monitoring
Definition MLTConf.hpp:90
virtual ~MLTConf() noexcept
Definition MLTConf.cpp:81
std::vector< const dunedaq::appmodel::SubdetectorReadoutWindowMap * > m_subdetector_readout_map
Definition MLTConf.hpp:82
MLTConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition MLTConf.cpp:31
void set_template_for(const std::string &value)
Set "template_for" attribute value.
Definition MLTConf.hpp:118
static const std::string & __get_template_for_str() noexcept
Definition MLTConf.hpp:92
friend class conffwk::DalObject
Definition MLTConf.hpp:32
const std::string & get_template_for() const
Get "template_for" attribute value.
Definition MLTConf.hpp:103
virtual void init(bool init_children)
Definition MLTConf.cpp:65
void set_subdetector_readout_map(const std::vector< const dunedaq::appmodel::SubdetectorReadoutWindowMap * > &value)
Set "subdetector_readout_map" relationship value. Optional detector readout map per sub-dector as def...
Definition MLTConf.cpp:114
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.
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< constMLTConf * >::const_iterator MLTConfIterator
Definition MLTConf.hpp:203
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.