TypedDataTreeBuilder.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
#include <
RobotAPI/libraries/aron/core/data/variant/Variant.h
>
6
#include <
RobotAPI/libraries/aron/core/data/variant/container/Dict.h
>
7
#include <
RobotAPI/libraries/aron/core/data/variant/container/List.h
>
8
9
#include <
RobotAPI/libraries/aron/core/type/variant/Variant.h
>
10
#include <
RobotAPI/libraries/aron/core/type/variant/container/Dict.h
>
11
#include <
RobotAPI/libraries/aron/core/type/variant/container/List.h
>
12
#include <
RobotAPI/libraries/aron/core/type/variant/container/Object.h
>
13
#include <
RobotAPI/libraries/aron/core/type/variant/container/Pair.h
>
14
#include <
RobotAPI/libraries/aron/core/type/variant/container/Tuple.h
>
15
16
#include "
DataTreeBuilderBase.h
"
17
18
19
class
QStringList;
20
21
22
namespace
armarx::armem::gui::instance
23
{
24
25
class
TypedDataTreeBuilder
:
public
DataTreeBuilderBase
26
{
27
public
:
28
29
TypedDataTreeBuilder
();
30
31
32
void
updateTree
(QTreeWidgetItem* parent,
33
const
aron::type::Dict
& type,
34
const
aron::data::Dict
&
data
);
35
void
updateTree
(QTreeWidgetItem* parent,
36
const
aron::type::AnyObject
& type,
37
const
aron::data::Dict
&
data
);
38
void
updateTree
(QTreeWidgetItem* parent,
39
const
aron::type::Object
& type,
40
const
aron::data::Dict
&
data
);
41
42
void
updateTree
(QTreeWidgetItem* parent,
43
const
aron::type::List
& type,
44
const
aron::data::List
&
data
);
45
void
updateTree
(QTreeWidgetItem* parent,
46
const
aron::type::Pair
& type,
47
const
aron::data::List
&
data
);
48
void
updateTree
(QTreeWidgetItem* parent,
49
const
aron::type::Tuple
& type,
50
const
aron::data::List
&
data
);
51
52
53
protected
:
54
55
void
updateDispatch
(QTreeWidgetItem* item,
56
const
std::string& key,
57
const
aron::type::VariantPtr
& type,
58
const
aron::data::VariantPtr
&
data
);
59
60
void
update
(QTreeWidgetItem* item,
61
const
std::string& key,
62
const
aron::type::VariantPtr
& type,
63
const
aron::data::VariantPtr
&
data
);
64
65
void
update
(QTreeWidgetItem* item,
66
const
std::string& key,
67
const
aron::data::VariantPtr
&
data
);
68
69
template
<
class
DataT,
class
TypeT>
70
void
_updateTree
(QTreeWidgetItem* item, TypeT& type, DataT&
data
);
71
72
};
73
74
75
}
armarx::aron::type::AnyObject
The AnyObject class.
Definition:
AnyObject.h:37
Variant.h
armarx::aron::type::VariantPtr
std::shared_ptr< Variant > VariantPtr
Definition:
forward_declarations.h:11
armarx::armem::gui::instance::TypedDataTreeBuilder::updateTree
void updateTree(QTreeWidgetItem *parent, const aron::type::Dict &type, const aron::data::Dict &data)
Definition:
TypedDataTreeBuilder.cpp:24
List.h
armarx::armem::gui::instance::TypedDataTreeBuilder::TypedDataTreeBuilder
TypedDataTreeBuilder()
Definition:
TypedDataTreeBuilder.cpp:19
armarx::aron::type::List
The List class.
Definition:
List.h:39
armarx::aron::type::Object
The Object class.
Definition:
Object.h:42
armarx::aron::data::List
Definition:
List.h:43
Dict.h
armarx::aron::type::Tuple
The Tuple class.
Definition:
Tuple.h:39
armarx::aron::data::VariantPtr
std::shared_ptr< Variant > VariantPtr
Definition:
forward_declarations.h:11
Object.h
Variant.h
armarx::armem::gui::instance
Definition:
AronDataView.cpp:2
Pair.h
armarx::aron::type::Dict
The Dict class.
Definition:
Dict.h:40
data
uint8_t data[1]
Definition:
EtherCATFrame.h:68
armarx::armem::gui::instance::TypedDataTreeBuilder
Definition:
TypedDataTreeBuilder.h:25
armarx::aron::type::Pair
The Pair class.
Definition:
Pair.h:39
armarx::armem::gui::instance::TypedDataTreeBuilder::updateDispatch
void updateDispatch(QTreeWidgetItem *item, const std::string &key, const aron::type::VariantPtr &type, const aron::data::VariantPtr &data)
Definition:
TypedDataTreeBuilder.cpp:180
armarx::armem::gui::instance::TypedDataTreeBuilder::_updateTree
void _updateTree(QTreeWidgetItem *item, TypeT &type, DataT &data)
Definition:
TypedDataTreeBuilder.cpp:315
DataTreeBuilderBase.h
armarx::armem::gui::instance::DataTreeBuilderBase
Definition:
DataTreeBuilderBase.h:19
Tuple.h
Dict.h
List.h
armarx::armem::gui::instance::TypedDataTreeBuilder::update
void update(QTreeWidgetItem *item, const std::string &key, const aron::type::VariantPtr &type, const aron::data::VariantPtr &data)
Definition:
TypedDataTreeBuilder.cpp:196
armarx::aron::data::Dict
Definition:
Dict.h:44
RobotAPI
libraries
armem_gui
instance
tree_builders
TypedDataTreeBuilder.h
Generated on Sat Oct 12 2024 09:14:08 for armarx_documentation by
1.8.17