DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ProcessingStep.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _ProcessingStep_0_dunedaq__appmodel_0_appmodel_H_
4#define _ProcessingStep_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
28
29 friend class conffwk::Configuration;
30 friend class conffwk::DalObject;
31 friend class conffwk::DalFactory;
32 friend class conffwk::DalRegistry;
33
34 protected:
35
37 virtual ~ProcessingStep() noexcept;
38 virtual void init(bool init_children);
39
40 public:
41
44 static const std::string& s_class_name;
45
46
56 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
57
58
68 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
69
70
71 protected:
72
73 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
74
75
76 private:
77
81
82
83 public:
84
85 // attribute names
86
87 inline static const std::string s_metric_collect_time_sample_period = "metric_collect_time_sample_period";
88 inline static const std::string s_metric_collect_toggle_state = "metric_collect_toggle_state";
89 inline static const std::string s_requested_internal_states = "requested_internal_states";
90
92 static const std::string& __get_metric_collect_toggle_state_str() noexcept { return s_metric_collect_toggle_state; }
93 static const std::string& __get_requested_internal_states_str() noexcept { return s_requested_internal_states; }
94
95
103 uint64_t
105 {
106 std::lock_guard scoped_lock(m_mutex);
107 check();
108 check_init();
110 }
111
119 void
121 {
122 std::lock_guard scoped_lock(m_mutex);
123 check();
124 clear();
126 }
127
128
136 bool
138 {
139 std::lock_guard scoped_lock(m_mutex);
140 check();
141 check_init();
143 }
144
152 void
154 {
155 std::lock_guard scoped_lock(m_mutex);
156 check();
157 clear();
159 }
160
161
169 const std::string&
171 {
172 std::lock_guard scoped_lock(m_mutex);
173 check();
174 check_init();
176 }
177
185 void
186 set_requested_internal_states(const std::string& value)
187 {
188 std::lock_guard scoped_lock(m_mutex);
189 check();
190 clear();
192 }
193
194
195 };
196
197 // out stream operator
198
199 inline std::ostream& operator<<(std::ostream& s, const ProcessingStep& obj)
200 {
201 return obj.print_object(s);
202 }
203
204 typedef std::vector<const ProcessingStep*>::const_iterator ProcessingStepIterator;
205
206 }
207}
208
209#endif
static const std::string s_metric_collect_toggle_state
void set_metric_collect_time_sample_period(uint64_t value)
Set "metric_collect_time_sample_period" attribute value. If metric_collect_toggle_state is true,...
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_requested_internal_states(const std::string &value)
Set "requested_internal_states" attribute value. config string for internal states to be collected.
uint64_t get_metric_collect_time_sample_period() const
Get "metric_collect_time_sample_period" attribute value. If metric_collect_toggle_state is true,...
static const std::string & __get_requested_internal_states_str() noexcept
static const std::string s_requested_internal_states
ProcessingStep(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
bool get_metric_collect_toggle_state() const
Get "metric_collect_toggle_state" attribute value. Whether metric storaging function is enabled.
const std::string & get_requested_internal_states() const
Get "requested_internal_states" attribute value. config string for internal states to be collected.
void set_metric_collect_toggle_state(bool value)
Set "metric_collect_toggle_state" attribute value. Whether metric storaging function is enabled.
static const std::string & __get_metric_collect_toggle_state_str() noexcept
virtual ~ProcessingStep() noexcept
static const std::string s_metric_collect_time_sample_period
static const std::string & __get_metric_collect_time_sample_period_str() noexcept
virtual void init(bool init_children)
static const std::string & s_class_name
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::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constProcessingStep * >::const_iterator ProcessingStepIterator
The DUNE-DAQ namespace.
msgpack::object obj