DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
config_api_info.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_info.h to include/dbe/config_api_info.hpp).
5
6/*
7 * config_api_info.h
8 *
9 * Created on: Apr 20, 2016
10 * Author: Leonidas Georgopoulos
11 */
12
13#ifndef DBE_CONFIG_API_INFO_H_
14#define DBE_CONFIG_API_INFO_H_
15
16#include "conffwk/Schema.hpp"
18
19#include <QString>
20#include <string>
21#include <vector>
22
23namespace dunedaq {
24namespace config {
25struct attribute_t;
26struct class_t;
27struct relationship_t;
28} /* namespace config */
29} /* namespace daq */
30
31//------------------------------------------------------------------------------------------
32namespace dbe {
33namespace config {
34namespace api {
35namespace info {
36//------------------------------------------------------------------------------------------
37// INFO NAMESPACE
38//------------------------------------------------------------------------------------------
39bool
40has_obj(std::string const& classname, std::string const& object_uid);
41
49attributematch(QString const&, QString const&);
50
51namespace relation {
59template<typename T>
61match(T const&, T const&);
62
63template<>
65match<QString>(QString const&, QString const&);
66template<>
68match<std::string>(std::string const&, std::string const&);
69
76bool
78}
79
81{
82public:
88 template<typename T>
89 static inline T allnames();
97 static dunedaq::conffwk::class_t definition(std::string const& cn, bool direct_only);
98
106 template<bool SORTED = true>
107 static std::vector<dbe::inner::configobject::tref> objects(std::string const& cname,
108 bool const keep_inherited = true);
109
116 static bool derived(std::string const& fromclass, std::string const& aclass);
117};
118
119//------------------------------------------------------------------------------------------
120} // end namespace info
121}
122}
123}
124//------------------------------------------------------------------------------------------
125
126#endif /* DBE_CONFIG_API_INFO_H_ */
static bool derived(std::string const &fromclass, std::string const &aclass)
static std::vector< dbe::inner::configobject::tref > objects(std::string const &cname, bool const keep_inherited=true)
static dunedaq::conffwk::class_t definition(std::string const &cn, bool direct_only)
dunedaq::conffwk::relationship_t match< std::string >(std::string const &, std::string const &)
bool is_simple(dunedaq::conffwk::relationship_t const &)
dunedaq::conffwk::relationship_t match(T const &, T const &)
bool has_obj(std::string const &classname, std::string const &object_uid)
dunedaq::conffwk::attribute_t attributematch(QString const &, QString const &)
Include QT Headers.
The DUNE-DAQ namespace.