DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
FixedTimeTCConf.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _FixedTimeTCConf_0_dunedaq__appmodel_0_appmodel_H_
4#define _FixedTimeTCConf_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
20 class FixedTimeTCConf : public virtual dunedaq::conffwk::DalObject {
21
23 friend class conffwk::DalObject;
24 friend class conffwk::DalFactory;
26
27 protected:
28
30 virtual ~FixedTimeTCConf() 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
73
74
75 public:
76
77 // attribute names
78
79 inline static const std::string s_timestamp_start = "timestamp_start";
80 inline static const std::string s_timestamp_end = "timestamp_end";
81
82 static const std::string& __get_timestamp_start_str() noexcept { return s_timestamp_start; }
83 static const std::string& __get_timestamp_end_str() noexcept { return s_timestamp_end; }
84
85
92 uint64_t
94 {
95 std::lock_guard scoped_lock(m_mutex);
96 check();
97 check_init();
98 return m_timestamp_start;
99 }
100
107 void
108 set_timestamp_start(uint64_t value)
109 {
110 std::lock_guard scoped_lock(m_mutex);
111 check();
112 clear();
114 }
115
116
123 uint64_t
125 {
126 std::lock_guard scoped_lock(m_mutex);
127 check();
128 check_init();
129 return m_timestamp_end;
130 }
131
138 void
139 set_timestamp_end(uint64_t value)
140 {
141 std::lock_guard scoped_lock(m_mutex);
142 check();
143 clear();
145 }
146
147
148 };
149
150 // out stream operator
151
152 inline std::ostream& operator<<(std::ostream& s, const FixedTimeTCConf& obj)
153 {
154 return obj.print_object(s);
155 }
156
157 typedef std::vector<const FixedTimeTCConf*>::const_iterator FixedTimeTCConfIterator;
158
159 }
160}
161
162#endif
static const std::string & __get_timestamp_end_str() noexcept
uint64_t get_timestamp_start() const
Get "timestamp_start" attribute value.
static const std::string & __get_timestamp_start_str() noexcept
static const std::string s_timestamp_end
uint64_t get_timestamp_end() const
Get "timestamp_end" attribute value.
static const std::string s_timestamp_start
void set_timestamp_start(uint64_t value)
Set "timestamp_start" attribute value.
static const std::string & s_class_name
void set_timestamp_end(uint64_t value)
Set "timestamp_end" 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...
FixedTimeTCConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
virtual void init(bool init_children)
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< constFixedTimeTCConf * >::const_iterator FixedTimeTCConfIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
The DUNE-DAQ namespace.
msgpack::object obj