DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
config_api_info.hpp
Go to the documentation of this file.
1/*
2 * config_api_info.h
3 *
4 * Created on: Apr 20, 2016
5 * Author: Leonidas Georgopoulos
6 */
7
8#ifndef DBE_CONFIG_API_INFO_H_
9#define DBE_CONFIG_API_INFO_H_
10
12#include "conffwk/Schema.hpp"
13
14#include <QString>
15#include <string>
16#include <vector>
17
18namespace dunedaq
19{
20namespace config
21{
22struct attribute_t;
23struct class_t;
24struct relationship_t;
25} /* namespace config */
26} /* namespace daq */
27
28//------------------------------------------------------------------------------------------
29namespace dbe
30{
31namespace config
32{
33namespace api
34{
35namespace info
36{
37//------------------------------------------------------------------------------------------
38// INFO NAMESPACE
39//------------------------------------------------------------------------------------------
40bool has_obj ( std::string const & classname, std::string const & object_uid );
41
48 dunedaq::conffwk::attribute_t attributematch ( QString const &, QString const & );
49
50namespace relation
51{
59template<typename T> dunedaq::conffwk::relationship_t match ( T const & , T const &);
60
61template<>
62dunedaq::conffwk::relationship_t match<QString>( QString const &, QString const & );
63template<>
64dunedaq::conffwk::relationship_t match<std::string>( std::string const &, std::string const & );
65
73}
74
76{
77public:
83 template<typename T> static inline T allnames();
91 static dunedaq::conffwk::class_t definition ( std::string const & cn, bool direct_only );
92
100 template<bool SORTED = true>
101 static std::vector<dbe::inner::configobject::tref>
102 objects ( std::string const & cname, bool const keep_inherited = true );
103
110 static bool derived ( std::string const & fromclass, std::string const & aclass );
111};
112
113//------------------------------------------------------------------------------------------
114}// end namespace info
115}
116}
117}
118//------------------------------------------------------------------------------------------
119
120#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.