Go to the documentation of this file.
30 #include "../../json/Data.h"
38 setupAronMetaInformationForType(nlohmann::json& json,
39 const std::string& type,
40 const type::Maybe& maybe,
57 const std::vector<std::string>& templates,
58 const std::vector<std::string>& templateInstantiations,
59 const std::map<std::string, nlohmann::json>& memberTypes,
60 const std::optional<nlohmann::json>& extends,
61 const type::Maybe maybe,
67 if (extends.has_value())
71 if (!templates.empty())
75 if (!templateInstantiations.empty())
81 for (
const auto& [key,
value] : memberTypes)
90 const type::Maybe maybe,
101 const type::Maybe maybe,
112 const nlohmann::json& acceptedType2,
113 const type::Maybe maybe,
124 const type::Maybe maybe,
136 const std::string& defaultValue,
137 const type::Maybe maybe,
152 const std::string& defaultValue,
153 const type::Maybe maybe,
166 const std::string& defaultValue,
167 const type::Maybe maybe,
171 setupAronMetaInformationForType(
181 const std::string& defaultValue,
182 const type::Maybe maybe,
194 const std::string& defaultValue,
195 const type::Maybe maybe,
199 setupAronMetaInformationForType(
208 const std::map<std::string, int>& acceptedValues,
209 const std::string& defaultValue,
210 const type::Maybe maybe,
219 for (
const auto& [key,
value] : acceptedValues)
228 const type::Maybe maybe,
240 const type::Maybe maybe,
252 const type::Maybe maybe,
264 const type::Maybe maybe,
276 const type::Maybe maybe,
287 const type::Maybe maybe,
301 setupAronMetaInformationForType(
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.
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.
const constexpr auto DICT_TYPENAME_SLUG
const constexpr auto DOUBLE_TYPENAME_SLUG
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.
const constexpr auto DIMENSIONS_SLUG
static type::Descriptor GetDescriptor(Input &n)
const constexpr auto EXTENDS_SLUG
ReturnType writeFloat(const std::optional< float > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override
Construct a float from the params.
const constexpr auto INT_TYPENAME_SLUG
const constexpr auto ANY_OBJECT_TYPENAME_SLUG
const std::map< type::quaternion::ElementType, std::string > QuaternionType2String
ReturnType writeDict(const ReturnType &acceptedType, const type::Maybe maybe, const Path &p=Path()) override
Construct a dict from the params.
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
Construct an object from the params.
const constexpr auto NAME_SLUG
const constexpr auto QUATERNION_TYPENAME_SLUG
const std::map< type::image::PixelType, std::string > PixelType2String
const constexpr auto PATH_SLUG
const constexpr auto MATRIX_TYPENAME_SLUG
ReturnType writeString(const std::optional< std::string > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override
Construct a string from the params.
const constexpr auto USED_TYPE_SLUG
const constexpr auto TEMPLATES_SLUG
const constexpr auto ACCEPTED_TYPE_SLUG
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.
std::shared_ptr< Value > value()
typename std::add_const< ReturnType >::type ReturnTypeConst
const constexpr auto TUPLE_TYPENAME_SLUG
const constexpr auto BOOL_TYPENAME_SLUG
const constexpr auto TYPE_SLUG
const constexpr auto MAYBE_SLUG
type::Descriptor getDescriptor(ReturnTypeConst &input) final
ReaderT::InputType & input
const constexpr auto INT_ENUM_TYPENAME_SLUG
const constexpr auto POINT_CLOUD_TYPENAME_SLUG
ReturnType writeAnyObject(const type::Maybe maybe, const Path &p=Path()) override
Construct a time from the params.
ReturnType writeDouble(const std::optional< double > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override
Construct a double from the params.
const constexpr auto PAIR_TYPENAME_SLUG
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.
ReturnType writeList(const ReturnType &acceptedType, const type::Maybe maybe, const Path &p=Path()) override
Construct a list from the params.
const constexpr auto IMAGE_TYPENAME_SLUG
const constexpr auto MEMBERS_SLUG
const std::map< type::ndarray::ElementType, std::string > NDArrayType2String
const std::map< type::matrix::ElementType, std::string > MatrixType2String
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.
const constexpr auto LIST_TYPENAME_SLUG
const constexpr auto OBJECT_TYPENAME_SLUG
const std::string & to_string(const std::string &s)
const constexpr auto LONG_TYPENAME_SLUG
const constexpr auto STRING_TYPENAME_SLUG
ReturnType writeInt(const std::optional< int > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override
Construct a int from the params.
const std::map< type::Maybe, std::string > Maybe2String
const constexpr auto TEMPLATE_INSTANTIATIONS_SLUG
ReturnType writeTuple(const std::vector< ReturnType > &acceptedTypes, const type::Maybe maybe, const Path &p=Path()) override
Construct a tuple from the params.
const constexpr auto DEFAULT_SLUG
const constexpr auto NDARRAY_TYPENAME_SLUG
ReturnType writeLong(const std::optional< long > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override
Construct a long from the params.
const constexpr auto ELEMENTS_SLUG
const std::map< type::pointcloud::VoxelType, std::string > VoxelType2String
const constexpr auto FLOAT_TYPENAME_SLUG
std::vector< std::string > getPath() const
ReturnType writeBool(const std::optional< bool > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override
Construct a bool from the params.
ReturnType writePair(const ReturnType &acceptedType1, const ReturnType &acceptedType2, const type::Maybe maybe, const Path &p=Path()) override
Construct a pair from the params.