Go to the documentation of this file.
29 #include <RobotAPI/interface/aron.h>
51 std::vector<std::string>& templates,
52 std::vector<std::string>& templateInstantiations,
53 std::map<std::string, InputTypeNonConst>& memberTypes,
71 std::vector<InputTypeNonConst>& acceptedTypes,
86 std::string& defaultValue,
95 std::string& defaultValue,
102 std::string& defaultValue,
108 type::pointcloud::VoxelType& type,
109 std::string& defaultValue,
115 type::image::PixelType& type,
116 std::string& defaultValue,
123 std::map<std::string, int>& acceptedValues,
124 std::string& defaultValue,
130 std::optional<int>& defaultValue,
136 std::optional<long>& defaultValue,
142 std::optional<float>& defaultValue,
148 std::optional<double>& defaultValue,
154 std::optional<std::string>& defaultValue,
160 std::optional<bool>& defaultValue,
virtual void readTuple(const InputType &input, std::vector< InputTypeNonConst > &acceptedTypes, type::Maybe &maybe, Path &p)=0
Extract information from a tuple type.
typename std::remove_const< InputType >::type InputTypeNonConst
virtual void readPointCloud(const InputType &input, type::pointcloud::VoxelType &type, std::string &defaultValue, type::Maybe &maybe, Path &p)=0
Extract information from a pointcloud type.
virtual void readDict(const InputType &input, InputTypeNonConst &acceptedType, type::Maybe &maybe, Path &p)=0
Extract information from a dict type.
virtual void readBool(const InputType &input, std::optional< bool > &defaultValue, type::Maybe &maybe, Path &p)=0
Extract information from an bool type.
virtual void readNDArray(const InputType &input, int &ndim, type::ndarray::ElementType &type, std::string &defaultValue, type::Maybe &maybe, Path &p)=0
Extract information from a ndarray type.
const nlohmann::json InputType
virtual void readMatrix(const InputType &input, int &rows, int &cols, type::matrix::ElementType &type, std::string &defaultValue, type::Maybe &maybe, Path &p)=0
Extract information from a matrix type.
virtual void readPair(const InputType &input, InputTypeNonConst &acceptedTypes1, InputTypeNonConst &acceptedTypes2, type::Maybe &maybe, Path &p)=0
Extract information from a pair type.
virtual void readString(const InputType &input, std::optional< std::string > &defaultValue, type::Maybe &maybe, Path &p)=0
Extract information from an string type.
virtual bool readNull(InputType &input)
Check if input is null.
std::shared_ptr< Value > value()
virtual void readObject(const InputType &input, std::string &name, std::vector< std::string > &templates, std::vector< std::string > &templateInstantiations, std::map< std::string, InputTypeNonConst > &memberTypes, type::Maybe &maybe, Path &p)=0
Extract information from an Object type.
virtual type::Descriptor getDescriptor(InputType &input)=0
virtual void readQuaternion(const InputType &input, type::quaternion::ElementType &type, std::string &defaultValue, type::Maybe &maybe, Path &p)=0
Extract information from a quaternion type.
ReaderT::InputType & input
virtual void readImage(const InputType &input, type::image::PixelType &type, std::string &defaultValue, type::Maybe &maybe, Path &p)=0
Extract information from an image type.
virtual ~ReaderInterface()=default
virtual void readAnyObject(const InputType &input, type::Maybe &maybe, Path &p)=0
Extract information from an time type.
A convenience header to include all aron files (full include, not forward declared)
virtual void readInt(const InputType &input, std::optional< int > &defaultValue, type::Maybe &maybe, Path &p)=0
Extract information from an int type.
virtual void readIntEnum(const InputType &input, std::string &name, std::map< std::string, int > &acceptedValues, std::string &defaultValue, type::Maybe &maybe, Path &p)=0
Extract information from an int enum type.
virtual void readFloat(const InputType &input, std::optional< float > &defaultValue, type::Maybe &maybe, Path &p)=0
Extract information from an float type.
virtual void readDouble(const InputType &input, std::optional< double > &defaultValue, type::Maybe &maybe, Path &p)=0
Extract information from an double type.
virtual void readLong(const InputType &input, std::optional< long > &defaultValue, type::Maybe &maybe, Path &p)=0
Extract information from an long type.
The ReaderInterface class.
virtual void readList(const InputType &input, InputTypeNonConst &acceptedType, type::Maybe &maybe, Path &p)=0
Extract information from a list type.