DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TDEAMCModule.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _TDEAMCModule_0_dunedaq__appmodel_0_appmodel_H_
4#define _TDEAMCModule_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 appmodel {
24 class TdeAmcDetDataSender;
25 }
26}
27
28
29namespace dunedaq {
30 namespace appmodel {
31
32 class TDEAMCModule : public dunedaq::confmodel::DaqModule {
33
35 friend class conffwk::DalObject;
36 friend class conffwk::DalFactory;
38
39 protected:
40
42 virtual ~TDEAMCModule() 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
84
85
86 public:
87
88 // relationship names
89
90 inline static const std::string s_amc = "amc";
91
92 static const std::string& __get_amc_str() noexcept { return s_amc; }
93
94
103 get_amc() const
104 {
105 std::lock_guard scoped_lock(m_mutex);
106 check();
107 check_init();
108 if (!m_amc)
109 {
110 std::ostringstream text;
111 text << "relationship \"" << s_amc << "\" of object " << this << " is not set";
112 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
113 }
114 return m_amc;
115 }
116
117
125 void
127
128 };
129
130 // out stream operator
131
132 inline std::ostream& operator<<(std::ostream& s, const TDEAMCModule& obj)
133 {
134 return obj.print_object(s);
135 }
136
137 typedef std::vector<const TDEAMCModule*>::const_iterator TDEAMCModuleIterator;
138
139 }
140}
141
142#endif
#define ERS_HERE
static const std::string s_amc
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...
void set_amc(const dunedaq::appmodel::TdeAmcDetDataSender *value)
Set "amc" relationship value. AMC to control.
virtual void init(bool init_children)
static const std::string & s_class_name
const dunedaq::appmodel::TdeAmcDetDataSender * get_amc() const
Get "amc" relationship value. AMC to control.
friend class conffwk::DalFactory
static const std::string & __get_amc_str() noexcept
friend class conffwk::DalObject
const dunedaq::appmodel::TdeAmcDetDataSender * m_amc
TDEAMCModule(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
The base class for any generated DAL object.
Definition DalObject.hpp:45
std::mutex m_mutex
Used to protect changes of DAL 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< constTDEAMCModule * >::const_iterator TDEAMCModuleIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.