#include "./reflector.h"
#include <rapidjson/document.h>
#include <string>
Go to the source code of this file.
|
template<typename Type , Traits::EnableIf< std::is_base_of< JsonSerializable< Type >, Type >> * = nullptr> |
JsonSerializable< Type > & | ReflectiveRapidJSON::as (Type &serializable) |
| Helps to disambiguate when inheritance is used. More...
|
|
template<typename Type , Traits::EnableIf< std::is_base_of< JsonSerializable< Type >, Type >> * = nullptr> |
const JsonSerializable< Type > & | ReflectiveRapidJSON::as (const Type &serializable) |
| Helps to disambiguate when inheritance is used. More...
|
|
◆ REFLECTIVE_RAPIDJSON_ENABLE_PRIVATE_MEMBERS
#define REFLECTIVE_RAPIDJSON_ENABLE_PRIVATE_MEMBERS |
( |
|
T | ) |
|
Value: REFLECTIVE_RAPIDJSON_PULL_PRIVATE_MEMBERS(T)
#define REFLECTIVE_RAPIDJSON_PUSH_PRIVATE_MEMBERS(T)
Definition at line 133 of file serializable.h.
◆ REFLECTIVE_RAPIDJSON_MAKE_JSON_SERIALIZABLE
#define REFLECTIVE_RAPIDJSON_MAKE_JSON_SERIALIZABLE |
( |
|
T | ) |
|
Value: }
The AdaptedJsonSerializable class allows considering 3rd party classes as serializable.
Definition at line 108 of file serializable.h.
◆ REFLECTIVE_RAPIDJSON_PULL_PRIVATE_MEMBERS
#define REFLECTIVE_RAPIDJSON_PULL_PRIVATE_MEMBERS |
( |
|
T | ) |
|
Value:friend void ::ReflectiveRapidJSON::JsonReflector::pull<T>(T & reflectable, \
const ::RAPIDJSON_NAMESPACE::GenericValue<::RAPIDJSON_NAMESPACE::UTF8<char>>::ConstObject &value, \
The JsonDeserializationErrors struct can be passed to fromJson() for error handling.
Definition at line 124 of file serializable.h.
◆ REFLECTIVE_RAPIDJSON_PUSH_PRIVATE_MEMBERS
#define REFLECTIVE_RAPIDJSON_PUSH_PRIVATE_MEMBERS |
( |
|
T | ) |
|
Value:friend void ::ReflectiveRapidJSON::JsonReflector::push<T>( \
const T &reflectable, ::RAPIDJSON_NAMESPACE::Value::Object &value, ::RAPIDJSON_NAMESPACE::Document::AllocatorType &allocator)
Definition at line 116 of file serializable.h.