DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
config_api_get.hpp
Go to the documentation of this file.
1/*
2 * config_api_get.h
3 *
4 * Created on: Apr 19, 2016
5 * Author: Leonidas Georgopoulos
6 */
7
8#ifndef DBE_CONFIG_API_GET_H_
9#define DBE_CONFIG_API_GET_H_
10
12
14#include "conffwk/Schema.hpp"
15#include <QString>
16#include <QStringList>
17
18#include <string>
19#include <vector>
20
21namespace dbe
22{
23namespace ui
24{
25namespace config
26{
27class info;
28} /* namespace config */
29} /* namespace ui */
30} /* namespace dbe */
31
32namespace dbe
33{
34namespace config
35{
36namespace api
37{
38//------------------------------------------------------------------------------------------
39// GET NAMESPACE
40//------------------------------------------------------------------------------------------
41/*
42 * Retrieve config related structures
43 */
44namespace get
45{
46class file
47{
48public:
56 static QStringList inclusions ( QStringList const & candidates, QStringList files =
57 { } );
58
65 static QStringList inclusions_singlefile ( QString const & );
66};
67
68class direct;
73{
75
83 template<typename T> inline static std::vector<std::string> read (
85
93 template<typename T> static std::vector<std::string> read (
95public:
96
104 template<typename T> static T list ( dbe::inner::configobject::tref obj,
105 dunedaq::conffwk::attribute_t const & attr );
106
107};
108
109namespace defaults
110{
115{
116 static QStringList value ( dunedaq::conffwk::attribute_t const & );
117};
118}
119
124{
127
128 template<typename T> static T attribute ( dunedaq::conffwk::ConfigObject &, dunedaq::conffwk::attribute_t const & );
129};
130
131}
132//------------------------------------------------------------------------------------------
133
134} /* namespace api */
135} /* namespace config */
136} /* namespace dbe */
137
138#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 &)