DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CIBTrigger.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _CIBTrigger_0_dunedaq__appmodel_0_appmodel_H_
4#define _CIBTrigger_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
24 class CIBTrigger : public virtual dunedaq::conffwk::DalObject {
25
27 friend class conffwk::DalObject;
28 friend class conffwk::DalFactory;
30
31 protected:
32
34 virtual ~CIBTrigger() 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
78
79
80 public:
81
82 // attribute names
83
84 inline static const std::string s_trigger_id = "trigger_id";
85 inline static const std::string s_trigger_bit = "trigger_bit";
86 inline static const std::string s_description = "description";
87
88 static const std::string& __get_trigger_id_str() noexcept { return s_trigger_id; }
89 static const std::string& __get_trigger_bit_str() noexcept { return s_trigger_bit; }
90 static const std::string& __get_description_str() noexcept { return s_description; }
91
92
99 const std::string&
101 {
102 std::lock_guard scoped_lock(m_mutex);
103 check();
104 check_init();
105 return m_trigger_id;
106 }
107
114 void
115 set_trigger_id(const std::string& value)
116 {
117 std::lock_guard scoped_lock(m_mutex);
118 check();
119 clear();
121 }
122
123
130 const std::string&
132 {
133 std::lock_guard scoped_lock(m_mutex);
134 check();
135 check_init();
136 return m_trigger_bit;
137 }
138
145 void
146 set_trigger_bit(const std::string& value)
147 {
148 std::lock_guard scoped_lock(m_mutex);
149 check();
150 clear();
152 }
153
154
161 const std::string&
163 {
164 std::lock_guard scoped_lock(m_mutex);
165 check();
166 check_init();
167 return m_description;
168 }
169
176 void
177 set_description(const std::string& value)
178 {
179 std::lock_guard scoped_lock(m_mutex);
180 check();
181 clear();
183 }
184
185
186 };
187
188 // out stream operator
189
190 inline std::ostream& operator<<(std::ostream& s, const CIBTrigger& obj)
191 {
192 return obj.print_object(s);
193 }
194
195 typedef std::vector<const CIBTrigger*>::const_iterator CIBTriggerIterator;
196
197 }
198}
199
200#endif
static const std::string & s_class_name
virtual void init(bool init_children)
const std::string & get_description() const
Get "description" 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...
CIBTrigger(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
void set_trigger_id(const std::string &value)
Set "trigger_id" attribute value.
static const std::string & __get_trigger_bit_str() noexcept
static const std::string s_trigger_bit
friend class conffwk::DalFactory
static const std::string & __get_trigger_id_str() noexcept
const std::string & get_trigger_bit() const
Get "trigger_bit" attribute value.
static const std::string & __get_description_str() noexcept
friend class conffwk::DalObject
virtual ~CIBTrigger() noexcept
const std::string & get_trigger_id() const
Get "trigger_id" attribute value.
static const std::string s_description
static const std::string s_trigger_id
void set_trigger_bit(const std::string &value)
Set "trigger_bit" attribute value.
void set_description(const std::string &value)
Set "description" 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::vector< constCIBTrigger * >::const_iterator CIBTriggerIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.
msgpack::object obj