Reflection for RapidJSON 0.0.16
Reflection for serializing/deserializing with RapidJSON
Loading...
Searching...
No Matches
ReflectiveRapidJSON::BinarySerializable< Type, v > Struct Template Reference

The BinarySerializable class provides the CRTP-base for (de)serializable objects. More...

#include <serializable.h>

Public Types

using VersionNotSupported = BinaryVersionNotSupported
 

Public Member Functions

void toBinary (std::ostream &outputStream, BinaryVersion version=0) const
 
BinaryVersion restoreFromBinary (std::istream &inputStream)
 

Static Public Member Functions

static Type fromBinary (std::istream &inputStream)
 

Static Public Attributes

static constexpr const char * qualifiedName = "ReflectiveRapidJSON::BinarySerializable"
 
static constexpr auto version = v
 

Detailed Description

template<typename Type, BinaryVersion v>
struct ReflectiveRapidJSON::BinarySerializable< Type, v >

The BinarySerializable class provides the CRTP-base for (de)serializable objects.

Definition at line 22 of file serializable.h.

Member Typedef Documentation

◆ VersionNotSupported

template<typename Type , BinaryVersion v>
using ReflectiveRapidJSON::BinarySerializable< Type, v >::VersionNotSupported = BinaryVersionNotSupported

Definition at line 23 of file serializable.h.

Member Function Documentation

◆ fromBinary()

template<typename Type , BinaryVersion v>
Type ReflectiveRapidJSON::BinarySerializable< Type, v >::fromBinary ( std::istream & inputStream)
static

Definition at line 46 of file serializable.h.

◆ restoreFromBinary()

template<typename Type , BinaryVersion v>
BinaryVersion ReflectiveRapidJSON::BinarySerializable< Type, v >::restoreFromBinary ( std::istream & inputStream)
inline

Definition at line 41 of file serializable.h.

◆ toBinary()

template<typename Type , BinaryVersion v>
void ReflectiveRapidJSON::BinarySerializable< Type, v >::toBinary ( std::ostream & outputStream,
BinaryVersion version = 0 ) const
inline

Definition at line 36 of file serializable.h.

Member Data Documentation

◆ qualifiedName

template<typename Type , BinaryVersion v>
const char* ReflectiveRapidJSON::BinarySerializable< Type, v >::qualifiedName = "ReflectiveRapidJSON::BinarySerializable"
staticconstexpr

Definition at line 28 of file serializable.h.

◆ version

template<typename Type , BinaryVersion v>
auto ReflectiveRapidJSON::BinarySerializable< Type, v >::version = v
staticconstexpr

Definition at line 29 of file serializable.h.


The documentation for this struct was generated from the following files: