TreeDataVisitorBase Class Reference

#include <RobotAPI/libraries/armem_gui/instance/tree_visitors/TreeDataVisitorBase.h>

+ Inheritance diagram for TreeDataVisitorBase:

Public Member Functions

void setColumns (int key, int value, int type)
 
 TreeDataVisitorBase ()
 
 TreeDataVisitorBase (QTreeWidgetItem *root)
 
virtual ~TreeDataVisitorBase ()
 

Public Attributes

int columnKey = 0
 
int columnType = 2
 
int columnValue = 1
 
std::stack< QTreeWidgetItem * > items
 
std::stack< QTreeWidgetItem * > rootItems
 

Protected Member Functions

bool _visitEnter (const std::string &key, const std::string &type, size_t numChildren)
 
bool _visitExit ()
 
template<class Navigator >
bool addValueRow (const std::string &key, Navigator &n, const std::string &typeName)
 
QStringList makeValueRowStrings (const std::string &key, const std::string &value, const std::string &typeName) const
 
template<class Navigator >
QStringList makeValueRowStrings (const std::string &key, Navigator &n, const std::string &typeName) const
 
void streamValueText (const aron::data::Bool &n, std::stringstream &ss) const
 
void streamValueText (const aron::data::NDArray &n, std::stringstream &ss) const
 
void streamValueText (const aron::data::String &n, std::stringstream &ss) const
 
template<class Navigator >
void streamValueText (Navigator &n, std::stringstream &ss) const
 

Detailed Description

Definition at line 15 of file TreeDataVisitorBase.h.

Constructor & Destructor Documentation

◆ TreeDataVisitorBase() [1/2]

Definition at line 10 of file TreeDataVisitorBase.cpp.

◆ TreeDataVisitorBase() [2/2]

TreeDataVisitorBase ( QTreeWidgetItem *  root)

Definition at line 14 of file TreeDataVisitorBase.cpp.

◆ ~TreeDataVisitorBase()

~TreeDataVisitorBase ( )
virtual

Definition at line 19 of file TreeDataVisitorBase.cpp.

Member Function Documentation

◆ _visitEnter()

bool _visitEnter ( const std::string &  key,
const std::string &  type,
size_t  numChildren 
)
protected

Definition at line 29 of file TreeDataVisitorBase.cpp.

+ Here is the caller graph for this function:

◆ _visitExit()

bool _visitExit ( )
protected

Definition at line 49 of file TreeDataVisitorBase.cpp.

+ Here is the caller graph for this function:

◆ addValueRow()

bool addValueRow ( const std::string &  key,
Navigator n,
const std::string &  typeName 
)
inlineprotected

Definition at line 34 of file TreeDataVisitorBase.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeValueRowStrings() [1/2]

QStringList makeValueRowStrings ( const std::string &  key,
const std::string &  value,
const std::string &  typeName 
) const
inlineprotected

Definition at line 43 of file TreeDataVisitorBase.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeValueRowStrings() [2/2]

QStringList makeValueRowStrings ( const std::string &  key,
Navigator n,
const std::string &  typeName 
) const
inlineprotected

Definition at line 53 of file TreeDataVisitorBase.h.

+ Here is the call graph for this function:

◆ setColumns()

void setColumns ( int  key,
int  value,
int  type 
)

Definition at line 22 of file TreeDataVisitorBase.cpp.

+ Here is the call graph for this function:

◆ streamValueText() [1/4]

void streamValueText ( const aron::data::Bool n,
std::stringstream &  ss 
) const
protected

Definition at line 66 of file TreeDataVisitorBase.cpp.

+ Here is the call graph for this function:

◆ streamValueText() [2/4]

void streamValueText ( const aron::data::NDArray n,
std::stringstream &  ss 
) const
protected

Definition at line 83 of file TreeDataVisitorBase.cpp.

+ Here is the call graph for this function:

◆ streamValueText() [3/4]

void streamValueText ( const aron::data::String n,
std::stringstream &  ss 
) const
protected

Definition at line 78 of file TreeDataVisitorBase.cpp.

+ Here is the call graph for this function:

◆ streamValueText() [4/4]

void streamValueText ( Navigator n,
std::stringstream &  ss 
) const
inlineprotected

Definition at line 61 of file TreeDataVisitorBase.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ columnKey

int columnKey = 0

Definition at line 75 of file TreeDataVisitorBase.h.

◆ columnType

int columnType = 2

Definition at line 77 of file TreeDataVisitorBase.h.

◆ columnValue

int columnValue = 1

Definition at line 76 of file TreeDataVisitorBase.h.

◆ items

std::stack<QTreeWidgetItem*> items

Definition at line 73 of file TreeDataVisitorBase.h.

◆ rootItems

std::stack<QTreeWidgetItem*> rootItems

Definition at line 72 of file TreeDataVisitorBase.h.


The documentation for this class was generated from the following files: