Go to the documentation of this file.
29 #include <RobotAPI/interface/aron.h>
50 const std::vector<std::string>& templates,
51 const std::vector<std::string>& templateInstantiations,
52 const std::map<std::string, ReturnType>& memberTypes,
53 const std::optional<ReturnType>& extends,
54 const type::Maybe maybe,
68 const type::Maybe maybe,
73 const type::Maybe maybe,
79 const std::string& defaultValue,
80 const type::Maybe maybe,
87 const std::string& defaultValue,
88 const type::Maybe maybe,
93 const std::string& defaultValue,
94 const type::Maybe maybe,
99 const std::string& defaultValue,
100 const type::Maybe maybe,
105 const std::string& defaultValue,
106 const type::Maybe maybe,
111 const std::map<std::string, int>& acceptedValues,
112 const std::string& defaultValue,
113 const type::Maybe maybe,
118 const type::Maybe maybe,
123 const type::Maybe maybe,
128 const type::Maybe maybe,
133 const type::Maybe maybe,
138 const type::Maybe maybe,
143 const type::Maybe maybe,
nlohmann::json ReturnType
virtual ReturnType writeLong(const std::optional< long > &defaultValue, const type::Maybe maybe, const Path &p)=0
Construct a long from the params.
virtual ReturnType writeNull(const Path &p=Path())
write a null
virtual ReturnType writeImage(const type::image::PixelType type, const std::string &defaultValue, const type::Maybe maybe, const Path &p)=0
Construct a image from the params.
The WriterInterface class.
virtual ReturnType writeNDArray(const int ndim, const type::ndarray::ElementType type, const std::string &defaultValue, const type::Maybe maybe, const Path &p)=0
Construct a ndarray from the params.
virtual ReturnType writeTuple(const std::vector< ReturnType > &acceptedTypes, const type::Maybe maybe, const Path &p)=0
Construct a tuple from the params.
virtual ReturnType writeDict(const ReturnType &acceptedType, const type::Maybe maybe, const Path &p)=0
Construct a dict from the params.
virtual ReturnType writePointCloud(const type::pointcloud::VoxelType, const std::string &defaultValue, const type::Maybe maybe, const Path &p)=0
Construct a pointcloud from the params.
virtual ReturnType writeDouble(const std::optional< double > &defaultValue, const type::Maybe maybe, const Path &p)=0
Construct a double from the params.
std::shared_ptr< Value > value()
typename std::add_const< ReturnType >::type ReturnTypeConst
virtual ReturnType writePair(const ReturnType &acceptedType1, const ReturnType &acceptedType2, const type::Maybe maybe, const Path &p)=0
Construct a pair from the params.
virtual type::Descriptor getDescriptor(ReturnTypeConst &input)=0
ReaderT::InputType & input
virtual ReturnType writeMatrix(const int rows, const int cols, const type::matrix::ElementType type, const std::string &defaultValue, const type::Maybe maybe, const Path &p)=0
Construct a matrix from the params.
A convenience header to include all aron files (full include, not forward declared)
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.
virtual ReturnType writeFloat(const std::optional< float > &defaultValue, const type::Maybe maybe, const Path &p)=0
Construct a float from the params.
virtual ReturnType writeString(const std::optional< std::string > &defaultValue, const type::Maybe maybe, const Path &p)=0
Construct a string from the params.
virtual ReturnType writeAnyObject(const type::Maybe maybe, const Path &p)=0
Construct a time from the params.
virtual ReturnType writeBool(const std::optional< bool > &defaultValue, const type::Maybe maybe, const Path &p)=0
Construct a bool from the params.
std::filesystem::path Path
virtual ReturnType writeQuaternion(const type::quaternion::ElementType type, const std::string &defaultValue, const type::Maybe maybe, const Path &p)=0
Construct a quaternion from the params.
virtual ~WriterInterface()=default
virtual ReturnType writeList(const ReturnType &acceptedType, const type::Maybe maybe, const Path &p)=0
Construct a list from the params.
virtual ReturnType writeIntEnum(const std::string &name, const std::map< std::string, int > &acceptedValues, const std::string &defaultValue, const type::Maybe maybe, const Path &p)=0
Construct a int enum from the params.
virtual ReturnType writeInt(const std::optional< int > &defaultValue, const type::Maybe maybe, const Path &p)=0
Construct a int from the params.