|
Reflection for RapidJSON
0.0.15
Reflection for serializing/deserializing with RapidJSON
|
Contains helper for error handling when deserializing JSON files. More...
#include <c++utilities/misc/traits.h>#include <rapidjson/rapidjson.h>#include <cstdint>#include <limits>#include <list>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | ReflectiveRapidJSON::JsonDeserializationError |
| The JsonDeserializationError struct describes any errors of fromJson() except such caused by invalid JSON. More... | |
| struct | ReflectiveRapidJSON::JsonDeserializationErrors |
| The JsonDeserializationErrors struct can be passed to fromJson() for error handling. More... | |
Namespaces | |
| ReflectiveRapidJSON | |
Enumerations | |
| enum | ReflectiveRapidJSON::JsonDeserializationErrorKind : std::uint8_t { ReflectiveRapidJSON::JsonDeserializationErrorKind::TypeMismatch, ReflectiveRapidJSON::JsonDeserializationErrorKind::ArraySizeMismatch, ReflectiveRapidJSON::JsonDeserializationErrorKind::ConversionError, ReflectiveRapidJSON::JsonDeserializationErrorKind::UnexpectedDuplicate, ReflectiveRapidJSON::JsonDeserializationErrorKind::InvalidVariantObject, ReflectiveRapidJSON::JsonDeserializationErrorKind::InvalidVariantIndex } |
| The JsonDeserializationErrorKind enum specifies which kind of error happend when populating variables from parsing results. More... | |
| enum | ReflectiveRapidJSON::JsonType : std::uint8_t { ReflectiveRapidJSON::JsonType::Null, ReflectiveRapidJSON::JsonType::Number, ReflectiveRapidJSON::JsonType::Bool, ReflectiveRapidJSON::JsonType::String, ReflectiveRapidJSON::JsonType::Array, ReflectiveRapidJSON::JsonType::Object } |
| The JsonType enum specifies the JSON data type. More... | |
Functions | |
| template<typename Type , Traits::EnableIf< Traits::Not< std::is_same< Type, bool >>, Traits::Any< std::is_integral< Type >, std::is_floating_point< Type >>> * = nullptr> | |
| constexpr JsonType | ReflectiveRapidJSON::jsonType () |
| constexpr JsonType | ReflectiveRapidJSON::jsonType (RAPIDJSON_NAMESPACE::Type type) |
| Maps the type info provided by RapidJSON to JsonType. More... | |
| constexpr JsonDeserializationErrors::ThrowOn | ReflectiveRapidJSON::operator| (JsonDeserializationErrors::ThrowOn lhs, JsonDeserializationErrors::ThrowOn rhs) |
| Combines to ThrowOn values. More... | |
Contains helper for error handling when deserializing JSON files.
Definition in file errorhandling.h.
1.8.18