Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | List of all members
Jsonipc::Serializable< T > Struct Template Referencefinal

Jsonipc wrapper type for objects that support field-wise serialization to/from JSON. More...

#include "jsonipc.hh"

Inheritance diagram for Jsonipc::Serializable< T >:
[legend]

Public Member Functions

 Serializable ()
 Allow object handles to be streamed to/from Javascript, needs a Scope for temporaries.
 
template<typename A , REQUIRES< std::is_member_object_pointer< A >::value > = true>
Serializableset (const char *name, A attribute)
 Add a member object pointer.
 

Static Public Member Functions

static bool is_serializable ()
 
static JsonValue serialize_to_json (const T &o, JsonAllocator &a)
 
static std::shared_ptr< T > serialize_from_json (const JsonValue &value, const std::shared_ptr< T > &p=0)
 

Detailed Description

template<typename T>
struct Jsonipc::Serializable< T >

Jsonipc wrapper type for objects that support field-wise serialization to/from JSON.

Definition at line 1185 of file jsonipc.hh.

Constructor & Destructor Documentation

◆ Serializable()

template<typename T >
Jsonipc::Serializable< T >::Serializable ( )

Allow object handles to be streamed to/from Javascript, needs a Scope for temporaries.

Definition at line 1187 of file jsonipc.hh.

Member Function Documentation

◆ is_serializable()

template<typename T >
static bool Jsonipc::Serializable< T >::is_serializable ( )
static

Definition at line 1211 of file jsonipc.hh.

◆ serialize_from_json()

template<typename T >
static std::shared_ptr< T > Jsonipc::Serializable< T >::serialize_from_json ( const JsonValue &  value,
const std::shared_ptr< T > &  p = 0 
)
static

Definition at line 1213 of file jsonipc.hh.

◆ serialize_to_json()

template<typename T >
static JsonValue Jsonipc::Serializable< T >::serialize_to_json ( const T &  o,
JsonAllocator &  a 
)
static

Definition at line 1212 of file jsonipc.hh.

◆ set()

template<typename T >
template<typename A , REQUIRES< std::is_member_object_pointer< A >::value > = true>
Serializable & Jsonipc::Serializable< T >::set ( const char name,
attribute 
)

Add a member object pointer.

Definition at line 1195 of file jsonipc.hh.


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