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
80
81
82 public:
83
84 // attribute names
85
86 inline static const std::string s_metric_collect_time_sample_period = "metric_collect_time_sample_period";
87 inline static const std::string s_metric_collect_toggle_state = "metric_collect_toggle_state";
88
90 static const std::string& __get_metric_collect_toggle_state_str() noexcept { return s_metric_collect_toggle_state; }
91
92
100 uint64_t
102 {
103 std::lock_guard scoped_lock(m_mutex);
104 check();
105 check_init();
107 }
108
116 void
118 {
119 std::lock_guard scoped_lock(m_mutex);
120 check();
121 clear();
123 }
124
125
133 bool
135 {
136 std::lock_guard scoped_lock(m_mutex);
137 check();
138 check_init();
140 }
141
149 void
151 {
152 std::lock_guard scoped_lock(m_mutex);
153 check();
154 clear();
156 }
157
158
159 };
160
161 // out stream operator
162
163 inline std::ostream& operator<<(std::ostream& s, const ProcessingStep& obj)
164 {
165 return obj.print_object(s);
166 }
167
168 typedef std::vector<const ProcessingStep*>::const_iterator ProcessingStepIterator;
169
170 }
171}
172
173#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...
uint64_t get_metric_collect_time_sample_period() const
Get "metric_collect_time_sample_period" attribute value. If metric_collect_toggle_state is true,...
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.
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.
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.
Definition DataStore.hpp:57
msgpack::object obj