DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
FelixCardControllerModule.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _FelixCardControllerModule_0_dunedaq__appmodel_0_appmodel_H_
4#define _FelixCardControllerModule_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
20 // forward declaration for classes used in relationships and algorithms
21
22namespace dunedaq {
23 namespace confmodel {
24 class DetectorToDaqConnection;
25 }
26}
27
28
29namespace dunedaq {
30 namespace appmodel {
31
32 class FelixCardControllerModule : public dunedaq::confmodel::DaqModule {
33
35 friend class conffwk::DalObject;
36 friend class conffwk::DalFactory;
38
39 protected:
40
42 virtual ~FelixCardControllerModule() noexcept;
43 virtual void init(bool init_children);
44
45 public:
46
49 static const std::string& s_class_name;
50
51
61 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
62
63
73 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
74
75
76 protected:
77
78 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
79
80
81 private:
82
85 std::vector<const dunedaq::confmodel::DetectorToDaqConnection*> m_controls;
86
87
88 public:
89
90 // attribute names
91
92 inline static const std::string s_super_chunk_size = "super_chunk_size";
93 inline static const std::string s_emu_fanout = "emu_fanout";
94
95 static const std::string& __get_super_chunk_size_str() noexcept { return s_super_chunk_size; }
96 static const std::string& __get_emu_fanout_str() noexcept { return s_emu_fanout; }
97
98
106 uint16_t
108 {
109 std::lock_guard scoped_lock(m_mutex);
110 check();
111 check_init();
112 return m_super_chunk_size;
113 }
114
122 void
123 set_super_chunk_size(uint16_t value)
124 {
125 std::lock_guard scoped_lock(m_mutex);
126 check();
127 clear();
129 }
130
131
139 bool
141 {
142 std::lock_guard scoped_lock(m_mutex);
143 check();
144 check_init();
145 return m_emu_fanout;
146 }
147
155 void
156 set_emu_fanout(bool value)
157 {
158 std::lock_guard scoped_lock(m_mutex);
159 check();
160 clear();
162 }
163
164
165 // relationship names
166
167 inline static const std::string s_controls = "controls";
168
169 static const std::string& __get_controls_str() noexcept { return s_controls; }
170
171
178 const std::vector<const dunedaq::confmodel::DetectorToDaqConnection*>&
180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 check_init();
184 if (m_controls.empty())
185 {
186 std::ostringstream text;
187 text << "relationship \"" << s_controls << "\" of object " << this << " is empty";
188 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
189 }
190 return m_controls;
191 }
192
193
200 void
201 set_controls(const std::vector<const dunedaq::confmodel::DetectorToDaqConnection*>& value);
202
203 };
204
205 // out stream operator
206
207 inline std::ostream& operator<<(std::ostream& s, const FelixCardControllerModule& obj)
208 {
209 return obj.print_object(s);
210 }
211
212 typedef std::vector<const FelixCardControllerModule*>::const_iterator FelixCardControllerModuleIterator;
213
214 }
215}
216
217#endif
#define ERS_HERE
std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > m_controls
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...
uint16_t get_super_chunk_size() const
Get "super_chunk_size" attribute value. Number of chunks in superchunk.
void set_controls(const std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > &value)
Set "controls" relationship value.
const std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > & get_controls() const
Get "controls" relationship value.
static const std::string & __get_controls_str() noexcept
void set_emu_fanout(bool value)
Set "emu_fanout" attribute value. Enable emulator.
void set_super_chunk_size(uint16_t value)
Set "super_chunk_size" attribute value. Number of chunks in superchunk.
static const std::string & __get_super_chunk_size_str() noexcept
static const std::string & __get_emu_fanout_str() noexcept
FelixCardControllerModule(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
bool get_emu_fanout() const
Get "emu_fanout" attribute value. Enable emulator.
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...
Generic configuration exception.
conffwk entry point
double offset
std::vector< constFelixCardControllerModule * >::const_iterator FelixCardControllerModuleIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.