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

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
serialize.hh File Reference
#include <ase/value.hh>
#include <ase/strings.hh>
#include <ase/jsonapi.hh>

Go to the source code of this file.

Classes

class  Ase::WritLink
 
class  Ase::WritNode
 One entry in a Writ serialization document. More...
 
class  Ase::Writ
 Document containing all information needed to serialize and deserialize a Value. More...
 
struct  Ase::WritConverter< T, typename >
 Template to specialize string conversion for various data types. More...
 
struct  Ase::Has_serialize_f< class, class >
 Has_serialize_f<T> - Check if serialize(T&,WritNode&) is provided for T. More...
 
struct  Ase::Has_serialize_f< T, void_t< decltype(serialize(std::declval< T & >(), std::declval< WritNode & >())) > >
 
struct  Ase::WritConverter< T, REQUIRESv< std::is_integral< T >::value||std::is_floating_point< T >::value > >
 
struct  Ase::WritConverter< T, REQUIRESv< std::is_enum< T >::value > >
 
struct  Ase::WritConverter< T, REQUIRESv< !std::is_base_of< Serializable, T >::value &&!Jsonipc::DerivesVector< T >::value &&!Jsonipc::DerivesSharedPtr< T >::value &&std::is_class< T >::value > >
 
struct  Ase::WritConverter< T, REQUIRESv< std::is_base_of< Serializable, T >::value > >
 

Namespaces

namespace  Ase
 The Anklang C++ API namespace.
 

Typedefs

using Ase::WritP = std::shared_ptr< Writ >
 

Functions

template<class T >
String Ase::json_stringify (const T &source, Writ::Flags flags=Writ::Flags(0))
 Create JSON string from source.
 
template<class T >
bool Ase::json_parse (const String &jsonstring, T &target)
 Parse a well formed JSON string and assign contents to target.
 
template<class T >
Ase::json_parse (const String &jsonstring)
 Parse a well formed JSON string and return the resulting value.
 

Class Documentation

◆ Ase::WritConverter

struct Ase::WritConverter
template<typename T, typename = void>
struct Ase::WritConverter< T, typename >

Template to specialize string conversion for various data types.

Definition at line 124 of file serialize.hh.