DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
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
19#include "conffwk/Schema.hpp"
20
21#include <vector>
22
23namespace daq {
24namespace config {
25struct relationship_t;
26struct attribute_t;
27} /* namespace config */
28} /* namespace daq */
29
30namespace dbe {
31namespace ui {
32namespace config {
33class info;
34}
35}
36}
37
38//------------------------------------------------------------------------------------------
39// DBE::CONFIG::API::GRAPH NAMESPACE
40//------------------------------------------------------------------------------------------
41namespace dbe {
42namespace config {
43namespace api {
44namespace graph {
45
46namespace 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)
51namespace to {
63template<typename T>
64std::vector<T>
65object(tref const&);
66}
67//------------------------------------------------------------------------------------------
68
69//------------------------------------------------------------------------------------------
70// forward relations A->c->B querying on A return B through c
71namespace by {
81template<typename T>
82std::vector<T>
83object(tref const& item);
84}
85
86namespace through {
96template<typename T>
97std::vector<T>
98relations(tref const& item);
99
109template<typename T>
110std::vector<T>
111attributes(tref const& item);
112
124template<typename T>
125T
127
139template<typename T>
140T
142
143}
144//------------------------------------------------------------------------------------------
145
146} // end namespace related
147
152{
154
166 template<typename T>
168
180 template<typename T>
182};
183//------------------------------------------------------------------------------------------
184
185} // namespace graph
186} /* namespace api */
187} /* namespace config */
188} /* namespace dbe */
189//------------------------------------------------------------------------------------------
190
191#endif /* DBE_CONFIG_API_GRAPH_H_ */
static T linked(dunedaq::conffwk::ConfigObject &item, dunedaq::conffwk::relationship_t const &relation)
Represents database objects.
Including ers headers.
std::vector< T > object(tref const &item)
std::vector< T > attributes(tref const &item)
T attribute(tref item, dunedaq::conffwk::attribute_t const &attr)
T relation(tref item, dunedaq::conffwk::relationship_t const &relation)
std::vector< T > relations(tref const &item)
std::vector< T > object(tref const &)
Include QT Headers.
inner::configobject::tref tref
Definition tref.hpp:36