DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
FilenameParams.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _FilenameParams_0_dunedaq__appmodel_0_appmodel_H_
4#define _FilenameParams_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 FilenameParams : public virtual dunedaq::conffwk::DalObject {
21
23 friend class conffwk::DalObject;
24 friend class conffwk::DalFactory;
26
27 protected:
28
30 virtual ~FilenameParams() 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
78
79
80 public:
81
82 // attribute names
83
84 inline static const std::string s_file_type_prefix = "file_type_prefix";
85 inline static const std::string s_run_number_prefix = "run_number_prefix";
86 inline static const std::string s_digits_for_run_number = "digits_for_run_number";
87 inline static const std::string s_file_index_prefix = "file_index_prefix";
88 inline static const std::string s_digits_for_file_index = "digits_for_file_index";
89 inline static const std::string s_trigger_number_prefix = "trigger_number_prefix";
90 inline static const std::string s_digits_for_trigger_number = "digits_for_trigger_number";
91
92 static const std::string& __get_file_type_prefix_str() noexcept { return s_file_type_prefix; }
93 static const std::string& __get_run_number_prefix_str() noexcept { return s_run_number_prefix; }
94 static const std::string& __get_digits_for_run_number_str() noexcept { return s_digits_for_run_number; }
95 static const std::string& __get_file_index_prefix_str() noexcept { return s_file_index_prefix; }
96 static const std::string& __get_digits_for_file_index_str() noexcept { return s_digits_for_file_index; }
97 static const std::string& __get_trigger_number_prefix_str() noexcept { return s_trigger_number_prefix; }
98 static const std::string& __get_digits_for_trigger_number_str() noexcept { return s_digits_for_trigger_number; }
99
100
105 struct File_type_prefix {
106 inline static const std::string Raw = "raw";
107 inline static const std::string Tp = "tp";
108 };
109
116 const std::string&
118 {
119 std::lock_guard scoped_lock(m_mutex);
120 check();
121 check_init();
122 return m_file_type_prefix;
123 }
124
131 void
132 set_file_type_prefix(const std::string& value)
133 {
134 std::lock_guard scoped_lock(m_mutex);
135 check();
136 clear();
138 }
139
140
147 const std::string&
149 {
150 std::lock_guard scoped_lock(m_mutex);
151 check();
152 check_init();
153 return m_run_number_prefix;
154 }
155
162 void
163 set_run_number_prefix(const std::string& value)
164 {
165 std::lock_guard scoped_lock(m_mutex);
166 check();
167 clear();
169 }
170
171
178 int32_t
180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 check_init();
185 }
186
193 void
195 {
196 std::lock_guard scoped_lock(m_mutex);
197 check();
198 clear();
200 }
201
202
209 const std::string&
211 {
212 std::lock_guard scoped_lock(m_mutex);
213 check();
214 check_init();
215 return m_file_index_prefix;
216 }
217
224 void
225 set_file_index_prefix(const std::string& value)
226 {
227 std::lock_guard scoped_lock(m_mutex);
228 check();
229 clear();
231 }
232
233
240 int32_t
242 {
243 std::lock_guard scoped_lock(m_mutex);
244 check();
245 check_init();
247 }
248
255 void
257 {
258 std::lock_guard scoped_lock(m_mutex);
259 check();
260 clear();
262 }
263
264
271 const std::string&
273 {
274 std::lock_guard scoped_lock(m_mutex);
275 check();
276 check_init();
278 }
279
286 void
287 set_trigger_number_prefix(const std::string& value)
288 {
289 std::lock_guard scoped_lock(m_mutex);
290 check();
291 clear();
293 }
294
295
302 int32_t
304 {
305 std::lock_guard scoped_lock(m_mutex);
306 check();
307 check_init();
309 }
310
317 void
319 {
320 std::lock_guard scoped_lock(m_mutex);
321 check();
322 clear();
324 }
325
326
327 };
328
329 // out stream operator
330
331 inline std::ostream& operator<<(std::ostream& s, const FilenameParams& obj)
332 {
333 return obj.print_object(s);
334 }
335
336 typedef std::vector<const FilenameParams*>::const_iterator FilenameParamsIterator;
337
338 }
339}
340
341#endif
static const std::string s_run_number_prefix
static const std::string & __get_file_index_prefix_str() noexcept
void set_file_index_prefix(const std::string &value)
Set "file_index_prefix" attribute value.
int32_t get_digits_for_run_number() const
Get "digits_for_run_number" attribute value.
void set_digits_for_run_number(int32_t value)
Set "digits_for_run_number" attribute value.
int32_t get_digits_for_trigger_number() const
Get "digits_for_trigger_number" attribute value.
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...
static const std::string & __get_trigger_number_prefix_str() noexcept
static const std::string s_digits_for_run_number
static const std::string s_file_type_prefix
static const std::string & __get_file_type_prefix_str() noexcept
void set_run_number_prefix(const std::string &value)
Set "run_number_prefix" attribute value.
static const std::string s_trigger_number_prefix
const std::string & get_file_index_prefix() const
Get "file_index_prefix" attribute value.
void set_trigger_number_prefix(const std::string &value)
Set "trigger_number_prefix" attribute value.
static const std::string & __get_digits_for_trigger_number_str() noexcept
static const std::string & __get_run_number_prefix_str() noexcept
void set_digits_for_trigger_number(int32_t value)
Set "digits_for_trigger_number" attribute value.
static const std::string s_digits_for_trigger_number
const std::string & get_run_number_prefix() const
Get "run_number_prefix" attribute value.
static const std::string & __get_digits_for_file_index_str() noexcept
void set_digits_for_file_index(int32_t value)
Set "digits_for_file_index" attribute value.
const std::string & get_trigger_number_prefix() const
Get "trigger_number_prefix" attribute value.
static const std::string & s_class_name
int32_t get_digits_for_file_index() const
Get "digits_for_file_index" attribute value.
void set_file_type_prefix(const std::string &value)
Set "file_type_prefix" attribute value.
static const std::string s_digits_for_file_index
FilenameParams(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
const std::string & get_file_type_prefix() const
Get "file_type_prefix" attribute value.
virtual void init(bool init_children)
static const std::string & __get_digits_for_run_number_str() noexcept
static const std::string s_file_index_prefix
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.
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< constFilenameParams * >::const_iterator FilenameParamsIterator
Including Qt Headers.