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 147 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 243 of file config_api_graph.cpp.

245{
246 QStringList result;
247 std::vector<ConfigObject> adjacent;
248
249 if ( info::relation::is_simple ( relation ) )
250 {
251 adjacent =
252 { direct::linked<ConfigObject> ( input, relation ) };
253 }
254 else
255 {
257 }
258
259 for ( auto const & x : adjacent )
260 {
261 result.push_back ( x.UID().c_str() );
262 }
263
264 return result;
265}
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 235 of file config_api_graph.cpp.

236{
237 T value;
238 input.get ( relation.p_name, value );
239 return value;
240}

◆ 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 164 of file config_api_graph.cpp.

166{
167 T value;
168 input.get ( relation.p_name, value );
169 return value;
170}

Friends And Related Symbol Documentation

◆ dbe::ui::config::info

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

Definition at line 149 of file config_api_graph.hpp.


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