1 #ifndef REFLECTIVE_RAPIDJSON_BINARY_SERIALIZABLE_H 2 #define REFLECTIVE_RAPIDJSON_BINARY_SERIALIZABLE_H 20 template <
typename Type>
struct BinarySerializable {
21 void toBinary(std::ostream &outputStream)
const;
23 static Type
fromBinary(std::istream &inputStream);
25 static constexpr
const char *
qualifiedName =
"ReflectiveRapidJSON::BinarySerializable";
52 #define REFLECTIVE_RAPIDJSON_MAKE_BINARY_SERIALIZABLE(T) \ 53 template <> struct ReflectiveRapidJSON::AdaptedBinarySerializable<T> : Traits::Bool<true> { \ 58 #endif // REFLECTIVE_RAPIDJSON_BINARY_SERIALIZABLE_H
void write(const Type &pair)
void restoreFromBinary(std::istream &inputStream)
void toBinary(std::ostream &outputStream) const
static Type fromBinary(std::istream &inputStream)
static constexpr const char * qualifiedName
The BinarySerializable class provides the CRTP-base for (de)serializable objects. ...