DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SNBFileSourceParameters.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _SNBFileSourceParameters_0_dunedaq__appmodel_0_appmodel_H_
4#define _SNBFileSourceParameters_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 ~SNBFileSourceParameters() 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
71 std::vector<std::string> m_data_files;
72 uint32_t m_input_buffer_size;
74
75
76 public:
77
78 // attribute names
79
80 inline static const std::string s_data_files = "data_files";
81 inline static const std::string s_input_buffer_size = "input_buffer_size";
82 inline static const std::string s_file_compression_algorithm = "file_compression_algorithm";
83
84 static const std::string& __get_data_files_str() noexcept { return s_data_files; }
85 static const std::string& __get_input_buffer_size_str() noexcept { return s_input_buffer_size; }
86 static const std::string& __get_file_compression_algorithm_str() noexcept { return s_file_compression_algorithm; }
87
88
95 const std::vector<std::string>&
97 {
98 std::lock_guard scoped_lock(m_mutex);
99 check();
100 check_init();
101 return m_data_files;
102 }
103
110 void
111 set_data_files(const std::vector<std::string>& value)
112 {
113 std::lock_guard scoped_lock(m_mutex);
114 check();
115 clear();
117 }
118
119
126 uint32_t
128 {
129 std::lock_guard scoped_lock(m_mutex);
130 check();
131 check_init();
132 return m_input_buffer_size;
133 }
134
141 void
142 set_input_buffer_size(uint32_t value)
143 {
144 std::lock_guard scoped_lock(m_mutex);
145 check();
146 clear();
148 }
149
150
158 const std::string&
160 {
161 std::lock_guard scoped_lock(m_mutex);
162 check();
163 check_init();
165 }
166
174 void
175 set_file_compression_algorithm(const std::string& value)
176 {
177 std::lock_guard scoped_lock(m_mutex);
178 check();
179 clear();
181 }
182
183
184 };
185
186 // out stream operator
187
188 inline std::ostream& operator<<(std::ostream& s, const SNBFileSourceParameters& obj)
189 {
190 return obj.print_object(s);
191 }
192
193 typedef std::vector<const SNBFileSourceParameters*>::const_iterator SNBFileSourceParametersIterator;
194
195 }
196}
197
198#endif
SNBFileSourceParameters(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string & __get_data_files_str() noexcept
static const std::string & __get_file_compression_algorithm_str() noexcept
static const std::string & __get_input_buffer_size_str() noexcept
void set_file_compression_algorithm(const std::string &value)
Set "file_compression_algorithm" attribute value. Compression algorithm used when writing data.
const std::string & get_file_compression_algorithm() const
Get "file_compression_algorithm" attribute value. Compression algorithm used when writing data.
const std::vector< std::string > & get_data_files() const
Get "data_files" attribute value.
void set_input_buffer_size(uint32_t value)
Set "input_buffer_size" attribute value.
uint32_t get_input_buffer_size() const
Get "input_buffer_size" attribute value.
void set_data_files(const std::vector< std::string > &value)
Set "data_files" 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...
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< constSNBFileSourceParameters * >::const_iterator SNBFileSourceParametersIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
The DUNE-DAQ namespace.
msgpack::object obj