TreeTypedJSONConverter Class Reference

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

+ Inheritance diagram for TreeTypedJSONConverter:

Public Member Functions

const nlohmann::json & getJSON ()
 
MapElements getObjectElements (DataInput &elementData, TypeInput &elementType) override
 
 TreeTypedJSONConverter ()
 
void visitBool (DataInput &elementData, TypeInput &elementType) override
 
void visitDictOnEnter (DataInput &elementData, TypeInput &elementType) override
 
void visitDictOnExit (DataInput &elementData, TypeInput &elementType) override
 
void visitDouble (DataInput &elementData, TypeInput &elementType) override
 
void visitFloat (DataInput &elementData, TypeInput &elementType) override
 
void visitImage (DataInput &elementData, TypeInput &elementType) override
 
void visitInt (DataInput &elementData, TypeInput &elementType) override
 
void visitIntEnum (DataInput &elementData, TypeInput &elementType) override
 
void visitListOnEnter (DataInput &elementData, TypeInput &elementType) override
 
void visitListOnExit (DataInput &elementData, TypeInput &elementType) override
 
void visitLong (DataInput &elementData, TypeInput &elementType) override
 
void visitMatrix (DataInput &elementData, TypeInput &elementType) override
 
void visitNDArray (DataInput &elementData, TypeInput &elementType) override
 
void visitObjectOnEnter (DataInput &elementData, TypeInput &elementType) override
 
void visitObjectOnExit (DataInput &elementData, TypeInput &elementType) override
 
void visitPairOnEnter (DataInput &elementData, TypeInput &elementType) override
 
void visitPairOnExit (DataInput &elementData, TypeInput &elementType) override
 
void visitPointCloud (DataInput &elementData, TypeInput &elementType) override
 
void visitQuaternion (DataInput &elementData, TypeInput &elementType) override
 
void visitString (DataInput &elementData, TypeInput &elementType) override
 
void visitTupleOnEnter (DataInput &elementData, TypeInput &elementType) override
 
void visitTupleOnExit (DataInput &elementData, TypeInput &elementType) override
 
 ~TreeTypedJSONConverter () override=default
 
- Public Member Functions inherited from RecursiveConstTypedVariantVisitor
type::Descriptor getDescriptor (DataInput &o, TypeInput &n) override
 
MapElements getDictElements (DataInput &o, TypeInput &t) override
 
ListElements getListElements (DataInput &o, TypeInput &t) override
 
MapElements getObjectElements (DataInput &o, TypeInput &t) override
 
PairElements getPairElements (DataInput &o, TypeInput &t) override
 
TupleElements getTupleElements (DataInput &o, TypeInput &t) override
 
virtual void visitAronVariant (const data::BoolPtr &, const type::BoolPtr &)
 
virtual void visitAronVariant (const data::DoublePtr &, const type::DoublePtr &)
 
virtual void visitAronVariant (const data::FloatPtr &, const type::FloatPtr &)
 
virtual void visitAronVariant (const data::IntPtr &, const type::IntEnumPtr &)
 
virtual void visitAronVariant (const data::IntPtr &, const type::IntPtr &)
 
virtual void visitAronVariant (const data::LongPtr &, const type::LongPtr &)
 
virtual void visitAronVariant (const data::NDArrayPtr &, const type::ImagePtr &)
 
virtual void visitAronVariant (const data::NDArrayPtr &, const type::MatrixPtr &)
 
virtual void visitAronVariant (const data::NDArrayPtr &, const type::NDArrayPtr &)
 
virtual void visitAronVariant (const data::NDArrayPtr &, const type::PointCloudPtr &)
 
virtual void visitAronVariant (const data::NDArrayPtr &, const type::QuaternionPtr &)
 
virtual void visitAronVariant (const data::StringPtr &, const type::StringPtr &)
 
virtual void visitAronVariantOnEnter (const data::DictPtr &, const type::DictPtr &)
 
virtual void visitAronVariantOnEnter (const data::DictPtr &, const type::ObjectPtr &)
 
virtual void visitAronVariantOnEnter (const data::ListPtr &, const type::ListPtr &)
 
virtual void visitAronVariantOnEnter (const data::ListPtr &, const type::PairPtr &)
 
virtual void visitAronVariantOnEnter (const data::ListPtr &, const type::TuplePtr &)
 
virtual void visitAronVariantOnExit (const data::DictPtr &, const type::DictPtr &)
 
virtual void visitAronVariantOnExit (const data::DictPtr &, const type::ObjectPtr &)
 
virtual void visitAronVariantOnExit (const data::ListPtr &, const type::ListPtr &)
 
virtual void visitAronVariantOnExit (const data::ListPtr &, const type::PairPtr &)
 
virtual void visitAronVariantOnExit (const data::ListPtr &, const type::TuplePtr &)
 
void visitBool (DataInput &, TypeInput &) override
 
void visitDictOnEnter (DataInput &, TypeInput &) override
 
void visitDictOnExit (DataInput &, TypeInput &) override
 
void visitDouble (DataInput &, TypeInput &) override
 
void visitFloat (DataInput &, TypeInput &) override
 
void visitImage (DataInput &, TypeInput &) override
 
void visitInt (DataInput &, TypeInput &) override
 
void visitIntEnum (DataInput &, TypeInput &) override
 
void visitListOnEnter (DataInput &, TypeInput &) override
 
void visitListOnExit (DataInput &, TypeInput &) override
 
