DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
config_api_get.hpp
Go to the documentation of this file.
1
// DUNE DAQ modification notice:
2
// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3
// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4
// Renamed since fork: yes (from dbe/config_api_get.h to include/dbe/config_api_get.hpp).
5
6
/*
7
* config_api_get.h
8
*
9
* Created on: Apr 19, 2016
10
* Author: Leonidas Georgopoulos
11
*/
12
13
#ifndef DBE_CONFIG_API_GET_H_
14
#define DBE_CONFIG_API_GET_H_
15
16
#include "
dbe/config_reference.hpp
"
17
18
#include "
conffwk/ConfigObject.hpp
"
19
#include "
conffwk/Schema.hpp
"
20
#include <QString>
21
#include <QStringList>
22
23
#include <string>
24
#include <vector>
25
26
namespace
dbe
{
27
namespace
ui
{
28
namespace
config
{
29
class
info
;
30
}
/* namespace config */
31
}
/* namespace ui */
32
}
/* namespace dbe */
33
34
namespace
dbe
{
35
namespace
config {
36
namespace
api {
37
//------------------------------------------------------------------------------------------
38
// GET NAMESPACE
39
//------------------------------------------------------------------------------------------
40
/*
41
* Retrieve config related structures
42
*/
43
namespace
get {
44
class
file
45
{
46
public
:
54
static
QStringList
inclusions
(QStringList
const
& candidates, QStringList files = {});
55
62
static
QStringList
inclusions_singlefile
(QString
const
&);
63
};
64
65
class
direct
;
69
class
attribute
70
{
71
friend
class
dbe::config::api::get::direct
;
72
80
template
<
typename
T>
81
inline
static
std::vector<std::string>
read
(
dunedaq::conffwk::ConfigObject
&,
dunedaq::conffwk::attribute_t
const
&);
82
90
template
<
typename
T>
91
static
std::vector<std::string>
read
(
inner::configobject::tref
,
dunedaq::conffwk::attribute_t
const
&);
92
93
public
:
101
template
<
typename
T>
102
static
T
list
(
dbe::inner::configobject::tref
obj,
dunedaq::conffwk::attribute_t
const
& attr);
103
};
104
105
namespace
defaults
{
109
struct
attribute
110
{
111
static
QStringList
value
(
dunedaq::conffwk::attribute_t
const
&);
112
};
113
}
114
118
class
direct
119
{
120
friend
class
dbe::ui::config::info
;
121
friend
class
dbe::config::api::get::attribute
;
122
123
template
<
typename
T>
124
static
T
attribute
(
dunedaq::conffwk::ConfigObject
&,
dunedaq::conffwk::attribute_t
const
&);
125
};
126
127
}
128
//------------------------------------------------------------------------------------------
129
130
}
/* namespace api */
131
}
/* namespace config */
132
}
/* namespace dbe */
133
134
#endif
/* DBE_CONFIG_API_GET_H_ */
ConfigObject.hpp
dbe::config::api::get::attribute
Definition
config_api_get.hpp:70
dbe::config::api::get::attribute::list
static T list(dbe::inner::configobject::tref obj, dunedaq::conffwk::attribute_t const &attr)
Definition
config_api_get.cpp:160
dbe::config::api::get::attribute::read
static std::vector< std::string > read(dunedaq::conffwk::ConfigObject &, dunedaq::conffwk::attribute_t const &)
Definition
config_api_get.cpp:36
dbe::config::api::get::direct
Definition
config_api_get.hpp:119
dbe::config::api::get::direct::attribute
friend class dbe::config::api::get::attribute
Definition
config_api_get.hpp:121
dbe::config::api::get::file
Definition
config_api_get.hpp:45
dbe::config::api::get::file::inclusions_singlefile
static QStringList inclusions_singlefile(QString const &)
Definition
config_api_get.cpp:282
dbe::config::api::get::file::inclusions
static QStringList inclusions(QStringList const &candidates, QStringList files={})
Definition
config_api_get.cpp:233
dbe::inner::configobject::tref
Definition
config_reference.hpp:416
dbe::ui::config::info
Definition
config_ui_info.hpp:34
dunedaq::conffwk::ConfigObject
Represents database objects.
Definition
ConfigObject.hpp:54
Schema.hpp
config_reference.hpp
dbe::config::api::get::defaults
Definition
config_api_get.hpp:105
dbe::ui::config
Definition
config_api_get.hpp:28
dbe::ui
Definition
config_api_get.hpp:27
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:16
dbe::config::api::get::defaults::attribute
Definition
config_api_get.hpp:110
dbe::config::api::get::defaults::attribute::value
static QStringList value(dunedaq::conffwk::attribute_t const &)
Definition
config_api_get.cpp:306
dunedaq::conffwk::attribute_t
Definition
Schema.hpp:60
Generated on
for DUNE-DAQ by
1.18.0