DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
HSIEventToTCApplication.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _HSIEventToTCApplication_0_dunedaq__appmodel_0_appmodel_H_
4#define _HSIEventToTCApplication_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 HSI2TCTranslatorConf;
26 }
27}
28
29
30namespace dunedaq {
31 namespace appmodel {
32
34
35 friend class conffwk::Configuration;
36 friend class conffwk::DalObject;
37 friend class conffwk::DalFactory;
38 friend class conffwk::DalRegistry;
39
40 protected:
41
43 virtual ~HSIEventToTCApplication() noexcept;
44 virtual void init(bool init_children);
45
46 public:
47
50 static const std::string& s_class_name;
51
52
62 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
63
64
74 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
75
76
77 protected:
78
79 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
80
81
82 private:
83
85
86
87 public:
88
89 // relationship names
90
91 inline static const std::string s_hsevent_to_tc_conf = "hsevent_to_tc_conf";
92
93 static const std::string& __get_hsevent_to_tc_conf_str() noexcept { return s_hsevent_to_tc_conf; }
94
95
104 {
105 std::lock_guard scoped_lock(m_mutex);
106 check();
107 check_init();
109 {
110 std::ostringstream text;
111 text << "relationship \"" << s_hsevent_to_tc_conf << "\" of object " << this << " is not set";
112 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
113 }
115 }
116
117
124 void
126
127
128 public:
129
130 // user-defined algorithms
131
136 void generate_modules(std::shared_ptr<appmodel::ConfigurationHelper>) const override;
137 };
138
139 // out stream operator
140
141 inline std::ostream& operator<<(std::ostream& s, const HSIEventToTCApplication& obj)
142 {
143 return obj.print_object(s);
144 }
145
146 typedef std::vector<const HSIEventToTCApplication*>::const_iterator HSIEventToTCApplicationIterator;
147
148 }
149}
150
151#endif
#define ERS_HERE
HSIEventToTCApplication(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string & __get_hsevent_to_tc_conf_str() noexcept
void set_hsevent_to_tc_conf(const dunedaq::appmodel::HSI2TCTranslatorConf *value)
Set "hsevent_to_tc_conf" relationship 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...
void generate_modules(std::shared_ptr< appmodel::ConfigurationHelper >) const override
const dunedaq::appmodel::HSI2TCTranslatorConf * get_hsevent_to_tc_conf() const
Get "hsevent_to_tc_conf" relationship value.
const dunedaq::appmodel::HSI2TCTranslatorConf * m_hsevent_to_tc_conf
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::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constHSIEventToTCApplication * >::const_iterator HSIEventToTCApplicationIterator
Including Qt Headers.
msgpack::object obj