Go to the documentation of this file.
32 #include "../../json/Data.h"
40 getAronMetaInformationForType(
const nlohmann::json&
input,
41 const std::string& expectedType,
47 "Wrong type in json encountered.",
54 p =
Path(pathElements);
67 std::vector<std::string>& templates,
68 std::vector<std::string>& templateInstantiations,
69 std::map<std::string, nlohmann::json>& memberTypes,
83 .get<std::vector<std::string>>();
94 nlohmann::json& acceptedType,
106 nlohmann::json& acceptedType,
118 std::vector<nlohmann::json>& acceptedTypes,
131 nlohmann::json& acceptedType1,
132 nlohmann::json& acceptedType2,
141 acceptedType1 =
list[0];
142 acceptedType2 =
list[1];
149 std::string& defaultValue,
168 std::string& defaultValue,
187 std::string& defaultValue,
202 type::pointcloud::VoxelType& type,
203 std::string& defaultValue,
218 type::image::PixelType& type,
219 std::string& defaultValue,
235 std::map<std::string, int>& acceptedValues,
236 std::string& defaultValue,
253 std::optional<int>& defaultValue,
265 defaultValue = std::stoi(d);
272 std::optional<long>& defaultValue,
284 defaultValue = std::stol(d);
291 std::optional<float>& defaultValue,
303 defaultValue = std::stof(d);
310 std::optional<double>& defaultValue,
322 defaultValue = std::stod(d);
329 std::optional<std::string>& defaultValue,
348 std::optional<bool>& defaultValue,
360 defaultValue = std::stoi(d);
const constexpr auto DICT_TYPENAME_SLUG
const constexpr auto DOUBLE_TYPENAME_SLUG
void readPointCloud(InputType &input, type::pointcloud::VoxelType &type, std::string &defaultValue, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
void readMatrix(InputType &input, int &rows, int &cols, type::matrix::ElementType &type, std::string &defaultValue, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
void readDouble(InputType &input, std::optional< double > &defaultValue, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
list(APPEND SOURCES ${QT_RESOURCES}) set(COMPONENT_LIBS ArmarXGui ArmarXCoreObservers ArmarXCoreEigen3Variants PlotterController $
const constexpr auto DIMENSIONS_SLUG
void readPair(InputType &input, InputTypeNonConst &acceptedType1, InputTypeNonConst &acceptedType2, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
const auto String2NDArrayType
static type::Descriptor GetDescriptor(Input &n)
void readIntEnum(InputType &input, std::string &name, std::map< std::string, int > &acceptedValues, std::string &defaultValue, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
void readLong(InputType &input, std::optional< long > &defaultValue, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
const constexpr auto INT_TYPENAME_SLUG
const constexpr auto ANY_OBJECT_TYPENAME_SLUG
const constexpr auto NAME_SLUG
const constexpr auto QUATERNION_TYPENAME_SLUG
void readTuple(InputType &input, std::vector< InputTypeNonConst > &acceptedTypes, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
const constexpr auto PATH_SLUG
const constexpr auto MATRIX_TYPENAME_SLUG
void readAnyObject(InputType &input, type::Maybe &maybe, Path &p) override
void readBool(InputType &input, std::optional< bool > &defaultValue, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
const constexpr auto USED_TYPE_SLUG
const constexpr auto TEMPLATES_SLUG
void readList(InputType &input, InputTypeNonConst &acceptedType, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
const constexpr auto ACCEPTED_TYPE_SLUG
The ValueNotValidException class.
const constexpr auto TUPLE_TYPENAME_SLUG
const auto String2VoxelType
const constexpr auto BOOL_TYPENAME_SLUG
const constexpr auto TYPE_SLUG
const constexpr auto MAYBE_SLUG
ReaderT::InputType & input
const constexpr auto INT_ENUM_TYPENAME_SLUG
void readQuaternion(InputType &input, type::quaternion::ElementType &type, std::string &defaultValue, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
const auto String2QuaternionType
void readInt(InputType &input, std::optional< int > &defaultValue, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
const constexpr auto POINT_CLOUD_TYPENAME_SLUG
const constexpr auto PAIR_TYPENAME_SLUG
const constexpr auto IMAGE_TYPENAME_SLUG
const constexpr auto MEMBERS_SLUG
const constexpr auto LIST_TYPENAME_SLUG
void readFloat(InputType &input, std::optional< float > &defaultValue, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
const constexpr auto OBJECT_TYPENAME_SLUG
const constexpr auto LONG_TYPENAME_SLUG
const constexpr auto STRING_TYPENAME_SLUG
void readNDArray(InputType &input, int &ndim, type::ndarray::ElementType &type, std::string &defaultValue, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
const auto String2MatrixType
const constexpr auto TEMPLATE_INSTANTIATIONS_SLUG
type::Descriptor getDescriptor(InputType &input) final
void readDict(InputType &input, InputTypeNonConst &acceptedType, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
std::filesystem::path Path
void readObject(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= *std::unique_ptr< Path >(new Path())) override
const constexpr auto DEFAULT_SLUG
void readImage(InputType &input, type::image::PixelType &type, std::string &defaultValue, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
const constexpr auto NDARRAY_TYPENAME_SLUG
void readString(InputType &input, std::optional< std::string > &defaultValue, type::Maybe &maybe, Path &p= *std::unique_ptr< Path >(new Path())) override
const auto String2PixelType
const constexpr auto ELEMENTS_SLUG
const constexpr auto FLOAT_TYPENAME_SLUG