#include <treenode.hpp>
Definition at line 97 of file treenode.hpp.
◆ RelationshipNode()
Definition at line 328 of file treenode.cpp.
330 :
333{
334 Data.append ( QVariant ( QString::fromStdString (
relation.p_name ) ) );
335
336 std::vector<tref> DataList;
338
343 {
344 try
345 {
348 ObjectParent,
349 relation );
350 DataList.push_back (
Data );
351 }
352 catch ( daq::dbe::config_object_retrieval_result_is_null const & e )
353 {
354
355 }
356 }
357 else
358 {
359 DataList =
361 ObjectParent,
363 }
364
365 for (
tref const & Object : DataList )
366 {
367 new ObjectNode ( Object,
true,
static_cast<treenode *
> (
this ) );
368 }
369
370 if ( DataList.size() > 0 )
371 {
373 }
374
376}
dunedaq::conffwk::relationship_t relation_t_definition
treenode * GetParent() const
void SetHasStructure(bool Structure)
virtual tref GetObject() const
treenode(treenode *ParentNode=nullptr)
Including QT Headers.
void SetWasFetched(bool Fetched)
tref relation< tref >(tref object, dunedaq::conffwk::relationship_t const &r)
T relation(tref item, dunedaq::conffwk::relationship_t const &relation)
inner::configobject::tref tref
cardinality_t p_cardinality
◆ ~RelationshipNode()
dbe::RelationshipNode::~RelationshipNode |
( |
| ) |
|
|
default |
◆ GetData()
QVariant dbe::RelationshipNode::GetData |
( |
const int | Column, |
|
|
int | role = Qt::DisplayRole ) const |
|
virtual |
Reimplemented from dbe::treenode.
Definition at line 380 of file treenode.cpp.
381{
382 switch ( role )
383 {
384
385 case Qt::DisplayRole:
386 return Data.value ( Column );
387
388 case Qt::DecorationRole:
389
390 if ( Column == 0 )
391 {
392 return QIcon ( ":/Images/SLink.png" );
393 }
394 }
395
396 return QVariant();
397}
◆ relation_t()
◆ relation_t_definition
The documentation for this class was generated from the following files:
- /github/workspace/dunedaq/sourcecode/dbe/include/dbe/treenode.hpp
- /github/workspace/dunedaq/sourcecode/dbe/src/structure/treenode.cpp