Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
Writ

#include "serialize.hh"

Public Types

enum Flags { RELAXED , SKIP_ZERO , SKIP_EMPTYSTRING , SKIP_DEFAULTS }

Public Member Functions

boolfrom_json (const String &jsonstring)
boolin_load () const
boolin_save () const
template<class T >
boolload (T &target)
template<class T >
voidsave (T &source)
Stringto_json ()
Writ (Flags flags=Flags(0))

Static Public Member Functions

static voidblank_enum (const String &enumname)
static voidnot_serializable (const String &classname)
static booltypedata_find_maximum (const StringS &typedata, const std::string &fieldname, long double *limit)
static booltypedata_find_minimum (const StringS &typedata, const std::string &fieldname, long double *limit)
static booltypedata_is_loadable (const StringS &typedata, const String &fieldname)
static booltypedata_is_storable (const StringS &typedata, const String &fieldname)

Detailed Description

Document containing all information needed to serialize and deserialize a Value.

Member Enumeration Documentation

Flags

enum Flags
Enumerator
RELAXED
SKIP_ZERO
SKIP_EMPTYSTRING
SKIP_DEFAULTS

Constructor & Destructor Documentation

Writ()

Writ ( Flags flags = Flags (0))
explicit

Member Function Documentation

save()

template<class T >
void save ( T & source)

load()

template<class T >
bool load ( T & target)

to_json()

String to_json ( )

from_json()

bool from_json ( const String & jsonstring)

in_load()

bool in_load ( ) const

Return `true` during deserialization.

in_save()

bool in_save ( ) const

Return `true` during serialization.

blank_enum()

void blank_enum ( const String & enumname)
static

not_serializable()

void not_serializable ( const String & classname)
static

typedata_is_loadable()

bool typedata_is_loadable ( const StringS & typedata,
const String & fieldname
)
static

Check for the writable and storage flags in the hints field of typedata.

typedata_is_storable()

bool typedata_is_storable ( const StringS & typedata,
const String & fieldname
)
static

Check for the readable and storage flags in the hints field of typedata.

typedata_find_minimum()

bool typedata_find_minimum ( const StringS & typedata,
const std::string & fieldname,
long double * limit
)
static

Find the minimum value for field of typedata.

typedata_find_maximum()

bool typedata_find_maximum ( const StringS & typedata,
const std::string & fieldname,
long double * limit
)
static

Find the maximum value for field of typedata.