DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TDECrateApplication.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _TDECrateApplication_0_dunedaq__appmodel_0_appmodel_H_
4#define _TDECrateApplication_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
20
21 // forward declaration for classes used in relationships and algorithms
22
23namespace dunedaq {
24 namespace appmodel {
25 class TDEAMCModuleConf;
26 }
27 namespace confmodel {
28 class DetectorToDaqConnection;
29 }
30}
31
32
33namespace dunedaq {
34 namespace appmodel {
35
37
39 friend class conffwk::DalObject;
40 friend class conffwk::DalFactory;
42
43 protected:
44
46 virtual ~TDECrateApplication() noexcept;
47 virtual void init(bool init_children);
48
49 public:
50
53 static const std::string& s_class_name;
54
55
65 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
66
67
77 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
78
79
80 protected:
81
82 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
83
84
85 private:
86
88 std::vector<const dunedaq::confmodel::DetectorToDaqConnection*> m_detector_connections;
89
90
91 public:
92
93 // relationship names
94
95 inline static const std::string s_tde_amc_module_conf = "tde_amc_module_conf";
96 inline static const std::string s_detector_connections = "detector_connections";
97
98 static const std::string& __get_tde_amc_module_conf_str() noexcept { return s_tde_amc_module_conf; }
99 static const std::string& __get_detector_connections_str() noexcept { return s_detector_connections; }
100
101
110 {
111 std::lock_guard scoped_lock(m_mutex);
112 check();
113 check_init();
115 }
116
117
124 void
126
133 const std::vector<const dunedaq::confmodel::DetectorToDaqConnection*>&
135 {
136 std::lock_guard scoped_lock(m_mutex);
137 check();
138 check_init();
140 }
141
142
149 void
150 set_detector_connections(const std::vector<const dunedaq::confmodel::DetectorToDaqConnection*>& value);
151
152
153 public:
154
155 // user-defined algorithms
156
161 void generate_modules(std::shared_ptr<appmodel::ConfigurationHelper>) const override;
162
163
164 virtual std::vector<const Resource*> contained_resources() const override;
165 };
166
167 // out stream operator
168
169 inline std::ostream& operator<<(std::ostream& s, const TDECrateApplication& obj)
170 {
171 return obj.print_object(s);
172 }
173
174 typedef std::vector<const TDECrateApplication*>::const_iterator TDECrateApplicationIterator;
175
176 }
177}
178
179#endif
std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > m_detector_connections
virtual std::vector< const Resource * > contained_resources() const override
static const std::string & __get_detector_connections_str() 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...
void set_detector_connections(const std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > &value)
Set "detector_connections" relationship value.
void set_tde_amc_module_conf(const dunedaq::appmodel::TDEAMCModuleConf *value)
Set "tde_amc_module_conf" relationship value.
const dunedaq::appmodel::TDEAMCModuleConf * get_tde_amc_module_conf() const
Get "tde_amc_module_conf" relationship value.
void generate_modules(std::shared_ptr< appmodel::ConfigurationHelper >) const override
virtual void init(bool init_children)
const std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > & get_detector_connections() const
Get "detector_connections" relationship value.
static const std::string & __get_tde_amc_module_conf_str() noexcept
const dunedaq::appmodel::TDEAMCModuleConf * m_tde_amc_module_conf
TDECrateApplication(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...
conffwk entry point
double offset
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constTDECrateApplication * >::const_iterator TDECrateApplicationIterator
Including Qt Headers.
msgpack::object obj