Go to the documentation of this file.
29 #include <SimoxUtility/json.h>
44 const std::vector<std::string>& templates,
45 const std::vector<std::string>& templateInstantiations,
46 const std::map<std::string, ReturnType>& memberTypes,
47 const std::optional<ReturnType>& extends,
48 const type::Maybe maybe,
51 const type::Maybe maybe,
54 const type::Maybe maybe,
58 const type::Maybe maybe,
61 const type::Maybe maybe,
66 const std::string& defaultValue,
67 const type::Maybe maybe,
72 const std::string& defaultValue,
73 const type::Maybe maybe,
76 const std::string& defaultValue,
77 const type::Maybe maybe,
80 const std::string& defaultValue,
81 const type::Maybe maybe,
84 const std::string& defaultValue,
85 const type::Maybe maybe,
89 const std::map<std::string, int>& acceptedValues,
90 const std::string& defaultValue,
91 const type::Maybe maybe,
95 const type::Maybe maybe,
98 const type::Maybe maybe,
101 const type::Maybe maybe,
104 const type::Maybe maybe,
107 const type::Maybe maybe,
110 const type::Maybe maybe,
nlohmann::json ReturnType
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.
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.
The WriterInterface class.
ReturnType writeFloat(const std::optional< float > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override
Construct a float from the params.
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.
ReturnType writeString(const std::optional< std::string > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override
Construct a string from the params.
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.
typename std::add_const< ReturnType >::type ReturnTypeConst
type::Descriptor getDescriptor(ReturnTypeConst &input) final
ReaderT::InputType & input
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.
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.
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.
ReturnType writeInt(const std::optional< int > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override
Construct a int from the params.
ReturnType writeTuple(const std::vector< ReturnType > &acceptedTypes, const type::Maybe maybe, const Path &p=Path()) override
Construct a tuple from the params.
std::filesystem::path Path
ReturnType writeLong(const std::optional< long > &defaultValue, const type::Maybe maybe, const Path &p=Path()) override
Construct a long from the params.
NlohmannJSONWriter()=default
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.