DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TRMonRequestorConf.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _TRMonRequestorConf_0_dunedaq__appmodel_0_appmodel_H_
4#define _TRMonRequestorConf_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 ~TRMonRequestorConf() 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
73 uint32_t m_trigger_type_mask;
74
75
76 public:
77
78 // attribute names
79
80 inline static const std::string s_minimum_request_interval_ms = "minimum_request_interval_ms";
81 inline static const std::string s_maximum_outstanding_requests = "maximum_outstanding_requests";
82 inline static const std::string s_trigger_type_mask = "trigger_type_mask";
83
84 static const std::string& __get_minimum_request_interval_ms_str() noexcept { return s_minimum_request_interval_ms; }
85 static const std::string& __get_maximum_outstanding_requests_str() noexcept { return s_maximum_outstanding_requests; }
86 static const std::string& __get_trigger_type_mask_str() noexcept { return s_trigger_type_mask; }
87
88
96 uint32_t
98 {
99 std::lock_guard scoped_lock(m_mutex);
100 check();
101 check_init();
103 }
104
112 void
114 {
115 std::lock_guard scoped_lock(m_mutex);
116 check();
117 clear();
119 }
120
121
129 uint32_t
131 {
132 std::lock_guard scoped_lock(m_mutex);
133 check();
134 check_init();
136 }
137
145 void
147 {
148 std::lock_guard scoped_lock(m_mutex);
149 check();
150 clear();
152 }
153
154
161 uint32_t
163 {
164 std::lock_guard scoped_lock(m_mutex);
165 check();
166 check_init();
167 return m_trigger_type_mask;
168 }
169
176 void
177 set_trigger_type_mask(uint32_t value)
178 {
179 std::lock_guard scoped_lock(m_mutex);
180 check();
181 clear();
183 }
184
185
186 };
187
188 // out stream operator
189
190 inline std::ostream& operator<<(std::ostream& s, const TRMonRequestorConf& obj)
191 {
192 return obj.print_object(s);
193 }
194
195 typedef std::vector<const TRMonRequestorConf*>::const_iterator TRMonRequestorConfIterator;
196
197 }
198}
199
200#endif
void set_minimum_request_interval_ms(uint32_t value)
Set "minimum_request_interval_ms" attribute value. TRMonRequestor will not request TriggerRecords mor...
static const std::string & __get_maximum_outstanding_requests_str() noexcept
virtual void init(bool init_children)
TRMonRequestorConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string & __get_trigger_type_mask_str() noexcept
uint32_t get_trigger_type_mask() const
Get "trigger_type_mask" attribute value.
void set_trigger_type_mask(uint32_t value)
Set "trigger_type_mask" attribute value.
uint32_t get_minimum_request_interval_ms() const
Get "minimum_request_interval_ms" attribute value. TRMonRequestor will not request TriggerRecords mor...
static const std::string s_minimum_request_interval_ms
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...
void set_maximum_outstanding_requests(uint32_t value)
Set "maximum_outstanding_requests" attribute value. The number of requests that the TRMonRequestor wi...
static const std::string s_maximum_outstanding_requests
uint32_t get_maximum_outstanding_requests() const
Get "maximum_outstanding_requests" attribute value. The number of requests that the TRMonRequestor wi...
static const std::string & __get_minimum_request_interval_ms_str() noexcept
void set_by_val(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< constTRMonRequestorConf * >::const_iterator TRMonRequestorConfIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
The DUNE-DAQ namespace.
msgpack::object obj