TypedDataTreeBuilder.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
8 
15 
16 #include "DataTreeBuilderBase.h"
17 
18 
19 class QStringList;
20 
21 
23 {
24 
26  {
27  public:
28 
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,
59 
60  void update(QTreeWidgetItem* item,
61  const std::string& key,
62  const aron::type::VariantPtr& type,
64 
65  void update(QTreeWidgetItem* item,
66  const std::string& key,
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