DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
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
17
19#include "conffwk/Schema.hpp"
20#include <QString>
21#include <QStringList>
22
23#include <string>
24#include <vector>
25
26namespace dbe
27{
28namespace ui
29{
30namespace config
31{
32class info;
33} /* namespace config */
34} /* namespace ui */
35} /* namespace dbe */
36
37namespace dbe
38{
39namespace config
40{
41namespace api
42{
43//------------------------------------------------------------------------------------------
44// GET NAMESPACE
45//------------------------------------------------------------------------------------------
46/*
47 * Retrieve config related structures
48 */
49namespace get
50{
51class file
52{
53public:
61 static QStringList inclusions ( QStringList const & candidates, QStringList files =
62 { } );
63
70 static QStringList inclusions_singlefile ( QString const & );
71};
72
73class direct;
78{
80
88 template<typename T> inline static std::vector<std::string> read (
90
98 template<typename T> static std::vector<std::string> read (
100public:
101
109 template<typename T> static T list ( dbe::inner::configobject::tref obj,
110 dunedaq::conffwk::attribute_t const & attr );
111
112};
113
114namespace defaults
115{
120{
121 static QStringList value ( dunedaq::conffwk::attribute_t const & );
122};
123}
124
129{
132
133 template<typename T> static T attribute ( dunedaq::conffwk::ConfigObject &, dunedaq::conffwk::attribute_t const & );
134};
135
136}
137//------------------------------------------------------------------------------------------
138
139} /* namespace api */
140} /* namespace config */
141} /* namespace dbe */
142
143#endif /* DBE_CONFIG_API_GET_H_ */
static T list(dbe::inner::configobject::tref obj, dunedaq::conffwk::attribute_t const &attr)
static std::vector< std::string > read(dunedaq::conffwk::ConfigObject &, dunedaq::conffwk::attribute_t const &)
friend class dbe::config::api::get::attribute
static QStringList inclusions_singlefile(QString const &)
static QStringList inclusions(QStringList const &candidates, QStringList files={ })
Represents database objects.
Include QT Headers.
static QStringList value(dunedaq::conffwk::attribute_t const &)