#include <treenode.hpp>
Definition at line 78 of file treenode.hpp.
◆ ObjectNode()
| dbe::ObjectNode::ObjectNode |
( |
dref | ObjectData, |
|
|
bool | IsCopy, |
|
|
treenode * | ParentNode ) |
Definition at line 219 of file treenode.cpp.
220 :
223{
225 if ( not acopy )
226 {
229 false );
230 std::vector<dunedaq::conffwk::attribute_t> Attributes = ClassInfo.
p_attributes;
231 std::vector<dunedaq::conffwk::relationship_t> Relationships = ClassInfo.
p_relationships;
232
233 if ( ( Relationships.size() > 0 ) )
234 {
236 }
237
239 {
240 new AttributeNode ( Attribute,
static_cast<treenode *
> (
this ) );
241 }
242
244 {
245 new RelationshipNode ( Relationship,
static_cast<treenode *
> (
this ) );
246 }
247 }
248
250}
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 254 of file treenode.cpp.
255{
256 switch ( role )
257 {
258
259 case Qt::DisplayRole:
260 return Data.value ( Column );
261
262 case Qt::DecorationRole:
263
264 if ( Column == 0 )
265 {
266 return QIcon ( ":/Images/TextGeneric.png" );
267 }
268 break;
269 }
270
271 return QVariant();
272}
◆ 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