DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
NICStatsConf.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _NICStatsConf_0_dunedaq__appmodel_0_appmodel_H_
4#define _NICStatsConf_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 ~NICStatsConf() 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
75
76
77 public:
78
79 // attribute names
80
81 inline static const std::string s_analyze_nth_packet = "analyze_nth_packet";
82 inline static const std::string s_expected_packet_size = "expected_packet_size";
83 inline static const std::string s_expected_seq_id_step = "expected_seq_id_step";
84 inline static const std::string s_expected_timestamp_step = "expected_timestamp_step";
85
86 static const std::string& __get_analyze_nth_packet_str() noexcept { return s_analyze_nth_packet; }
87 static const std::string& __get_expected_packet_size_str() noexcept { return s_expected_packet_size; }
88 static const std::string& __get_expected_seq_id_step_str() noexcept { return s_expected_seq_id_step; }
89 static const std::string& __get_expected_timestamp_step_str() noexcept { return s_expected_timestamp_step; }
90
91
98 int32_t
100 {
101 std::lock_guard scoped_lock(m_mutex);
102 check();
103 check_init();
105 }
106
113 void
115 {
116 std::lock_guard scoped_lock(m_mutex);
117 check();
118 clear();
120 }
121
122
129 uint32_t
131 {
132 std::lock_guard scoped_lock(m_mutex);
133 check();
134 check_init();
136 }
137
144 void
146 {
147 std::lock_guard scoped_lock(m_mutex);
148 check();
149 clear();
151 }
152
153
160 uint32_t
162 {
163 std::lock_guard scoped_lock(m_mutex);
164 check();
165 check_init();
167 }
168
175 void
177 {
178 std::lock_guard scoped_lock(m_mutex);
179 check();
180 clear();
182 }
183
184
191 int32_t
193 {
194 std::lock_guard scoped_lock(m_mutex);
195 check();
196 check_init();
198 }
199
206 void
208 {
209 std::lock_guard scoped_lock(m_mutex);
210 check();
211 clear();
213 }
214
215
216 };
217
218 // out stream operator
219
220 inline std::ostream& operator<<(std::ostream& s, const NICStatsConf& obj)
221 {
222 return obj.print_object(s);
223 }
224
225 typedef std::vector<const NICStatsConf*>::const_iterator NICStatsConfIterator;
226
227 }
228}
229
230#endif
int32_t get_expected_timestamp_step() const
Get "expected_timestamp_step" attribute value.
void set_expected_seq_id_step(uint32_t value)
Set "expected_seq_id_step" attribute value.
static const std::string s_expected_packet_size
static const std::string s_analyze_nth_packet
static const std::string s_expected_timestamp_step
uint32_t get_expected_seq_id_step() const
Get "expected_seq_id_step" attribute value.
static const std::string & __get_expected_seq_id_step_str() noexcept
NICStatsConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) 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...
static const std::string & __get_analyze_nth_packet_str() noexcept
friend class conffwk::DalFactory
virtual void init(bool init_children)
static const std::string & __get_expected_packet_size_str() noexcept
void set_expected_timestamp_step(int32_t value)
Set "expected_timestamp_step" attribute value.
void set_analyze_nth_packet(int32_t value)
Set "analyze_nth_packet" attribute value.
friend class conffwk::DalObject
static const std::string & s_class_name
virtual ~NICStatsConf() noexcept
void set_expected_packet_size(uint32_t value)
Set "expected_packet_size" attribute value.
uint32_t get_expected_packet_size() const
Get "expected_packet_size" attribute value.
static const std::string & __get_expected_timestamp_step_str() noexcept
int32_t get_analyze_nth_packet() const
Get "analyze_nth_packet" attribute value.
static const std::string s_expected_seq_id_step
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< constNICStatsConf * >::const_iterator NICStatsConfIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.