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/ConfigObject.hpp
"
19
#include "
conffwk/Schema.hpp
"
20
21
#include <vector>
22
23
namespace
daq
{
24
namespace
config
{
25
struct
relationship_t;
26
struct
attribute_t;
27
}
/* namespace config */
28
}
/* namespace daq */
29
30
namespace
dbe
{
31
namespace
ui {
32
namespace
config {
33
class
info;
34
}
35
}
36
}
37
38
//------------------------------------------------------------------------------------------
39
// DBE::CONFIG::API::GRAPH NAMESPACE
40
//------------------------------------------------------------------------------------------
41
namespace
dbe
{
42
namespace
config
{
43
namespace
api
{
44
namespace
graph
{
45
46
namespace
linked
{
47
48
//------------------------------------------------------------------------------------------
49
// backward relations A->c->B querying on B returns A through c ,
50
// e.g. A connects to B ( B is queried upon)
51
namespace
to
{
63
template
<
typename
T>
64
std::vector<T>
65
object
(
tref
const
&);
66
}
67
//------------------------------------------------------------------------------------------
68
69
//------------------------------------------------------------------------------------------
70
// forward relations A->c->B querying on A return B through c
71
namespace
by
{
81
template
<
typename
T>
82
std::vector<T>
83
object
(
tref
const
& item);
84
}
85
86
namespace
through
{
96
template
<
typename
T>
97
std::vector<T>
98
relations
(
tref
const
& item);
99
109
template
<
typename
T>
110
std::vector<T>
111
attributes
(
tref
const
& item);
112
124
template
<
typename
T>
125
T
126
relation
(
tref
item,
dunedaq::conffwk::relationship_t
const
&
relation
);
127
139
template
<
typename
T>
140
T
141
attribute
(
tref
item,
dunedaq::conffwk::attribute_t
const
& attr);
142
143
}
144
//------------------------------------------------------------------------------------------
145
146
}
// end namespace related
147
151
class
direct
152
{
153
friend
class
dbe::ui::config::info
;
154
166
template
<
typename
T>
167
static
T
linked
(
dunedaq::conffwk::ConfigObject
& item,
dunedaq::conffwk::relationship_t
const
& relation);
168
180
template
<
typename
T>
181
static
T
linked
(
dunedaq::conffwk::ConfigObject
& item,
dunedaq::conffwk::attribute_t
const
& relation);
182
};
183
//------------------------------------------------------------------------------------------
184
185
}
// namespace graph
186
}
/* namespace api */
187
}
/* namespace config */
188
}
/* namespace dbe */
189
//------------------------------------------------------------------------------------------
190
191
#endif
/* DBE_CONFIG_API_GRAPH_H_ */
ConfigObject.hpp
dbe::config::api::graph::direct
Definition
config_api_graph.hpp:152
dbe::config::api::graph::direct::linked
static T linked(dunedaq::conffwk::ConfigObject &item, dunedaq::conffwk::relationship_t const &relation)
Definition
config_api_graph.cpp:143
dbe::ui::config::info
Definition
config_ui_info.hpp:34
dunedaq::conffwk::ConfigObject
Represents database objects.
Definition
ConfigObject.hpp:54
Schema.hpp
daq::config
Definition
config_api_graph.hpp:24
daq
Including ers headers.
Definition
config_api_graph.hpp:23
dbe::config::api::graph::linked::by
Definition
config_api_graph.hpp:71
dbe::config::api::graph::linked::by::object
std::vector< T > object(tref const &item)
Definition
config_api_graph.cpp:268
dbe::config::api::graph::linked::through
Definition
config_api_graph.hpp:86
dbe::config::api::graph::linked::through::attributes
std::vector< T > attributes(tref const &item)
Definition
config_api_graph.cpp:185
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:163
dbe::config::api::graph::linked::to
Definition
config_api_graph.hpp:51
dbe::config::api::graph::linked::to::object
std::vector< T > object(tref const &)
dbe::config::api::graph::linked
Definition
config_api_graph.hpp:46
dbe::config::api::graph
Definition
config_api_graph.hpp:44
dbe::config::api
Definition
config_api.hpp:30
dbe::config
Definition
config_api.hpp:29
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:16
dbe::tref
inner::configobject::tref tref
Definition
tref.hpp:36
dunedaq::conffwk::attribute_t
Definition
Schema.hpp:60
dunedaq::conffwk::relationship_t
Definition
Schema.hpp:117
tref.hpp
Generated on
for DUNE-DAQ by
1.18.0