#include "serialize.hh"
Public Types | |
enum | Flags { RELAXED , SKIP_ZERO , SKIP_EMPTYSTRING , SKIP_DEFAULTS } |
Public Member Functions | |
bool | from_json (const String &jsonstring) |
bool | in_load () const |
bool | in_save () const |
template<class T > | |
bool | load (T &target) |
template<class T > | |
void | save (T &source) |
String | to_json () |
Writ (Flags flags=Flags(0)) | |
Static Public Member Functions | |
static void | blank_enum (const String &enumname) |
static void | not_serializable (const String &classname) |
static bool | typedata_find_maximum (const StringS &typedata, const std::string &fieldname, long double *limit) |
static bool | typedata_find_minimum (const StringS &typedata, const std::string &fieldname, long double *limit) |
static bool | typedata_is_loadable (const StringS &typedata, const String &fieldname) |
static bool | typedata_is_storable (const StringS &typedata, const String &fieldname) |
Document containing all information needed to serialize and deserialize a Value.
enum Flags |
void save | ( | T & | source | ) |
bool load | ( | T & | target | ) |
String to_json | ( | ) |
bool from_json | ( | const String & | jsonstring | ) |
bool in_load | ( | ) | const |
Return `true` during deserialization.
bool in_save | ( | ) | const |
Return `true` during serialization.
|
static |
|
static |
Check for the writable and storage flags in the hints field of typedata.
Check for the readable and storage flags in the hints field of typedata.
|
static |
Find the minimum value for field of typedata.
|
static |
Find the maximum value for field of typedata.