#include <treenode.hpp>
Definition at line 75 of file treenode.hpp.
◆ ObjectNode()
dbe::ObjectNode::ObjectNode |
( |
dref | ObjectData, |
|
|
bool | IsCopy, |
|
|
treenode * | ParentNode ) |
Definition at line 212 of file treenode.cpp.
213 :
216{
218
219 if ( not acopy )
220 {
223 false );
224 std::vector<dunedaq::conffwk::attribute_t> Attributes = ClassInfo.
p_attributes;
225 std::vector<dunedaq::conffwk::relationship_t> Relationships = ClassInfo.
p_relationships;
226
227 if ( ( Relationships.size() > 0 ) )
228 {
230 }
231
233 {
234 new AttributeNode ( Attribute,
static_cast<treenode *
> (
this ) );
235 }
236
238 {
239 new RelationshipNode ( Relationship,
static_cast<treenode *
> (
this ) );
240 }
241 }
242
244}
static dunedaq::conffwk::class_t definition(std::string const &cn, bool direct_only)
void SetHasStructure(bool Structure)
treenode(treenode *ParentNode=nullptr)
Including QT Headers.
void SetWasFetched(bool Fetched)
const std::vector< attribute_t > p_attributes
const std::vector< relationship_t > p_relationships
◆ ~ObjectNode()
dbe::ObjectNode::~ObjectNode |
( |
| ) |
|
|
default |
◆ GetData()
QVariant dbe::ObjectNode::GetData |
( |
const int | Column, |
|
|
int | role = Qt::DisplayRole ) const |
|
virtual |
Reimplemented from dbe::treenode.
Definition at line 248 of file treenode.cpp.
249{
250 switch ( role )
251 {
252
253 case Qt::DisplayRole:
254 return Data.value ( Column );
255
256 case Qt::DecorationRole:
257
258 if ( Column == 0 )
259 {
260 return QIcon ( ":/Images/TextGeneric.png" );
261 }
262 }
263
264 return QVariant();
265}
◆ GetObject()
dbe::tref dbe::ObjectNode::GetObject |
( |
| ) |
const |
|
virtual |
◆ configdata
dref dbe::ObjectNode::configdata |
|
private |
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