DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
config_api_graph.hpp
Go to the documentation of this file.
1/*
2 * config_api_graph.h
3 *
4 * Created on: Apr 20, 2016
5 * Author: Leonidas Georgopoulos
6 */
7
8#ifndef DBE_CONFIG_API_GRAPH_H_
9#define DBE_CONFIG_API_GRAPH_H_
10
11#include "dbe/tref.hpp"
12
13#include "conffwk/Schema.hpp"
15
16#include <vector>
17
18namespace daq
19{
20namespace config
21{
22struct relationship_t;
23struct attribute_t;
24} /* namespace config */
25} /* namespace daq */
26
27namespace dbe
28{
29namespace ui
30{
31namespace config
32{
33class info;
34}
35}
36}
37
38//------------------------------------------------------------------------------------------
39// DBE::CONFIG::API::GRAPH NAMESPACE
40//------------------------------------------------------------------------------------------
41namespace dbe
42{
43namespace config
44{
45namespace api
46{
47namespace graph
48{
49
50namespace linked
51{
52
53//------------------------------------------------------------------------------------------
54// backward relations A->c->B querying on B returns A through c ,
55// e.g. A connects to B ( B is queried upon)
56namespace to
57{
69template<typename T> std::vector<T> object ( tref const & );
70}
71//------------------------------------------------------------------------------------------
72
73//------------------------------------------------------------------------------------------
74// forward relations A->c->B querying on A return B through c
75namespace by
76{
86template<typename T> std::vector<T> object ( tref const & item );
87}
88
89namespace through
90{
100template<typename T> std::vector<T> relations ( tref const & item );
101
111template<typename T> std::vector<T> attributes ( tref const & item );
112
124template<typename T> T relation ( tref item, dunedaq::conffwk::relationship_t const & relation );
125
137template<typename T> T attribute ( tref item, dunedaq::conffwk::attribute_t const & attr );
138
139}
140//------------------------------------------------------------------------------------------
141
142}// end namespace related
143
148{
150
162 template<typename T> static T linked (
164
176 template<typename T> static T linked (
178};
179//------------------------------------------------------------------------------------------
180
181}// namespace graph
182} /* namespace api */
183} /* namespace config */
184} /* namespace dbe */
185//------------------------------------------------------------------------------------------
186
187#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.