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 DaqModule;
29 class DetectorToDaqConnection;
30 class Session;
31 }
32}
33
34
35namespace dunedaq {
36 namespace appmodel {
37
39
41 friend class conffwk::DalObject;
42 friend class conffwk::DalFactory;
44
45 protected:
46
48 virtual ~TDECrateApplication() noexcept;
49 virtual void init(bool init_children);
50
51 public:
52
55 static const std::string& s_class_name;
56
57
67 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
68
69
79 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
80
81
82 protected:
83
84 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
85
86
87 private:
88
90 std::vector<const dunedaq::confmodel::DetectorToDaqConnection*> m_detector_connections;
91
92
93 public:
94
95 // relationship names
96
97 inline static const std::string s_tde_amc_module_conf = "tde_amc_module_conf";
98 inline static const std::string s_detector_connections = "detector_connections";
99
100 static const std::string& __get_tde_amc_module_conf_str() noexcept { return s_tde_amc_module_conf; }
101 static const std::string& __get_detector_connections_str() noexcept { return s_detector_connections; }
102
103
112 {
113 std::lock_guard scoped_lock(m_mutex);
114 check();
115 check_init();
117 }
118
119
126 void
128
135 const std::vector<const dunedaq::confmodel::DetectorToDaqConnection*>&
137 {
138 std::lock_guard scoped_lock(m_mutex);
139 check();
140 check_init();
142 }
143
144
151 void
152 set_detector_connections(const std::vector<const dunedaq::confmodel::DetectorToDaqConnection*>& value);
153
154
155 public:
156
157 // user-defined algorithms
158
163 std::vector<const dunedaq::confmodel::DaqModule*> generate_modules(const confmodel::Session*) const override;
164
165
166 virtual std::vector<const Resource*> contained_resources() const override;
167 };
168
169 // out stream operator
170
171 inline std::ostream& operator<<(std::ostream& s, const TDECrateApplication& obj)
172 {
173 return obj.print_object(s);
174 }
175
176 typedef std::vector<const TDECrateApplication*>::const_iterator TDECrateApplicationIterator;
177
178 }
179}
180
181#endif
std::vector< const dunedaq::confmodel::DetectorToDaqConnection * > m_detector_connections
virtual std::vector< const Resource * > contained_resources() const override
std::vector< const dunedaq::confmodel::DaqModule * > generate_modules(const confmodel::Session *) 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.
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
The DUNE-DAQ namespace.
Definition DataStore.hpp:57
msgpack::object obj