DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
FakeDataProdConf.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _FakeDataProdConf_0_dunedaq__appmodel_0_appmodel_H_
4#define _FakeDataProdConf_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
23 class FakeDataProdConf : public dunedaq::confmodel::ResourceBase {
24
26 friend class conffwk::DalObject;
27 friend class conffwk::DalFactory;
29
30 protected:
31
33 virtual ~FakeDataProdConf() 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
75 uint32_t m_source_id;
77 uint32_t m_frame_size;
80
81
82 public:
83
84 // attribute names
85
86 inline static const std::string s_system_type = "system_type";
87 inline static const std::string s_source_id = "source_id";
88 inline static const std::string s_time_tick_diff = "time_tick_diff";
89 inline static const std::string s_frame_size = "frame_size";
90 inline static const std::string s_response_delay = "response_delay";
91 inline static const std::string s_fragment_type = "fragment_type";
92
93 static const std::string& __get_system_type_str() noexcept { return s_system_type; }
94 static const std::string& __get_source_id_str() noexcept { return s_source_id; }
95 static const std::string& __get_time_tick_diff_str() noexcept { return s_time_tick_diff; }
96 static const std::string& __get_frame_size_str() noexcept { return s_frame_size; }
97 static const std::string& __get_response_delay_str() noexcept { return s_response_delay; }
98 static const std::string& __get_fragment_type_str() noexcept { return s_fragment_type; }
99
100
108 const std::string&
110 {
111 std::lock_guard scoped_lock(m_mutex);
112 check();
113 check_init();
114 return m_system_type;
115 }
116
124 void
125 set_system_type(const std::string& value)
126 {
127 std::lock_guard scoped_lock(m_mutex);
128 check();
129 clear();
131 }
132
133
141 uint32_t
143 {
144 std::lock_guard scoped_lock(m_mutex);
145 check();
146 check_init();
147 return m_source_id;
148 }
149
157 void
158 set_source_id(uint32_t value)
159 {
160 std::lock_guard scoped_lock(m_mutex);
161 check();
162 clear();
164 }
165
166
174 uint32_t
176 {
177 std::lock_guard scoped_lock(m_mutex);
178 check();
179 check_init();
180 return m_time_tick_diff;
181 }
182
190 void
191 set_time_tick_diff(uint32_t value)
192 {
193 std::lock_guard scoped_lock(m_mutex);
194 check();
195 clear();
197 }
198
199
207 uint32_t
209 {
210 std::lock_guard scoped_lock(m_mutex);
211 check();
212 check_init();
213 return m_frame_size;
214 }
215
223 void
224 set_frame_size(uint32_t value)
225 {
226 std::lock_guard scoped_lock(m_mutex);
227 check();
228 clear();
230 }
231
232
240 uint32_t
242 {
243 std::lock_guard scoped_lock(m_mutex);
244 check();
245 check_init();
246 return m_response_delay;
247 }
248
256 void
257 set_response_delay(uint32_t value)
258 {
259 std::lock_guard scoped_lock(m_mutex);
260 check();
261 clear();
263 }
264
265
273 const std::string&
275 {
276 std::lock_guard scoped_lock(m_mutex);
277 check();
278 check_init();
279 return m_fragment_type;
280 }
281
289 void
290 set_fragment_type(const std::string& value)
291 {
292 std::lock_guard scoped_lock(m_mutex);
293 check();
294 clear();
296 }
297
298
299 };
300
301 // out stream operator
302
303 inline std::ostream& operator<<(std::ostream& s, const FakeDataProdConf& obj)
304 {
305 return obj.print_object(s);
306 }
307
308 typedef std::vector<const FakeDataProdConf*>::const_iterator FakeDataProdConfIterator;
309
310 }
311}
312
313#endif
static const std::string & __get_time_tick_diff_str() noexcept
static const std::string & __get_source_id_str() noexcept
const std::string & get_fragment_type() const
Get "fragment_type" attribute value. Fragment type of the response.
static const std::string & s_class_name
uint32_t get_source_id() const
Get "source_id" attribute value. The SourceID of this link.
void set_frame_size(uint32_t value)
Set "frame_size" attribute value. The size of a fake frame.
void set_time_tick_diff(uint32_t value)
Set "time_tick_diff" attribute value. Time tick difference between frames.
static const std::string & __get_frame_size_str() noexcept
static const std::string s_frame_size
static const std::string & __get_fragment_type_str() noexcept
void set_system_type(const std::string &value)
Set "system_type" attribute value. The system type of the link.
void set_fragment_type(const std::string &value)
Set "fragment_type" attribute value. Fragment type of the response.
uint32_t get_time_tick_diff() const
Get "time_tick_diff" attribute value. Time tick difference between frames.
static const std::string & __get_system_type_str() 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...
void set_response_delay(uint32_t value)
Set "response_delay" attribute value. Wait for this amount of ns before sending the fragment.
static const std::string s_time_tick_diff
static const std::string s_system_type
static const std::string s_fragment_type
uint32_t get_frame_size() const
Get "frame_size" attribute value. The size of a fake frame.
FakeDataProdConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
uint32_t get_response_delay() const
Get "response_delay" attribute value. Wait for this amount of ns before sending the fragment.
static const std::string s_response_delay
virtual void init(bool init_children)
void set_source_id(uint32_t value)
Set "source_id" attribute value. The SourceID of this link.
const std::string & get_system_type() const
Get "system_type" attribute value. The system type of the link.
static const std::string & __get_response_delay_str() noexcept
void set_by_val(const std::string &name, T value)
Set attribute value.
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< constFakeDataProdConf * >::const_iterator FakeDataProdConfIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.