DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
TPStreamConf.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _TPStreamConf_0_dunedaq__appmodel_0_appmodel_H_
4
#define _TPStreamConf_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
17
namespace
dunedaq
{
18
namespace
appmodel
{
19
20
class
TPStreamConf
:
public
virtual
dunedaq::conffwk::DalObject
{
21
22
friend
class
conffwk::Configuration
;
23
friend
class
conffwk::DalObject
;
24
friend
class
conffwk::DalFactory
;
25
friend
class
conffwk::DalRegistry
;
26
27
protected
:
28
29
TPStreamConf
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
30
virtual
~TPStreamConf
() noexcept;
31
virtual
void
init
(
bool
init_children);
32
33
public:
34
36
37
static const
std
::
string
&
s_class_name
;
38
39
48
49
virtual
void
print
(
unsigned
int
offset
,
bool
print_header,
std
::ostream& s) const;
50
51
60
61
virtual
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>
get
(const
std
::
string
& name,
bool
upcast_unregistered = true) const;
62
63
64
protected:
65
66
bool
get
(const
std
::
string
& name,
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>& vec,
bool
upcast_unregistered,
bool
first_call) const;
67
68
69
private:
70
71
std
::
string
m_filename
;
72
uint32_t
m_index
;
73
74
75
public:
76
77
// attribute names
78
79
inline static const
std
::
string
s_filename
=
"filename"
;
80
inline static const
std
::
string
s_index
=
"index"
;
81
82
static const
std
::
string
&
__get_filename_str
() noexcept {
return
s_filename
; }
83
static
const
std::string&
__get_index_str
() noexcept {
return
s_index
; }
84
85
91
92
const
std::string&
93
get_filename
()
const
94
{
95
std::lock_guard scoped_lock(
m_mutex
);
96
check
();
97
check_init
();
98
return
m_filename
;
99
}
100
106
107
void
108
set_filename
(
const
std::string& value)
109
{
110
std::lock_guard scoped_lock(
m_mutex
);
111
check
();
112
clear
();
113
p_obj
.set_by_ref(
s_filename
, value);
114
}
115
116
122
123
uint32_t
124
get_index
()
const
125
{
126
std::lock_guard scoped_lock(
m_mutex
);
127
check
();
128
check_init
();
129
return
m_index
;
130
}
131
137
138
void
139
set_index
(uint32_t value)
140
{
141
std::lock_guard scoped_lock(
m_mutex
);
142
check
();
143
clear
();
144
p_obj
.set_by_val(
s_index
, value);
145
}
146
147
148
};
149
150
// out stream operator
151
152
inline
std::ostream&
operator<<
(std::ostream& s,
const
TPStreamConf
&
obj
)
153
{
154
return
obj
.print_object(s);
155
}
156
157
typedef
std::vector<const TPStreamConf*>::const_iterator
TPStreamConfIterator
;
158
159
}
160
}
161
162
#endif
DalObject.hpp
dunedaq::appmodel::TPStreamConf
Definition
TPStreamConf.hpp:20
dunedaq::appmodel::TPStreamConf::s_index
static const std::string s_index
Definition
TPStreamConf.hpp:80
dunedaq::appmodel::TPStreamConf::set_index
void set_index(uint32_t value)
Set "index" attribute value.
Definition
TPStreamConf.hpp:139
dunedaq::appmodel::TPStreamConf::__get_filename_str
static const std::string & __get_filename_str() noexcept
Definition
TPStreamConf.hpp:82
dunedaq::appmodel::TPStreamConf::__get_index_str
static const std::string & __get_index_str() noexcept
Definition
TPStreamConf.hpp:83
dunedaq::appmodel::TPStreamConf::s_filename
static const std::string s_filename
Definition
TPStreamConf.hpp:79
dunedaq::appmodel::TPStreamConf::m_index
uint32_t m_index
Definition
TPStreamConf.hpp:72
dunedaq::appmodel::TPStreamConf::TPStreamConf
TPStreamConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
TPStreamConf.cpp:26
dunedaq::appmodel::TPStreamConf::get_index
uint32_t get_index() const
Get "index" attribute value.
Definition
TPStreamConf.hpp:124
dunedaq::appmodel::TPStreamConf::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
TPStreamConf.cpp:74
dunedaq::appmodel::TPStreamConf::DalFactory
friend class conffwk::DalFactory
Definition
TPStreamConf.hpp:24
dunedaq::appmodel::TPStreamConf::get_filename
const std::string & get_filename() const
Get "filename" attribute value.
Definition
TPStreamConf.hpp:93
dunedaq::appmodel::TPStreamConf::s_class_name
static const std::string & s_class_name
Definition
TPStreamConf.hpp:37
dunedaq::appmodel::TPStreamConf::init
virtual void init(bool init_children)
Definition
TPStreamConf.cpp:55
dunedaq::appmodel::TPStreamConf::DalObject
friend class conffwk::DalObject
Definition
TPStreamConf.hpp:23
dunedaq::appmodel::TPStreamConf::m_filename
std::string m_filename
Definition
TPStreamConf.hpp:71
dunedaq::appmodel::TPStreamConf::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the TPStreamConf object.
Definition
TPStreamConf.cpp:33
dunedaq::appmodel::TPStreamConf::set_filename
void set_filename(const std::string &value)
Set "filename" attribute value.
Definition
TPStreamConf.hpp:108
dunedaq::appmodel::TPStreamConf::~TPStreamConf
virtual ~TPStreamConf() noexcept
Definition
TPStreamConf.cpp:70
dunedaq::conffwk::DalObject
The base class for any generated DAL object.
Definition
DalObject.hpp:52
dunedaq::conffwk::DalObject::clear
void clear() noexcept
Definition
DalObject.hpp:83
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::p_obj
ConfigObject p_obj
Config object used by given template object.
Definition
DalObject.hpp:124
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
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::TPStreamConfIterator
std::vector< constTPStreamConf * >::const_iterator TPStreamConfIterator
Definition
TPStreamConf.hpp:157
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