DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
FakeHSIApplication.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _FakeHSIApplication_0_dunedaq__appmodel_0_appmodel_H_
4
#define _FakeHSIApplication_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 "
appmodel/SmartDaqApplication.hpp
"
19
#include "
confmodel/Resource.hpp
"
20
21
// forward declaration for classes used in relationships and algorithms
22
23
namespace
dunedaq
{
24
namespace
appmodel
{
25
class
DataHandlerConf
;
26
class
FakeHSIEventGeneratorConf
;
27
}
28
}
29
30
31
namespace
dunedaq
{
32
namespace
appmodel
{
33
34
class
FakeHSIApplication
:
public
dunedaq::appmodel::SmartDaqApplication
,
public
dunedaq::confmodel::Resource
{
35
36
friend
class
conffwk::Configuration
;
37
friend
class
conffwk::DalObject
;
38
friend
class
conffwk::DalFactory
;
39
friend
class
conffwk::DalRegistry
;
40
41
protected
:
42
43
FakeHSIApplication
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
44
virtual
~FakeHSIApplication
() noexcept;
45
virtual
void
init
(
bool
init_children);
46
47
public:
48
50
51
static const
std
::
string
&
s_class_name
;
52
53
62
63
virtual
void
print
(
unsigned
int
offset
,
bool
print_header,
std
::ostream& s) const;
64
65
74
75
virtual
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>
get
(const
std
::
string
& name,
bool
upcast_unregistered = true) const;
76
77
78
protected:
79
80
bool
get
(const
std
::
string
& name,
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>& vec,
bool
upcast_unregistered,
bool
first_call) const;
81
82
83
private:
84
85
const
dunedaq
::
appmodel
::
DataHandlerConf
*
m_link_handler
;
86
const
dunedaq
::
appmodel
::
FakeHSIEventGeneratorConf
*
m_generator
;
87
88
89
public:
90
91
// relationship names
92
93
inline static const
std
::
string
s_link_handler
=
"link_handler"
;
94
inline static const
std
::
string
s_generator
=
"generator"
;
95
96
static const
std
::
string
&
__get_link_handler_str
() noexcept {
return
s_link_handler
; }
97
static
const
std::string&
__get_generator_str
() noexcept {
return
s_generator
; }
98
99
105
106
const
dunedaq::appmodel::DataHandlerConf
*
107
get_link_handler
()
const
108
{
109
std::lock_guard scoped_lock(
m_mutex
);
110
check
();
111
check_init
();
112
if
(!
m_link_handler
)
113
{
114
std::ostringstream text;
115
text <<
"relationship \""
<<
s_link_handler
<<
"\" of object "
<<
this
<<
" is not set"
;
116
throw
dunedaq::conffwk::Generic(
ERS_HERE
, text.str().c_str());
117
}
118
return
m_link_handler
;
119
}
120
121
127
128
void
129
set_link_handler
(
const
dunedaq::appmodel::DataHandlerConf
* value);
130
136
137
const
dunedaq::appmodel::FakeHSIEventGeneratorConf
*
138
get_generator
()
const
139
{
140
std::lock_guard scoped_lock(
m_mutex
);
141
check
();
142
check_init
();
143
if
(!
m_generator
)
144
{
145
std::ostringstream text;
146
text <<
"relationship \""
<<
s_generator
<<
"\" of object "
<<
this
<<
" is not set"
;
147
throw
dunedaq::conffwk::Generic(
ERS_HERE
, text.str().c_str());
148
}
149
return
m_generator
;
150
}
151
152
158
159
void
160
set_generator
(
const
dunedaq::appmodel::FakeHSIEventGeneratorConf
* value);
161
162
163
public
:
164
165
// user-defined algorithms
166
170
171
void
generate_modules
(std::shared_ptr<appmodel::ConfigurationHelper>)
const override
;
172
};
173
174
// out stream operator
175
176
inline
std::ostream&
operator<<
(std::ostream& s,
const
FakeHSIApplication
&
obj
)
177
{
178
return
obj
.print_object(s);
179
}
180
181
typedef
std::vector<const FakeHSIApplication*>::const_iterator
FakeHSIApplicationIterator
;
182
183
}
184
}
185
186
#endif
DalObject.hpp
ERS_HERE
#define ERS_HERE
Definition
LocalContext.hpp:141
dunedaq::appmodel::DataHandlerConf
Definition
DataHandlerConf.hpp:31
dunedaq::appmodel::FakeHSIApplication
Definition
FakeHSIApplication.hpp:34
dunedaq::appmodel::FakeHSIApplication::get_link_handler
const dunedaq::appmodel::DataHandlerConf * get_link_handler() const
Get "link_handler" relationship value.
Definition
FakeHSIApplication.hpp:107
dunedaq::appmodel::FakeHSIApplication::set_generator
void set_generator(const dunedaq::appmodel::FakeHSIEventGeneratorConf *value)
Set "generator" relationship value.
Definition
FakeHSIApplication.cpp:129
dunedaq::appmodel::FakeHSIApplication::init
virtual void init(bool init_children)
Definition
FakeHSIApplication.cpp:72
dunedaq::appmodel::FakeHSIApplication::~FakeHSIApplication
virtual ~FakeHSIApplication() noexcept
Definition
FakeHSIApplication.cpp:88
dunedaq::appmodel::FakeHSIApplication::__get_link_handler_str
static const std::string & __get_link_handler_str() noexcept
Definition
FakeHSIApplication.hpp:96
dunedaq::appmodel::FakeHSIApplication::generate_modules
void generate_modules(std::shared_ptr< appmodel::ConfigurationHelper >) const override
Definition
FakeHSIApplication.cpp:40
dunedaq::appmodel::FakeHSIApplication::DalFactory
friend class conffwk::DalFactory
Definition
FakeHSIApplication.hpp:38
dunedaq::appmodel::FakeHSIApplication::s_generator
static const std::string s_generator
Definition
FakeHSIApplication.hpp:94
dunedaq::appmodel::FakeHSIApplication::set_link_handler
void set_link_handler(const dunedaq::appmodel::DataHandlerConf *value)
Set "link_handler" relationship value.
Definition
FakeHSIApplication.cpp:124
dunedaq::appmodel::FakeHSIApplication::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
FakeHSIApplication.cpp:92
dunedaq::appmodel::FakeHSIApplication::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the FakeHSIApplication object.
Definition
FakeHSIApplication.cpp:44
dunedaq::appmodel::FakeHSIApplication::s_class_name
static const std::string & s_class_name
Definition
FakeHSIApplication.hpp:51
dunedaq::appmodel::FakeHSIApplication::DalObject
friend class conffwk::DalObject
Definition
FakeHSIApplication.hpp:37
dunedaq::appmodel::FakeHSIApplication::m_generator
const dunedaq::appmodel::FakeHSIEventGeneratorConf * m_generator
Definition
FakeHSIApplication.hpp:86
dunedaq::appmodel::FakeHSIApplication::s_link_handler
static const std::string s_link_handler
Definition
FakeHSIApplication.hpp:93
dunedaq::appmodel::FakeHSIApplication::__get_generator_str
static const std::string & __get_generator_str() noexcept
Definition
FakeHSIApplication.hpp:97
dunedaq::appmodel::FakeHSIApplication::FakeHSIApplication
FakeHSIApplication(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
FakeHSIApplication.cpp:32
dunedaq::appmodel::FakeHSIApplication::get_generator
const dunedaq::appmodel::FakeHSIEventGeneratorConf * get_generator() const
Get "generator" relationship value.
Definition
FakeHSIApplication.hpp:138
dunedaq::appmodel::FakeHSIApplication::m_link_handler
const dunedaq::appmodel::DataHandlerConf * m_link_handler
Definition
FakeHSIApplication.hpp:85
dunedaq::appmodel::FakeHSIEventGeneratorConf
Definition
FakeHSIEventGeneratorConf.hpp:20
dunedaq::appmodel::SmartDaqApplication
Definition
SmartDaqApplication.hpp:42
dunedaq::conffwk::DalObject
The base class for any generated DAL object.
Definition
DalObject.hpp:52
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
dunedaq::confmodel::Resource
Definition
Resource.hpp:35
Configuration.hpp
conffwk entry point
offset
double offset
Definition
conversions-impl.hh:28
SmartDaqApplication.hpp
Resource.hpp
conffwk.ConfigObject
Definition
ConfigObject.py:1
conffwk.Configuration
Definition
Configuration.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::FakeHSIApplicationIterator
std::vector< constFakeHSIApplication * >::const_iterator FakeHSIApplicationIterator
Definition
FakeHSIApplication.hpp:181
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