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
17#include "conffwk/Schema.hpp"
18
19#include <QString>
20#include <string>
21#include <vector>
22
23namespace dunedaq
24{
25namespace config
26{
27struct attribute_t;
28struct class_t;
29struct relationship_t;
30} /* namespace config */
31} /* namespace daq */
32
33//------------------------------------------------------------------------------------------
34namespace dbe
35{
36namespace config
37{
38namespace api
39{
40namespace info
41{
42//------------------------------------------------------------------------------------------
43// INFO NAMESPACE
44//------------------------------------------------------------------------------------------
45bool has_obj ( std::string const & classname, std::string const & object_uid );
46
53 dunedaq::conffwk::attribute_t attributematch ( QString const &, QString const & );
54
55namespace relation
56{
64template<typename T> dunedaq::conffwk::relationship_t match ( T const & , T const &);
65
66template<>
67dunedaq::conffwk::relationship_t match<QString>( QString const &, QString const & );
68template<>
69dunedaq::conffwk::relationship_t match<std::string>( std::string const &, std::string const & );
70
78}
79
81{
82public:
88 template<typename T> static inline T allnames();
96 static dunedaq::conffwk::class_t definition ( std::string const & cn, bool direct_only );
97
105 template<bool SORTED = true>
106 static std::vector<dbe::inner::configobject::tref>
107 objects ( std::string const & cname, bool const keep_inherited = true );
108
115 static bool derived ( std::string const & fromclass, std::string const & aclass );
116};
117
118//------------------------------------------------------------------------------------------
119}// end namespace info
120}
121}
122}
123//------------------------------------------------------------------------------------------
124
125#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< QString >(QString const &, QString const &)
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.
Including Qt Headers.
Definition module.cpp:16