DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CIBCalibrationStream.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _CIBCalibrationStream_0_dunedaq__appmodel_0_appmodel_H_
4#define _CIBCalibrationStream_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
25
26 friend class conffwk::Configuration;
27 friend class conffwk::DalObject;
28 friend class conffwk::DalFactory;
29 friend class conffwk::DalRegistry;
30
31 protected:
32
34 virtual ~CIBCalibrationStream() noexcept;
35 virtual void init(bool init_children);
36
37 public:
38
41 static const std::string& s_class_name;
42
43
53 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
54
55
65 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
66
67
68 protected:
69
70 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
71
72
73 private:
74
75 std::string m_output_directory;
76 uint16_t m_update_period_s;
77
78
79 public:
80
81 // attribute names
82
83 inline static const std::string s_output_directory = "output_directory";
84 inline static const std::string s_update_period_s = "update_period_s";
85
86 static const std::string& __get_output_directory_str() noexcept { return s_output_directory; }
87 static const std::string& __get_update_period_s_str() noexcept { return s_update_period_s; }
88
89
96 const std::string&
98 {
99 std::lock_guard scoped_lock(m_mutex);
100 check();
101 check_init();
102 return m_output_directory;
103 }
104
111 void
112 set_output_directory(const std::string& value)
113 {
114 std::lock_guard scoped_lock(m_mutex);
115 check();
116 clear();
118 }
119
120
127 uint16_t
129 {
130 std::lock_guard scoped_lock(m_mutex);
131 check();
132 check_init();
133 return m_update_period_s;
134 }
135
142 void
143 set_update_period_s(uint16_t value)
144 {
145 std::lock_guard scoped_lock(m_mutex);
146 check();
147 clear();
149 }
150
151
152 };
153
154 // out stream operator
155
156 inline std::ostream& operator<<(std::ostream& s, const CIBCalibrationStream& obj)
157 {
158 return obj.print_object(s);
159 }
160
161 typedef std::vector<const CIBCalibrationStream*>::const_iterator CIBCalibrationStreamIterator;
162
163 }
164}
165
166#endif
uint16_t get_update_period_s() const
Get "update_period_s" attribute value.
CIBCalibrationStream(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...
virtual void init(bool init_children)
static const std::string & __get_output_directory_str() noexcept
const std::string & get_output_directory() const
Get "output_directory" attribute value.
static const std::string & __get_update_period_s_str() noexcept
void set_update_period_s(uint16_t value)
Set "update_period_s" attribute value.
void set_output_directory(const std::string &value)
Set "output_directory" attribute value.
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< constCIBCalibrationStream * >::const_iterator CIBCalibrationStreamIterator
Including Qt Headers.
msgpack::object obj