DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
config_api_graph.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_graph.h to include/dbe/config_api_graph.hpp).
5
6
/*
7
* config_api_graph.h
8
*
9
* Created on: Apr 20, 2016
10
* Author: Leonidas Georgopoulos
11
*/
12
13
#ifndef DBE_CONFIG_API_GRAPH_H_
14
#define DBE_CONFIG_API_GRAPH_H_
15
16
#include "
dbe/tref.hpp
"
17
18
#include "
conffwk/Schema.hpp
"
19
#include "
conffwk/ConfigObject.hpp
"
20
21
#include <vector>
22
23
namespace
daq
24
{
25
namespace
config
26
{
27
struct
relationship_t;
28
struct
attribute_t;
29
}
/* namespace config */
30
}
/* namespace daq */
31
32
namespace
dbe
33
{
34
namespace
ui
35
{
36
namespace
config
37
{
38
class
info;
39
}
40
}
41
}
42
43
//------------------------------------------------------------------------------------------
44
// DBE::CONFIG::API::GRAPH NAMESPACE
45
//------------------------------------------------------------------------------------------
46
namespace
dbe
47
{
48
namespace
config
49
{
50
namespace
api
51
{
52
namespace
graph
53
{
54
55
namespace
linked
56
{
57
58
//------------------------------------------------------------------------------------------
59
// backward relations A->c->B querying on B returns A through c ,
60
// e.g. A connects to B ( B is queried upon)
61
namespace
to
62
{
74
template
<
typename
T> std::vector<T>
object
(
tref
const
& );
75
}
76
//------------------------------------------------------------------------------------------
77
78
//------------------------------------------------------------------------------------------
79
// forward relations A->c->B querying on A return B through c
80
namespace
by
81
{
91
template
<
typename
T> std::vector<T>
object
(
tref
const
& item );
92
}
93
94
namespace
through
95
{
105
template
<
typename
T> std::vector<T>
relations
(
tref
const
& item );
106
116
template
<
typename
T> std::vector<T>
attributes
(
tref
const
& item );
117
129
template
<
typename
T> T
relation
(
tref
item,
dunedaq::conffwk::relationship_t
const
&
relation
);
130
142
template
<
typename
T> T
attribute
(
tref
item,
dunedaq::conffwk::attribute_t
const
& attr );
143
144
}
145
//------------------------------------------------------------------------------------------
146
147
}
// end namespace related
148
152
class
direct
153
{
154
friend
class
dbe::ui::config::info
;
155
167
template
<
typename
T>
static
T
linked
(
168
dunedaq::conffwk::ConfigObject
& item,
dunedaq::conffwk::relationship_t
const
& relation );
169
181
template
<
typename
T>
static
T
linked
(
182
dunedaq::conffwk::ConfigObject
& item,
dunedaq::conffwk::attribute_t
const
& relation );
183
};
184
//------------------------------------------------------------------------------------------
185
186
}
// namespace graph
187
}
/* namespace api */
188
}
/* namespace config */
189
}
/* namespace dbe */
190
//------------------------------------------------------------------------------------------
191
192
#endif
/* DBE_CONFIG_API_GRAPH_H_ */
ConfigObject.hpp
dbe::config::api::graph::direct
Definition
config_api_graph.hpp:153
dbe::config::api::graph::direct::linked
static T linked(dunedaq::conffwk::ConfigObject &item, dunedaq::conffwk::relationship_t const &relation)
Definition
config_api_graph.cpp:169
dbe::ui::config::info
Definition
config_ui_info.hpp:37
dunedaq::conffwk::ConfigObject
Represents database objects.
Definition
ConfigObject.hpp:53
Schema.hpp
daq::config
Definition
config_api_graph.hpp:26
daq
Including ers headers.
Definition
config_api_graph.hpp:24
dbe::config::api::graph::linked::by
Definition
config_api_graph.hpp:81
dbe::config::api::graph::linked::by::object
std::vector< T > object(tref const &item)
Definition
config_api_graph.cpp:313
dbe::config::api::graph::linked::through
Definition
config_api_graph.hpp:95
dbe::config::api::graph::linked::through::attributes
std::vector< T > attributes(tref const &item)
Definition
config_api_graph.cpp:215
dbe::config::api::graph::linked::through::attribute
T attribute(tref item, dunedaq::conffwk::attribute_t const &attr)
dbe::config::api::graph::linked::through::relation
T relation(tref item, dunedaq::conffwk::relationship_t const &relation)
dbe::config::api::graph::linked::through::relations
std::vector< T > relations(tref const &item)
Definition
config_api_graph.cpp:192
dbe::config::api::graph::linked::to
Definition
config_api_graph.hpp:62
dbe::config::api::graph::linked::to::object
std::vector< T > object(tref const &)
dbe::config::api::graph::linked
Definition
config_api_graph.hpp:56
dbe::config::api::graph
Definition
config_api_graph.hpp:53
dbe::config::api
Definition
config_api.hpp:33
dbe::config
Definition
config_api.hpp:31
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:18
dbe::tref
inner::configobject::tref tref
Definition
tref.hpp:35
dunedaq::conffwk::attribute_t
Definition
Schema.hpp:59
dunedaq::conffwk::relationship_t
Definition
Schema.hpp:120
tref.hpp
Generated on
for DUNE-DAQ by
1.17.0