|
#include <RobotAPI/libraries/aron/core/type/rw/writer/variant/VariantWriter.h>
Public Member Functions | |
type::Descriptor | getDescriptor (ReturnTypeConst &input) final |
VariantWriter ()=default | |
ReturnType | writeAnyObject (const type::Maybe maybe, const Path &p=Path()) override |
Construct a time from the params. More... | |
ReturnType | writeBool (const std::optional< bool > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override |
Construct a bool from the params. More... | |
ReturnType | writeDict (const ReturnType &acceptedType, const type::Maybe maybe, const Path &p=Path()) override |
ReturnType | writeDouble (const std::optional< double > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override |
Construct a double from the params. More... | |
ReturnType | writeFloat (const std::optional< float > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override |
Construct a float from the params. More... | |
ReturnType | writeImage (const type::image::PixelType, const std::string &defaultValue, const type::Maybe maybe, const Path &p=Path()) override |
Construct a image from the params. More... | |
ReturnType | writeInt (const std::optional< int > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override |
Construct a int from the params. More... | |
ReturnType | writeIntEnum (const std::string &name, const std::map< std::string, int > &acceptedValues, const std::string &defaultValue, const type::Maybe maybe, const Path &p=Path()) override |
Construct a int enum from the params. More... | |
ReturnType | writeList (const ReturnType &acceptedType, const type::Maybe maybe, const Path &p=Path()) override |
ReturnType | writeLong (const std::optional< long > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override |
Construct a long from the params. More... | |
ReturnType | writeMatrix (const int rows, const int cols, const type::matrix::ElementType type, const std::string &defaultValue, const type::Maybe maybe, const Path &p=Path()) override |
Construct a matrix from the params. More... | |
ReturnType | writeNDArray (const int ndim, const type::ndarray::ElementType, const std::string &defaultValue, const type::Maybe maybe, const Path &p=Path()) override |
Construct a ndarray from the params. More... | |
ReturnType | writeObject (const std::string &name, const std::vector< std::string > &templates, const std::vector< std::string > &templateInstantiations, const std::map< std::string, ReturnType > &memberTypes, const std::optional< ReturnType > &extends, const type::Maybe maybe, const Path &p=Path()) override |
ReturnType | writePair (const ReturnType &acceptedType1, const ReturnType &acceptedType2, const type::Maybe maybe, const Path &p=Path()) override |
ReturnType | writePointCloud (const type::pointcloud::VoxelType, const std::string &defaultValue, const type::Maybe maybe, const Path &p=Path()) override |
Construct a pointcloud from the params. More... | |
ReturnType | writeQuaternion (const type::quaternion::ElementType, const std::string &defaultValue, const type::Maybe maybe, const Path &p=Path()) override |
Construct a quaternion from the params. More... | |
ReturnType | writeString (const std::optional< std::string > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override |
Construct a string from the params. More... | |
ReturnType | writeTuple (const std::vector< ReturnType > &acceptedTypes, const type::Maybe maybe, const Path &p=Path()) override |
Public Member Functions inherited from WriterInterface< aron::type::VariantPtr > | |
virtual ReturnType | writeDict (const ReturnType &acceptedType, const type::Maybe maybe, const Path &p)=0 |
Construct a dict from the params. More... | |
virtual ReturnType | writeList (const ReturnType &acceptedType, const type::Maybe maybe, const Path &p)=0 |
Construct a list from the params. More... | |
virtual ReturnType | writeNull (const Path &p=Path()) |
write a null More... | |
virtual ReturnType | writeObject (const std::string &name, const std::vector< std::string > &templates, const std::vector< std::string > &templateInstantiations, const std::map< std::string, ReturnType > &memberTypes, const std::optional< ReturnType > &extends, const type::Maybe maybe, const Path &p)=0 |
Construct an object from the params. More... | |
virtual ReturnType | writePair (const ReturnType &acceptedType1, const ReturnType &acceptedType2, const type::Maybe maybe, const Path &p)=0 |
Construct a pair from the params. More... | |
virtual ReturnType | writeTuple (const std::vector< ReturnType > &acceptedTypes, const type::Maybe maybe, const Path &p)=0 |
Construct a tuple from the params. More... | |
virtual | ~WriterInterface ()=default |
Additional Inherited Members | |
Public Types inherited from WriterInterface< aron::type::VariantPtr > | |
using | ReturnType = aron::type::VariantPtr |
using | ReturnTypeConst = typename std::add_const< ReturnType >::type |
Definition at line 31 of file VariantWriter.h.
|
default |
|
finalvirtual |
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 33 of file VariantWriter.cpp.
|
overridevirtual |
Construct a time from the params.
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 259 of file VariantWriter.cpp.
|
overridevirtual |
Construct a bool from the params.
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 248 of file VariantWriter.cpp.
|
override |
|
overridevirtual |
Construct a double from the params.
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 226 of file VariantWriter.cpp.
|
overridevirtual |
Construct a float from the params.
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 215 of file VariantWriter.cpp.
|
overridevirtual |
Construct a image from the params.
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 152 of file VariantWriter.cpp.
|
overridevirtual |
Construct a int from the params.
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 193 of file VariantWriter.cpp.
|
overridevirtual |
Construct a int enum from the params.
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 178 of file VariantWriter.cpp.
|
override |
|
overridevirtual |
Construct a long from the params.
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 204 of file VariantWriter.cpp.
|
overridevirtual |
Construct a matrix from the params.
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 122 of file VariantWriter.cpp.
|
overridevirtual |
Construct a ndarray from the params.
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 108 of file VariantWriter.cpp.
|
override |
|
override |
Definition at line 84 of file VariantWriter.cpp.
|
overridevirtual |
Construct a pointcloud from the params.
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 165 of file VariantWriter.cpp.
|
overridevirtual |
Construct a quaternion from the params.
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 139 of file VariantWriter.cpp.
|
overridevirtual |
Construct a string from the params.
Implements WriterInterface< aron::type::VariantPtr >.
Definition at line 237 of file VariantWriter.cpp.
|
override |
Definition at line 97 of file VariantWriter.cpp.