40 getAronMetaInformationForType(
const nlohmann::json& input,
41 const std::string& expectedType,
48 "Wrong type in json encountered.",
55 p =
Path(pathElements);
78 std::vector<nlohmann::json>& elements,
87 std::map<std::string, nlohmann::json>& elements,
92 .get<std::map<std::string, nlohmann::json>>();
97 std::vector<int>& shape,
98 std::string& typeAsString,
99 std::vector<unsigned char>&
data,
const nlohmann::json InputType
void readString(InputType &input, std::string &s, Path &p) override
std::optional< float > readImportance(InputType &input) final
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 IMPORTANCE_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)