void visitLong (DataInput &, TypeInput &) override
 
void visitMatrix (DataInput &, TypeInput &) override
 
void visitNDArray (DataInput &, TypeInput &) override
 
void visitObjectOnEnter (DataInput &, TypeInput &) override
 
void visitObjectOnExit (DataInput &i, TypeInput &j) override
 
void visitPairOnEnter (DataInput &, TypeInput &) override
 
void visitPairOnExit (DataInput &, TypeInput &) override
 
void visitPointCloud (DataInput &, TypeInput &) override
 
void visitQuaternion (DataInput &, TypeInput &) override
 
void visitString (DataInput &, TypeInput &) override
 
void visitTupleOnEnter (DataInput &, TypeInput &) override
 
void visitTupleOnExit (DataInput &, TypeInput &) override
 
virtual ~RecursiveConstTypedVariantVisitor ()=default
 
- Public Member Functions inherited from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >
virtual void visitAnyObject (DataInput &elementData, TypeInput &elementType)
 
virtual void visitUnknown (DataInput &elementData, TypeInput &elementType)
 
virtual ~RecursiveTypedVisitor ()=default
 
- Public Member Functions inherited from TypedVisitorBase< const data::VariantPtr, const type::VariantPtr >
virtual type::Descriptor getDescriptor (DataInput &, TypeInput &)=0
 
virtual ~TypedVisitorBase ()=default
 

Additional Inherited Members

- Public Types inherited from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >
using DataInput = typename TypedVisitorBase< const data::VariantPtr, const type::VariantPtr >::DataInput
 
using DataInputNonConst = typename std::remove_const< DataInput >::type
 
using ListElements = std::vector< std::pair< DataInputNonConst, TypeInputNonConst > >
 
using MapElements = std::map< std::string, std::pair< DataInputNonConst, TypeInputNonConst > >
 
using PairElements = std::pair< std::pair< DataInputNonConst, TypeInputNonConst >, std::pair< DataInputNonConst, TypeInputNonConst > >
 
using TupleElements = std::vector< std::pair< DataInputNonConst, TypeInputNonConst > >
 
using TypeInput = typename TypedVisitorBase< const data::VariantPtr, const type::VariantPtr >::TypeInput
 
using TypeInputNonConst = typename std::remove_const< TypeInput >::type
 
- Public Types inherited from TypedVisitorBase< const data::VariantPtr, const type::VariantPtr >
using DataInput = const data::VariantPtr
 
using TypeInput = const type::VariantPtr
 
- Static Public Member Functions inherited from RecursiveConstTypedVariantVisitor
static MapElements GetDictElements (DataInput &o, TypeInput &t)
 
static ListElements GetListElements (DataInput &o, TypeInput &t)
 
static MapElements GetObjectElements (DataInput &o, TypeInput &t)
 
static MapElements GetObjectElementsWithNullType (DataInput &o, TypeInput &t)
 
static PairElements GetPairElements (DataInput &o, TypeInput &t)
 
static TupleElements GetTupleElements (DataInput &o, TypeInput &t)
 

Detailed Description

Definition at line 12 of file TreeTypedJSONConverter.h.

Constructor & Destructor Documentation

◆ TreeTypedJSONConverter()

Definition at line 14 of file TreeTypedJSONConverter.cpp.

◆ ~TreeTypedJSONConverter()

~TreeTypedJSONConverter ( )
overridedefault

Member Function Documentation

◆ getJSON()

const nlohmann::json & getJSON ( )

Definition at line 20 of file TreeTypedJSONConverter.cpp.

◆ getObjectElements()

TreeTypedJSONConverter::MapElements getObjectElements ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Implements RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 34 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitBool()

void visitBool ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 227 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitDictOnEnter()

void visitDictOnEnter ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 78 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitDictOnExit()

void visitDictOnExit ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 84 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitDouble()

void visitDouble ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 219 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitFloat()

void visitFloat ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 211 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitImage()

void visitImage ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 173 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitInt()

void visitInt ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 195 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitIntEnum()

void visitIntEnum ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

◆ visitListOnEnter()

void visitListOnEnter ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 114 of file TreeTypedJSONConverter.cpp.

+ Here is the caller graph for this function:

◆ visitListOnExit()

void visitListOnExit ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 121 of file TreeTypedJSONConverter.cpp.

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

◆ visitLong()

void visitLong ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 203 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitMatrix()

void visitMatrix ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 129 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitNDArray()

void visitNDArray ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 155 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitObjectOnEnter()

void visitObjectOnEnter ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 40 of file TreeTypedJSONConverter.cpp.

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

◆ visitObjectOnExit()

void visitObjectOnExit ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 69 of file TreeTypedJSONConverter.cpp.

+ Here is the caller graph for this function:

◆ visitPairOnEnter()

void visitPairOnEnter ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 90 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitPairOnExit()

void visitPairOnExit ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 96 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitPointCloud()

void visitPointCloud ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 181 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitQuaternion()

void visitQuaternion ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 163 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitString()

void visitString ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 235 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitTupleOnEnter()

void visitTupleOnEnter ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 102 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

◆ visitTupleOnExit()

void visitTupleOnExit ( DataInput elementData,
TypeInput elementType 
)
overridevirtual

Reimplemented from RecursiveTypedVisitor< const data::VariantPtr, const type::VariantPtr >.

Definition at line 108 of file TreeTypedJSONConverter.cpp.

+ Here is the call graph for this function:

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