DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
treenode.hpp
Go to the documentation of this file.
1
// DUNE DAQ modification notice:
2
// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3
// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4
// Renamed since fork: yes (from dbe/treenode.h to include/dbe/treenode.hpp).
5
6
#ifndef NODE_H
7
#define NODE_H
8
9
#include "
dbe/config_reference.hpp
"
10
11
#include"
conffwk/ConfigObject.hpp
"
12
#include"
conffwk/Configuration.hpp
"
13
#include"
conffwk/Schema.hpp
"
14
#include "
dbe/datahandler.hpp
"
15
16
namespace
dbe
17
{
18
19
class
treenode
20
{
21
public
:
22
treenode
(
treenode
* ParentNode =
nullptr
);
23
treenode
( QString
const
& Datum,
treenode
* ParentNode =
nullptr
);
24
treenode
( QStringList
const
& DataList,
treenode
* ParentNode =
nullptr
);
25
26
virtual
~treenode
();
27
28
virtual
QVariant
GetData
(
const
int
Column,
int
role = Qt::DisplayRole )
const
;
29
30
virtual
tref
GetObject
()
const
;
31
32
int
GetRow
()
const
;
33
34
virtual
void
AddChild
(
treenode
* Child );
35
36
virtual
void
RemoveChild
(
treenode
* Child );
37
38
treenode
*
GetChild
(
const
int
Row )
const
;
39
40
QList<treenode *>
GetChildren
()
const
;
41
42
treenode
*
GetParent
()
const
;
43
44
int
ChildCount
()
const
;
45
int
ColumnCount
()
const
;
46
47
void
SetHasStructure
(
bool
Structure );
48
bool
GetHasStructure
()
const
;
49
void
SetWasFetched
(
bool
Fetched );
50
bool
GetWasFetched
()
const
;
51
52
void
rename
( QString
const
& );
53
54
protected
:
55
treenode
*
Parent
;
56
QList<treenode *>
Children
;
57
QList<QVariant>
Data
;
58
bool
HasStructure
;
59
bool
WasFetched
;
60
};
61
62
class
ClassNode
:
public
treenode
63
{
64
public
:
65
ClassNode
(
const
dunedaq::conffwk::class_t
& Info,
treenode
* ParentNode );
66
~ClassNode
();
67
[[nodiscard]]
virtual
QVariant
GetData
(
68
int
Column,
int
role = Qt::DisplayRole )
const
;
69
[[nodiscard]]
dunedaq::conffwk::class_t
GetClassInfo
()
const
;
70
[[nodiscard]]
const
QVariant&
get_tooltip
()
const
{
return
m_tooltip
;};
71
void
AddChild
(
treenode
* Child )
override
;
72
void
RemoveChild
(
treenode
* Child )
override
;
73
74
protected
:
75
void
updateData
(
bool
addition);
76
77
private
:
78
dunedaq::conffwk::class_t
ClassInfo
;
79
unsigned
int
numObjects
;
80
QVariant
m_tooltip
;
81
};
82
83
class
ObjectNode
:
public
treenode
84
{
85
public
:
86
ObjectNode
(
dref
ObjectData,
bool
IsCopy,
treenode
* ParentNode );
87
~ObjectNode
();
88
virtual
QVariant
GetData
(
const
int
Column,
int
role = Qt::DisplayRole )
const
;
89
tref
GetObject
()
const
;
90
private
:
91
dref
configdata
;
92
};
93
94
class
AttributeNode
:
public
treenode
95
{
96
public
:
97
AttributeNode
(
const
dunedaq::conffwk::attribute_t
& AttributeData,
treenode
* ParentNode );
98
~AttributeNode
();
99
virtual
QVariant
GetData
(
const
int
Column,
int
role = Qt::DisplayRole )
const
;
100
dunedaq::conffwk::attribute_t
attribute_t
()
const
;
101
private
:
102
dunedaq::conffwk::attribute_t
attribute_t_definition
;
103
};
104
105
class
RelationshipNode
:
public
treenode
106
{
107
public
:
108
RelationshipNode
(
const
dunedaq::conffwk::relationship_t
& RelationshipData,
109
treenode
* ParentNode );
110
~RelationshipNode
();
111
virtual
QVariant
GetData
(
const
int
Column,
int
role = Qt::DisplayRole )
const
;
112
dunedaq::conffwk::relationship_t
relation_t
()
const
;
113
private
:
114
dunedaq::conffwk::relationship_t
relation_t_definition
;
115
};
116
117
}
// namespace dbe
118
#endif
// NODE_H
ConfigObject.hpp
dbe::AttributeNode::GetData
virtual QVariant GetData(const int Column, int role=Qt::DisplayRole) const
Definition
treenode.cpp:316
dbe::AttributeNode::attribute_t
dunedaq::conffwk::attribute_t attribute_t() const
Definition
treenode.cpp:335
dbe::AttributeNode::~AttributeNode
~AttributeNode()
dbe::AttributeNode::AttributeNode
AttributeNode(const dunedaq::conffwk::attribute_t &AttributeData, treenode *ParentNode)
Definition
treenode.cpp:284
dbe::AttributeNode::attribute_t_definition
dunedaq::conffwk::attribute_t attribute_t_definition
Definition
treenode.hpp:102
dbe::ClassNode::AddChild
void AddChild(treenode *Child) override
Definition
treenode.cpp:183
dbe::ClassNode::numObjects
unsigned int numObjects
Definition
treenode.hpp:79
dbe::ClassNode::GetClassInfo
dunedaq::conffwk::class_t GetClassInfo() const
Definition
treenode.cpp:219
dbe::ClassNode::updateData
void updateData(bool addition)
Definition
treenode.cpp:166
dbe::ClassNode::GetData
virtual QVariant GetData(int Column, int role=Qt::DisplayRole) const
Definition
treenode.cpp:195
dbe::ClassNode::m_tooltip
QVariant m_tooltip
Definition
treenode.hpp:80
dbe::ClassNode::~ClassNode
~ClassNode()
Definition
treenode.cpp:162
dbe::ClassNode::RemoveChild
void RemoveChild(treenode *Child) override
Definition
treenode.cpp:189
dbe::ClassNode::ClassInfo
dunedaq::conffwk::class_t ClassInfo
Definition
treenode.hpp:78
dbe::ClassNode::get_tooltip
const QVariant & get_tooltip() const
Definition
treenode.hpp:70
dbe::ClassNode::ClassNode
ClassNode(const dunedaq::conffwk::class_t &Info, treenode *ParentNode)
Definition
treenode.cpp:151
dbe::ObjectNode::ObjectNode
ObjectNode(dref ObjectData, bool IsCopy, treenode *ParentNode)
Definition
treenode.cpp:224
dbe::ObjectNode::GetObject
tref GetObject() const
Definition
treenode.cpp:279
dbe::ObjectNode::configdata
dref configdata
Definition
treenode.hpp:91
dbe::ObjectNode::~ObjectNode
~ObjectNode()
dbe::ObjectNode::GetData
virtual QVariant GetData(const int Column, int role=Qt::DisplayRole) const
Definition
treenode.cpp:259
dbe::RelationshipNode::GetData
virtual QVariant GetData(const int Column, int role=Qt::DisplayRole) const
Definition
treenode.cpp:392
dbe::RelationshipNode::relation_t_definition
dunedaq::conffwk::relationship_t relation_t_definition
Definition
treenode.hpp:114
dbe::RelationshipNode::~RelationshipNode
~RelationshipNode()
dbe::RelationshipNode::relation_t
dunedaq::conffwk::relationship_t relation_t() const
Definition
treenode.cpp:411
dbe::RelationshipNode::RelationshipNode
RelationshipNode(const dunedaq::conffwk::relationship_t &RelationshipData, treenode *ParentNode)
Definition
treenode.cpp:340
dbe::treenode
Definition
treenode.hpp:20
dbe::treenode::ColumnCount
int ColumnCount() const
Definition
treenode.cpp:126
dbe::treenode::~treenode
virtual ~treenode()
Definition
treenode.cpp:59
dbe::treenode::GetParent
treenode * GetParent() const
Definition
treenode.cpp:116
dbe::treenode::RemoveChild
virtual void RemoveChild(treenode *Child)
Definition
treenode.cpp:101
dbe::treenode::rename
void rename(QString const &)
Definition
treenode.cpp:76
dbe::treenode::SetHasStructure
void SetHasStructure(bool Structure)
Definition
treenode.cpp:131
dbe::treenode::WasFetched
bool WasFetched
Definition
treenode.hpp:59
dbe::treenode::GetHasStructure
bool GetHasStructure() const
Definition
treenode.cpp:136
dbe::treenode::GetObject
virtual tref GetObject() const
Definition
treenode.cpp:81
dbe::treenode::treenode
treenode(treenode *ParentNode=nullptr)
Including QT Headers.
Definition
treenode.cpp:29
dbe::treenode::GetChildren
QList< treenode * > GetChildren() const
Definition
treenode.cpp:111
dbe::treenode::GetChild
treenode * GetChild(const int Row) const
Definition
treenode.cpp:106
dbe::treenode::ChildCount
int ChildCount() const
Definition
treenode.cpp:121
dbe::treenode::AddChild
virtual void AddChild(treenode *Child)
Definition
treenode.cpp:96
dbe::treenode::Parent
treenode * Parent
Definition
treenode.hpp:55
dbe::treenode::GetWasFetched
bool GetWasFetched() const
Definition
treenode.cpp:146
dbe::treenode::GetData
virtual QVariant GetData(const int Column, int role=Qt::DisplayRole) const
Definition
treenode.cpp:64
dbe::treenode::Children
QList< treenode * > Children
Definition
treenode.hpp:56
dbe::treenode::HasStructure
bool HasStructure
Definition
treenode.hpp:58
dbe::treenode::SetWasFetched
void SetWasFetched(bool Fetched)
Definition
treenode.cpp:141
dbe::treenode::GetRow
int GetRow() const
Definition
treenode.cpp:86
dbe::treenode::Data
QList< QVariant > Data
Definition
treenode.hpp:57
Configuration.hpp
conffwk entry point
Schema.hpp
config_reference.hpp
datahandler.hpp
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:18
dbe::tref
inner::configobject::tref tref
Definition
tref.hpp:35
dbe::dref
config_object_description dref
Definition
confobject_desc.hpp:109
dunedaq::conffwk::attribute_t
Definition
Schema.hpp:59
dunedaq::conffwk::class_t
Definition
Schema.hpp:162
dunedaq::conffwk::relationship_t
Definition
Schema.hpp:120
Generated on
for DUNE-DAQ by
1.17.0