Reflection for RapidJSON 0.0.16
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 | |
namespace | ReflectiveRapidJSON |
Enumerations | |
enum class | ReflectiveRapidJSON::JsonDeserializationErrorKind : std::uint8_t { ReflectiveRapidJSON::TypeMismatch , ReflectiveRapidJSON::ArraySizeMismatch , ReflectiveRapidJSON::ConversionError , ReflectiveRapidJSON::UnexpectedDuplicate , ReflectiveRapidJSON::InvalidVariantObject , ReflectiveRapidJSON::InvalidVariantIndex } |
The JsonDeserializationErrorKind enum specifies which kind of error happend when populating variables from parsing results. More... | |
enum class | ReflectiveRapidJSON::JsonType : std::uint8_t { ReflectiveRapidJSON::Null , ReflectiveRapidJSON::Number , ReflectiveRapidJSON::Bool , ReflectiveRapidJSON::String , ReflectiveRapidJSON::Array , ReflectiveRapidJSON::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. | |
constexpr JsonDeserializationErrors::ThrowOn | ReflectiveRapidJSON::operator| (JsonDeserializationErrors::ThrowOn lhs, JsonDeserializationErrors::ThrowOn rhs) |
Combines to ThrowOn values. | |
Contains helper for error handling when deserializing JSON files.
Definition in file errorhandling.h.