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 {
27namespace ui {
28namespace config {
29class info;
30} /* namespace config */
31} /* namespace ui */
32} /* namespace dbe */
33
34namespace dbe {
35namespace config {
36namespace api {
37//------------------------------------------------------------------------------------------
38// GET NAMESPACE
39//------------------------------------------------------------------------------------------
40/*
41 * Retrieve config related structures
42 */
43namespace get {
44class file
45{
46public:
54 static QStringList inclusions(QStringList const& candidates, QStringList files = {});
55
62 static QStringList inclusions_singlefile(QString const&);
63};
64
65class direct;
70{
72
80 template<typename T>
81 inline static std::vector<std::string> read(dunedaq::conffwk::ConfigObject&, dunedaq::conffwk::attribute_t const&);
82
90 template<typename T>
91 static std::vector<std::string> read(inner::configobject::tref, dunedaq::conffwk::attribute_t const&);
92
93public:
101 template<typename T>
103};
104
105namespace defaults {
110{
111 static QStringList value(dunedaq::conffwk::attribute_t const&);
112};
113}
114
119{
122
123 template<typename T>
125};
126
127}
128//------------------------------------------------------------------------------------------
129
130} /* namespace api */
131} /* namespace config */
132} /* namespace dbe */
133
134#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 &)