DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CTBHLT.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _CTBHLT_0_dunedaq__appmodel_0_appmodel_H_
4#define _CTBHLT_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 // include files for classes used in inheritance hierarchy
17
19
20namespace dunedaq {
21 namespace appmodel {
22
24
25 friend class conffwk::Configuration;
26 friend class conffwk::DalObject;
27 friend class conffwk::DalFactory;
28 friend class conffwk::DalRegistry;
29
30 protected:
31
33 virtual ~CTBHLT() noexcept;
34 virtual void init(bool init_children);
35
36 public:
37
40 static const std::string& s_class_name;
41
42
52 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
53
54
64 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
65
66
67 protected:
68
69 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
70
71
72 private:
73
74 std::string m_minc;
75 std::string m_mexc;
76 std::string m_prescale;
77
78
79 public:
80
81 // attribute names
82
83 inline static const std::string s_minc = "minc";
84 inline static const std::string s_mexc = "mexc";
85 inline static const std::string s_prescale = "prescale";
86
87 static const std::string& __get_minc_str() noexcept { return s_minc; }
88 static const std::string& __get_mexc_str() noexcept { return s_mexc; }
89 static const std::string& __get_prescale_str() noexcept { return s_prescale; }
90
91
98 const std::string&
99 get_minc() const
100 {
101 std::lock_guard scoped_lock(m_mutex);
102 check();
103 check_init();
104 return m_minc;
105 }
106
113 void
114 set_minc(const std::string& value)
115 {
116 std::lock_guard scoped_lock(m_mutex);
117 check();
118 clear();
119 p_obj.set_by_ref(s_minc, value);
120 }
121
122
129 const std::string&
130 get_mexc() const
131 {
132 std::lock_guard scoped_lock(m_mutex);
133 check();
134 check_init();
135 return m_mexc;
136 }
137
144 void
145 set_mexc(const std::string& value)
146 {
147 std::lock_guard scoped_lock(m_mutex);
148 check();
149 clear();
150 p_obj.set_by_ref(s_mexc, value);
151 }
152
153
160 const std::string&
162 {
163 std::lock_guard scoped_lock(m_mutex);
164 check();
165 check_init();
166 return m_prescale;
167 }
168
175 void
176 set_prescale(const std::string& value)
177 {
178 std::lock_guard scoped_lock(m_mutex);
179 check();
180 clear();
182 }
183
184
185 };
186
187 // out stream operator
188
189 inline std::ostream& operator<<(std::ostream& s, const CTBHLT& obj)
190 {
191 return obj.print_object(s);
192 }
193
194 typedef std::vector<const CTBHLT*>::const_iterator CTBHLTIterator;
195
196 }
197}
198
199#endif
CTBHLT(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
void set_prescale(const std::string &value)
Set "prescale" attribute value.
Definition CTBHLT.hpp:176
const std::string & get_prescale() const
Get "prescale" attribute value.
Definition CTBHLT.hpp:161
void set_minc(const std::string &value)
Set "minc" attribute value.
Definition CTBHLT.hpp:114
static const std::string & __get_mexc_str() noexcept
Definition CTBHLT.hpp:88
virtual ~CTBHLT() noexcept
static const std::string s_minc
Definition CTBHLT.hpp:83
friend class conffwk::DalFactory
Definition CTBHLT.hpp:27
static const std::string s_prescale
Definition CTBHLT.hpp:85
static const std::string & __get_prescale_str() noexcept
Definition CTBHLT.hpp:89
virtual void init(bool init_children)
Definition CTBHLT.cpp:63
static const std::string & s_class_name
Definition CTBHLT.hpp:40
void set_mexc(const std::string &value)
Set "mexc" attribute value.
Definition CTBHLT.hpp:145
friend class conffwk::DalObject
Definition CTBHLT.hpp:26
static const std::string & __get_minc_str() noexcept
Definition CTBHLT.hpp:87
const std::string & get_minc() const
Get "minc" attribute value.
Definition CTBHLT.hpp:99
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 CTBHLT.cpp:83
const std::string & get_mexc() const
Get "mexc" attribute value.
Definition CTBHLT.hpp:130
static const std::string s_mexc
Definition CTBHLT.hpp:84
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...
conffwk entry point
double offset
std::vector< constCTBHLT * >::const_iterator CTBHLTIterator
Definition CTBHLT.hpp:194
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.