DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
src
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
13
#include "
conffwk/Configuration.hpp
"
14
#include "
conffwk/DalObject.hpp
"
15
16
// include files for classes used in inheritance hierarchy
17
18
#include "
confmodel/Resource.hpp
"
19
#include "
appmodel/SmartDaqApplication.hpp
"
20
21
// forward declaration for classes used in relationships and algorithms
22
23
namespace
dunedaq
{
24
namespace
appmodel
{
25
class
HSI2TCTranslatorConf
;
26
}
27
}
28
29
30
namespace
dunedaq
{
31
namespace
appmodel
{
32
33
class
HSIEventToTCApplication
:
public
dunedaq::confmodel::Resource,
public
dunedaq::appmodel::SmartDaqApplication {
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
42
HSIEventToTCApplication
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
43
virtual
~HSIEventToTCApplication
() noexcept;
44
virtual
void
init
(
bool
init_children);
45
46
public:
47
49
50
static const
std
::
string
&
s_class_name
;
51
52
61
62
virtual
void
print
(
unsigned
int
offset
,
bool
print_header,
std
::ostream& s) const;
63
64
73
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
84
const
dunedaq
::
appmodel
::
HSI2TCTranslatorConf
*
m_hsevent_to_tc_conf
;
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
101
102
const
dunedaq::appmodel::HSI2TCTranslatorConf
*
103
get_hsevent_to_tc_conf
()
const
104
{
105
std::lock_guard scoped_lock(
m_mutex
);
106
check
();
107
check_init
();
108
if
(!
m_hsevent_to_tc_conf
)
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
}
114
return
m_hsevent_to_tc_conf
;
115
}
116
117
123
124
void
125
set_hsevent_to_tc_conf
(
const
dunedaq::appmodel::HSI2TCTranslatorConf
* value);
126
127
128
public
:
129
130
// user-defined algorithms
131
135
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
DalObject.hpp
ERS_HERE
#define ERS_HERE
Definition
LocalContext.hpp:141
dunedaq::appmodel::HSI2TCTranslatorConf
Definition
HSI2TCTranslatorConf.hpp:32
dunedaq::appmodel::HSIEventToTCApplication
Definition
HSIEventToTCApplication.hpp:33
dunedaq::appmodel::HSIEventToTCApplication::DalRegistry
friend class conffwk::DalRegistry
Definition
HSIEventToTCApplication.hpp:38
dunedaq::appmodel::HSIEventToTCApplication::HSIEventToTCApplication
HSIEventToTCApplication(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
dunedaq::appmodel::HSIEventToTCApplication::__get_hsevent_to_tc_conf_str
static const std::string & __get_hsevent_to_tc_conf_str() noexcept
Definition
HSIEventToTCApplication.hpp:93
dunedaq::appmodel::HSIEventToTCApplication::set_hsevent_to_tc_conf
void set_hsevent_to_tc_conf(const dunedaq::appmodel::HSI2TCTranslatorConf *value)
Set "hsevent_to_tc_conf" relationship value.
dunedaq::appmodel::HSIEventToTCApplication::get
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...
Definition
HSIEventToTCApplication.cpp:88
dunedaq::appmodel::HSIEventToTCApplication::init
virtual void init(bool init_children)
Definition
HSIEventToTCApplication.cpp:69
dunedaq::appmodel::HSIEventToTCApplication::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the HSIEventToTCApplication object.
Definition
HSIEventToTCApplication.cpp:42
dunedaq::appmodel::HSIEventToTCApplication::DalFactory
friend class conffwk::DalFactory
Definition
HSIEventToTCApplication.hpp:37
dunedaq::appmodel::HSIEventToTCApplication::s_class_name
static const std::string & s_class_name
Definition
HSIEventToTCApplication.hpp:50
dunedaq::appmodel::HSIEventToTCApplication::DalObject
friend class conffwk::DalObject
Definition
HSIEventToTCApplication.hpp:36
dunedaq::appmodel::HSIEventToTCApplication::generate_modules
void generate_modules(std::shared_ptr< appmodel::ConfigurationHelper >) const override
dunedaq::appmodel::HSIEventToTCApplication::get_hsevent_to_tc_conf
const dunedaq::appmodel::HSI2TCTranslatorConf * get_hsevent_to_tc_conf() const
Get "hsevent_to_tc_conf" relationship value.
Definition
HSIEventToTCApplication.hpp:103
dunedaq::appmodel::HSIEventToTCApplication::m_hsevent_to_tc_conf
const dunedaq::appmodel::HSI2TCTranslatorConf * m_hsevent_to_tc_conf
Definition
HSIEventToTCApplication.hpp:84
dunedaq::appmodel::HSIEventToTCApplication::~HSIEventToTCApplication
virtual ~HSIEventToTCApplication() noexcept
dunedaq::appmodel::HSIEventToTCApplication::Configuration
friend class conffwk::Configuration
Definition
HSIEventToTCApplication.hpp:35
dunedaq::appmodel::HSIEventToTCApplication::s_hsevent_to_tc_conf
static const std::string s_hsevent_to_tc_conf
Definition
HSIEventToTCApplication.hpp:91
dunedaq::conffwk::DalObject::m_mutex
std::mutex m_mutex
Used to protect changes of DAL object.
Definition
DalObject.hpp:115
dunedaq::conffwk::DalObject::check
void check() const
Definition
DalObject.hpp:94
dunedaq::conffwk::DalObject::check_init
void check_init() const
Check and initialize object if necessary.
Definition
DalObject.hpp:412
dunedaq::conffwk::DalRegistry
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
Definition
DalRegistry.hpp:19
Configuration.hpp
conffwk entry point
offset
double offset
Definition
conversions-impl.hh:28
SmartDaqApplication.hpp
Resource.hpp
conffwk.ConfigObject
Definition
ConfigObject.py:1
conffwk
Definition
__init__.py:1
dunedaq::appmodel
Definition
CardControllerWrapper.hpp:21
dunedaq::appmodel::operator<<
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Definition
AVXAbsRunSumProcessor.hpp:80
dunedaq::appmodel::HSIEventToTCApplicationIterator
std::vector< constHSIEventToTCApplication * >::const_iterator HSIEventToTCApplicationIterator
Definition
HSIEventToTCApplication.hpp:146
dunedaq
Including Qt Headers.
Definition
module.cpp:16
dunedaq::obj
msgpack::object obj
Definition
Serialization.hpp:257
std
Definition
SchemaUtils.hpp:118
Generated on
for DUNE-DAQ by
1.17.0