DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
src
DaphneControllerModule.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _DaphneControllerModule_0_dunedaq__appmodel_0_appmodel_H_
4
#define _DaphneControllerModule_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/DaqModule.hpp
"
19
20
// forward declaration for classes used in relationships and algorithms
21
22
namespace
dunedaq
{
23
namespace
appmodel
{
24
class
DaphneConf
;
25
class
DaphneV2BoardConf
;
26
}
27
}
28
29
30
namespace
dunedaq
{
31
namespace
appmodel
{
32
33
class
DaphneControllerModule
:
public
dunedaq::confmodel::DaqModule {
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
DaphneControllerModule
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
43
virtual
~DaphneControllerModule
() 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
::
DaphneConf
*
m_daphne_conf
;
85
const
dunedaq
::
appmodel
::
DaphneV2BoardConf
*
m_board_conf
;
86
87
88
public:
89
90
// relationship names
91
92
inline static const
std
::
string
s_daphne_conf
=
"daphne_conf"
;
93
inline static const
std
::
string
s_board_conf
=
"board_conf"
;
94
95
static const
std
::
string
&
__get_daphne_conf_str
() noexcept {
return
s_daphne_conf
; }
96
static
const
std::string&
__get_board_conf_str
() noexcept {
return
s_board_conf
; }
97
98
104
105
const
dunedaq::appmodel::DaphneConf
*
106
get_daphne_conf
()
const
107
{
108
std::lock_guard scoped_lock(
m_mutex
);
109
check
();
110
check_init
();
111
if
(!
m_daphne_conf
)
112
{
113
std::ostringstream text;
114
text <<
"relationship \""
<<
s_daphne_conf
<<
"\" of object "
<<
this
<<
" is not set"
;
115
throw
dunedaq::conffwk::Generic(
ERS_HERE
, text.str().c_str());
116
}
117
return
m_daphne_conf
;
118
}
119
120
126
127
void
128
set_daphne_conf
(
const
dunedaq::appmodel::DaphneConf
* value);
129
135
136
const
dunedaq::appmodel::DaphneV2BoardConf
*
137
get_board_conf
()
const
138
{
139
std::lock_guard scoped_lock(
m_mutex
);
140
check
();
141
check_init
();
142
if
(!
m_board_conf
)
143
{
144
std::ostringstream text;
145
text <<
"relationship \""
<<
s_board_conf
<<
"\" of object "
<<
this
<<
" is not set"
;
146
throw
dunedaq::conffwk::Generic(
ERS_HERE
, text.str().c_str());
147
}
148
return
m_board_conf
;
149
}
150
151
157
158
void
159
set_board_conf
(
const
dunedaq::appmodel::DaphneV2BoardConf
* value);
160
161
};
162
163
// out stream operator
164
165
inline
std::ostream&
operator<<
(std::ostream& s,
const
DaphneControllerModule
&
obj
)
166
{
167
return
obj
.print_object(s);
168
}
169
170
typedef
std::vector<const DaphneControllerModule*>::const_iterator
DaphneControllerModuleIterator
;
171
172
}
173
}
174
175
#endif
DalObject.hpp
ERS_HERE
#define ERS_HERE
Definition
LocalContext.hpp:141
dunedaq::appmodel::DaphneConf
Definition
DaphneConf.hpp:38
dunedaq::appmodel::DaphneControllerModule
Definition
DaphneControllerModule.hpp:33
dunedaq::appmodel::DaphneControllerModule::DalRegistry
friend class conffwk::DalRegistry
Definition
DaphneControllerModule.hpp:38
dunedaq::appmodel::DaphneControllerModule::s_daphne_conf
static const std::string s_daphne_conf
Definition
DaphneControllerModule.hpp:92
dunedaq::appmodel::DaphneControllerModule::__get_board_conf_str
static const std::string & __get_board_conf_str() noexcept
Definition
DaphneControllerModule.hpp:96
dunedaq::appmodel::DaphneControllerModule::get_daphne_conf
const dunedaq::appmodel::DaphneConf * get_daphne_conf() const
Get "daphne_conf" relationship value.
Definition
DaphneControllerModule.hpp:106
dunedaq::appmodel::DaphneControllerModule::set_board_conf
void set_board_conf(const dunedaq::appmodel::DaphneV2BoardConf *value)
Set "board_conf" relationship value.
dunedaq::appmodel::DaphneControllerModule::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
DaphneControllerModule.cpp:89
dunedaq::appmodel::DaphneControllerModule::m_board_conf
const dunedaq::appmodel::DaphneV2BoardConf * m_board_conf
Definition
DaphneControllerModule.hpp:85
dunedaq::appmodel::DaphneControllerModule::DalFactory
friend class conffwk::DalFactory
Definition
DaphneControllerModule.hpp:37
dunedaq::appmodel::DaphneControllerModule::init
virtual void init(bool init_children)
Definition
DaphneControllerModule.cpp:70
dunedaq::appmodel::DaphneControllerModule::set_daphne_conf
void set_daphne_conf(const dunedaq::appmodel::DaphneConf *value)
Set "daphne_conf" relationship value.
dunedaq::appmodel::DaphneControllerModule::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the DaphneControllerModule object.
Definition
DaphneControllerModule.cpp:43
dunedaq::appmodel::DaphneControllerModule::DalObject
friend class conffwk::DalObject
Definition
DaphneControllerModule.hpp:36
dunedaq::appmodel::DaphneControllerModule::m_daphne_conf
const dunedaq::appmodel::DaphneConf * m_daphne_conf
Definition
DaphneControllerModule.hpp:84
dunedaq::appmodel::DaphneControllerModule::DaphneControllerModule
DaphneControllerModule(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
dunedaq::appmodel::DaphneControllerModule::Configuration
friend class conffwk::Configuration
Definition
DaphneControllerModule.hpp:35
dunedaq::appmodel::DaphneControllerModule::__get_daphne_conf_str
static const std::string & __get_daphne_conf_str() noexcept
Definition
DaphneControllerModule.hpp:95
dunedaq::appmodel::DaphneControllerModule::s_class_name
static const std::string & s_class_name
Definition
DaphneControllerModule.hpp:50
dunedaq::appmodel::DaphneControllerModule::s_board_conf
static const std::string s_board_conf
Definition
DaphneControllerModule.hpp:93
dunedaq::appmodel::DaphneControllerModule::~DaphneControllerModule
virtual ~DaphneControllerModule() noexcept
dunedaq::appmodel::DaphneControllerModule::get_board_conf
const dunedaq::appmodel::DaphneV2BoardConf * get_board_conf() const
Get "board_conf" relationship value.
Definition
DaphneControllerModule.hpp:137
dunedaq::appmodel::DaphneV2BoardConf
Definition
DaphneV2BoardConf.hpp:34
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
DaqModule.hpp
conffwk.ConfigObject
Definition
ConfigObject.py:1
conffwk
Definition
__init__.py:1
dunedaq::appmodel
Definition
CardControllerWrapper.hpp:21
dunedaq::appmodel::DaphneControllerModuleIterator
std::vector< constDaphneControllerModule * >::const_iterator DaphneControllerModuleIterator
Definition
DaphneControllerModule.hpp:170
dunedaq::appmodel::operator<<
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Definition
AVXAbsRunSumProcessor.hpp:80
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