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 inline static const std::string Trmon = "trmon";
109 };
110
117 const std::string&
119 {
120 std::lock_guard scoped_lock(m_mutex);
121 check();
122 check_init();
123 return m_file_type_prefix;
124 }
125
132 void
133 set_file_type_prefix(const std::string& value)
134 {
135 std::lock_guard scoped_lock(m_mutex);
136 check();
137 clear();
139 }
140
141
148 const std::string&
150 {
151 std::lock_guard scoped_lock(m_mutex);
152 check();
153 check_init();
154 return m_run_number_prefix;
155 }
156
163 void
164 set_run_number_prefix(const std::string& value)
165 {
166 std::lock_guard scoped_lock(m_mutex);
167 check();
168 clear();
170 }
171
172
179 int32_t
181 {
182 std::lock_guard scoped_lock(m_mutex);
183 check();
184 check_init();
186 }
187
194 void
196 {
197 std::lock_guard scoped_lock(m_mutex);
198 check();
199 clear();
201 }
202
203
210 const std::string&
212 {
213 std::lock_guard scoped_lock(m_mutex);
214 check();
215 check_init();
216 return m_file_index_prefix;
217 }
218
225 void
226 set_file_index_prefix(const std::string& value)
227 {
228 std::lock_guard scoped_lock(m_mutex);
229 check();
230 clear();
232 }
233
234
241 int32_t
243 {
244 std::lock_guard scoped_lock(m_mutex);
245 check();
246 check_init();
248 }
249
256 void
258 {
259 std::lock_guard scoped_lock(m_mutex);
260 check();
261 clear();
263 }
264
265
272 const std::string&
274 {
275 std::lock_guard scoped_lock(m_mutex);
276 check();
277 check_init();
279 }
280
287 void
288 set_trigger_number_prefix(const std::string& value)
289 {
290 std::lock_guard scoped_lock(m_mutex);
291 check();
292 clear();
294 }
295
296
303 int32_t
305 {
306 std::lock_guard scoped_lock(m_mutex);
307 check();
308 check_init();
310 }
311
318 void
320 {
321 std::lock_guard scoped_lock(m_mutex);
322 check();
323 clear();
325 }
326
327
328 };
329
330 // out stream operator
331
332 inline std::ostream& operator<<(std::ostream& s, const FilenameParams& obj)
333 {
334 return obj.print_object(s);
335 }
336
337 typedef std::vector<const FilenameParams*>::const_iterator FilenameParamsIterator;
338
339 }
340}
341
342#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
The DUNE-DAQ namespace.
msgpack::object obj