DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dbe::config::api::graph::direct Class Reference

#include <config_api_graph.hpp>

Static Private Member Functions

template<typename T>
static T linked (dunedaq::conffwk::ConfigObject &item, dunedaq::conffwk::relationship_t const &relation)
template<typename T>
static T linked (dunedaq::conffwk::ConfigObject &item, dunedaq::conffwk::attribute_t const &relation)
template<>
QStringList linked (ConfigObject &input, dunedaq::conffwk::relationship_t const &relation)

Friends

class dbe::ui::config::info

Detailed Description

Provide direct access to config object methods for retrieval

Definition at line 152 of file config_api_graph.hpp.

Member Function Documentation

◆ linked() [1/3]

template<>
QStringList dbe::config::api::graph::direct::linked ( ConfigObject & input,
dunedaq::conffwk::relationship_t const & relation )
inlinestaticprivate

Definition at line 248 of file config_api_graph.cpp.

250{
251 QStringList result;
252 std::vector<ConfigObject> adjacent;
253
254 if ( info::relation::is_simple ( relation ) )
255 {
256 adjacent =
257 { direct::linked<ConfigObject> ( input, relation ) };
258 }
259 else
260 {
262 }
263
264 for ( auto const & x : adjacent )
265 {
266 result.push_back ( x.UID().c_str() );
267 }
268
269 return result;
270}
static T linked(dunedaq::conffwk::ConfigObject &item, dunedaq::conffwk::relationship_t const &relation)
T relation(tref item, dunedaq::conffwk::relationship_t const &relation)
bool is_simple(dunedaq::conffwk::relationship_t const &)

◆ linked() [2/3]

template<typename T>
T dbe::config::api::graph::direct::linked ( dunedaq::conffwk::ConfigObject & item,
dunedaq::conffwk::attribute_t const & relation )
inlinestaticprivate

Get object reference/s through a specified relation, acting directly on a ConfigObject

e.g. A-C->B

returns B for object A through relation C

Parameters
itemis the object to retrieve the relation value
relationis the relation to retrieve the value for
Returns
the value of the relation converted to the specified type

Definition at line 240 of file config_api_graph.cpp.

241{
242 T value;
243 input.get ( relation.p_name, value );
244 return value;
245}

◆ linked() [3/3]

template<typename T>
T dbe::config::api::graph::direct::linked ( dunedaq::conffwk::ConfigObject & item,
dunedaq::conffwk::relationship_t const & relation )
inlinestaticprivate

Get object reference/s through a specified relation, acting directly on a ConfigObject

e.g. A-C->B

returns B for object A through relation C

Parameters
itemis the object to retrieve the relation value
relationis the relation to retrieve the value for
Returns
the value of the relation converted to the specified type

Definition at line 169 of file config_api_graph.cpp.

171{
172 T value;
173 input.get ( relation.p_name, value );
174 return value;
175}

◆ dbe::ui::config::info

friend class dbe::ui::config::info
friend

Definition at line 154 of file config_api_graph.hpp.


The documentation for this class was generated from the following files: