DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
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
"
17
#include "
dbe/config_reference.hpp
"
18
19
#include <QString>
20
#include <string>
21
#include <vector>
22
23
namespace
dunedaq
{
24
namespace
config
{
25
struct
attribute_t;
26
struct
class_t;
27
struct
relationship_t;
28
}
/* namespace config */
29
}
/* namespace daq */
30
31
//------------------------------------------------------------------------------------------
32
namespace
dbe
{
33
namespace
config {
34
namespace
api {
35
namespace
info {
36
//------------------------------------------------------------------------------------------
37
// INFO NAMESPACE
38
//------------------------------------------------------------------------------------------
39
bool
40
has_obj
(std::string
const
& classname, std::string
const
& object_uid);
41
48
dunedaq::conffwk::attribute_t
49
attributematch
(QString
const
&, QString
const
&);
50
51
namespace
relation
{
59
template
<
typename
T>
60
dunedaq::conffwk::relationship_t
61
match
(T
const
&, T
const
&);
62
63
template
<>
64
dunedaq::conffwk::relationship_t
65
match<QString>
(QString
const
&, QString
const
&);
66
template
<>
67
dunedaq::conffwk::relationship_t
68
match<std::string>
(std::string
const
&, std::string
const
&);
69
76
bool
77
is_simple
(
dunedaq::conffwk::relationship_t
const
&);
78
}
79
80
class
onclass
81
{
82
public
:
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_ */
dbe::config::api::info::onclass
Definition
config_api_info.hpp:81
dbe::config::api::info::onclass::derived
static bool derived(std::string const &fromclass, std::string const &aclass)
Definition
config_api_info.cpp:72
dbe::config::api::info::onclass::objects
static std::vector< dbe::inner::configobject::tref > objects(std::string const &cname, bool const keep_inherited=true)
dbe::config::api::info::onclass::allnames
static T allnames()
Definition
config_api.hpp:35
dbe::config::api::info::onclass::definition
static dunedaq::conffwk::class_t definition(std::string const &cn, bool direct_only)
Definition
config_api_info.cpp:102
Schema.hpp
config_reference.hpp
dbe::config::api::info::relation
Definition
config_api_info.hpp:51
dbe::config::api::info::relation::match< std::string >
dunedaq::conffwk::relationship_t match< std::string >(std::string const &, std::string const &)
dbe::config::api::info::relation::is_simple
bool is_simple(dunedaq::conffwk::relationship_t const &)
Definition
config_api_info.cpp:132
dbe::config::api::info::relation::match
dunedaq::conffwk::relationship_t match(T const &, T const &)
dbe::config::api::info::has_obj
bool has_obj(std::string const &classname, std::string const &object_uid)
Definition
config_api_info.cpp:88
dbe::config::api::info::attributematch
dunedaq::conffwk::attribute_t attributematch(QString const &, QString const &)
Definition
config_api_info.cpp:114
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:16
dunedaq::config
Definition
config_api_info.hpp:24
dunedaq
The DUNE-DAQ namespace.
Definition
cib_utilities.cpp:5
dunedaq::conffwk::attribute_t
Definition
Schema.hpp:60
dunedaq::conffwk::class_t
Definition
Schema.hpp:153
dunedaq::conffwk::relationship_t
Definition
Schema.hpp:117
Generated on
for DUNE-DAQ by
1.18.0