Go to the documentation of this file.
32 #include "../../json/Data.h"
40 getAronMetaInformationForType(
const nlohmann::json&
input,
41 const std::string& expectedType,
48 "Wrong type in json encountered.",
55 p =
Path(pathElements);
68 std::vector<nlohmann::json>& elements,
77 std::map<std::string, nlohmann::json>& elements,
82 .get<std::map<std::string, nlohmann::json>>();
87 std::vector<int>& shape,
88 std::string& typeAsString,
89 std::vector<unsigned char>&
data,
void readString(InputType &input, std::string &s, Path &p) override
void readFloat(InputType &input, float &i, Path &p) override
ReaderT::InputType T & ret
const std::string PATH_SLUG
static data::Descriptor GetDescriptor(Input &n)
void readDict(InputType &input, std::map< std::string, InputTypeNonConst > &elements, Path &p) override
const std::string DOUBLE_TYPENAME_SLUG
const std::string INT_TYPENAME_SLUG
const nlohmann::json InputType
const std::string VALUE_SLUG
const std::string FLOAT_TYPENAME_SLUG
const std::string DATA_SLUG
const std::string DICT_TYPENAME_SLUG
data::Descriptor getDescriptor(InputType &input) final
const std::string NDARRAY_TYPENAME_SLUG
const std::string BOOL_TYPENAME_SLUG
The ValueNotValidException class.
const std::string LIST_TYPENAME_SLUG
const std::string DIMENSIONS_SLUG
ReaderT::InputType & input
void readNDArray(InputType &input, std::vector< int > &shape, std::string &typeAsString, std::vector< unsigned char > &data, Path &p) override
const std::string STRING_TYPENAME_SLUG
void readLong(InputType &input, long &i, Path &p) override
const std::string USED_TYPE_SLUG
void readDouble(InputType &input, double &i, Path &p) override
void readBool(InputType &input, bool &i, Path &p) override
void readInt(InputType &input, int &i, Path &p) override
void readList(InputType &input, std::vector< InputTypeNonConst > &elements, Path &p) override
const std::string TYPE_SLUG
const std::string LONG_TYPENAME_SLUG
std::filesystem::path Path
const std::string ELEMENTS_SLUG