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,
const nlohmann::json InputType
void readString(InputType &input, std::string &s, Path &p) override
void readBool(InputType &input, bool &i, Path &p) override
void readFloat(InputType &input, float &i, Path &p) override
void readNDArray(InputType &input, std::vector< int > &shape, std::string &typeAsString, std::vector< unsigned char > &data, Path &p) override
void readList(InputType &input, std::vector< InputTypeNonConst > &elements, Path &p) override
void readLong(InputType &input, long &i, Path &p) override
data::Descriptor getDescriptor(InputType &input) final
void readDict(InputType &input, std::map< std::string, InputTypeNonConst > &elements, Path &p) override
void readDouble(InputType &input, double &i, Path &p) override
void readInt(InputType &input, int &i, Path &p) override
The ValueNotValidException class.
const std::string FLOAT_TYPENAME_SLUG
const std::string INT_TYPENAME_SLUG
const std::string DATA_SLUG
const std::string LIST_TYPENAME_SLUG
const std::string DOUBLE_TYPENAME_SLUG
const std::string NDARRAY_TYPENAME_SLUG
const std::string DIMENSIONS_SLUG
const std::string ELEMENTS_SLUG
const std::string VALUE_SLUG
const std::string BOOL_TYPENAME_SLUG
const std::string STRING_TYPENAME_SLUG
const std::string DICT_TYPENAME_SLUG
const std::string PATH_SLUG
const std::string LONG_TYPENAME_SLUG
const std::string TYPE_SLUG
const std::string USED_TYPE_SLUG
A convenience header to include all aron files (full include, not forward declared)
static data::Descriptor GetDescriptor(Input &n)