Class Ase::Writ
Document containing all information needed to serialize and deserialize a Value .
#include <serialize.hh>
Public Types
Type | Name |
---|---|
enum | Flags |
Public Functions
Type | Name |
---|---|
Writ (Flags flags=Flags(0)) |
|
bool | from_json (const String & jsonstring) |
bool | in_load () const Return true during deserialization. |
bool | in_save () const Return true during serialization. |
bool | load (T & target) |
void | save (T & source) |
String | to_json () |
Public Static Functions
Type | Name |
---|---|
void | blank_enum (const String & enumname) |
void | not_serializable (const String & classname) |
bool | typedata_find_maximum (const StringS & typedata, const std::string & fieldname, long double * limit) Find the maximum value for field of typedata. |
bool | typedata_find_minimum (const StringS & typedata, const std::string & fieldname, long double * limit) Find the minimum value for field of typedata. |
bool | typedata_is_loadable (const StringS & typedata, const String & fieldname) Check for the writable and storage flags in the hints field of typedata. |
bool | typedata_is_storable (const StringS & typedata, const String & fieldname) Check for the readable and storage flags in the hints field of typedata. |
Public Types Documentation
enum Flags
enum Ase::Writ::Flags {
RELAXED = 1,
SKIP_ZERO = 2,
SKIP_EMPTYSTRING = 4,
SKIP_DEFAULTS = SKIP_ZERO | SKIP_EMPTYSTRING
};
Public Functions Documentation
function Writ
explicit Ase::Writ::Writ (
Flags flags=Flags(0)
)
function from_json
bool Ase::Writ::from_json (
const String & jsonstring
)
function in_load
inline bool Ase::Writ::in_load () const
function in_save
inline bool Ase::Writ::in_save () const
function load
template<class T>
inline bool Ase::Writ::load (
T & target
)
function save
template<class T>
inline void Ase::Writ::save (
T & source
)
function to_json
String Ase::Writ::to_json ()
Public Static Functions Documentation
function blank_enum
static void Ase::Writ::blank_enum (
const String & enumname
)
function not_serializable
static void Ase::Writ::not_serializable (
const String & classname
)
function typedata_find_maximum
static bool Ase::Writ::typedata_find_maximum (
const StringS & typedata,
const std::string & fieldname,
long double * limit
)
function typedata_find_minimum
static bool Ase::Writ::typedata_find_minimum (
const StringS & typedata,
const std::string & fieldname,
long double * limit
)
function typedata_is_loadable
static bool Ase::Writ::typedata_is_loadable (
const StringS & typedata,
const String & fieldname
)
function typedata_is_storable
static bool Ase::Writ::typedata_is_storable (
const StringS & typedata,
const String & fieldname
)
Friends Documentation
friend operator|
inline Flags Ase::Writ::operator| (
Flags a,
Flags b
)
The documentation for this class was generated from the following file /__w/anklang/anklang/ase/serialize.hh