Wolframe, 0.0.3

_Wolframe::serialize Namespace Reference

Serialization library (implemented in the library libwolframe_serialize) More...

Namespaces

 traits
 templates for type dependend characteristics in serialization
 

Classes

class  ApiFormData
 Structure to hold an arbitrary C++ structure as owner defined by a serialization definition. More...
 
class  Context
 Global state variables of a running serialization/deserialization procedure (without the stack) More...
 
class  CppFormFunction
 Function of language bindings implemented in C++ with a form as argument and as result. The forms are defined by a serialization description. More...
 
class  CppFormFunctionClosure
 Closure with calling state of called CppFormFunction. More...
 
class  DDLFormParser
 Parser of a form from a serialization defined by a DDL. More...
 
class  DDLFormSerializer
 Serializer of a form defined by a DDL. More...
 
class  DDLParseState
 State stack element for an initializer of a DDL structure from an iterator (serialization) More...
 
class  DDLSerializeState
 State stack element for an iterator on a DDL structure (serializer of VariantStruct) More...
 
class  DDLStructParser
 Initializer of a DDL structure from an iterator (serialization) More...
 
class  DDLStructSerializer
 Iterator on a DDL structure (serializer of VariantStruct) More...
 
class  DescriptiveConfiguration
 
class  EmptyStruct
 Class representing an empty structure. More...
 
struct  Flags
 Set of flags to negotiate source behaviour in serialization and sink behaviour in validation. More...
 
struct  IntrusiveParser
 forward declaration More...
 
class  IntrusiveProperty
 Maps the traits based on structure element type properties to an enumeration value. More...
 
struct  IntrusiveSerializer
 forward declaration More...
 
class  ParseState
 State stack element for an initializer of a structure. More...
 
class  ParseStateStack
 State stack for an initializer of a structure. More...
 
class  SerializeState
 State stack element for an iterator on a structure (serializer) More...
 
class  StructDescription
 Intrusive description of a filter/form map. More...
 
class  StructDescriptionBase
 Base class for structure description used for introspection in serialization/deserialization. More...
 
class  StructParser
 Initializer of a structure based on a structure description feeded with a serialization. More...
 
class  StructSerializer
 Iterator on elements of structures based on a structure description. More...
 

Typedefs

typedef boost::shared_ptr
< CppFormFunction
CppFormFunctionR
 Shared form function reference. More...
 
typedef std::vector
< DDLParseState
DDLParseStateStack
 State stack for an initializer of a DDL structure from an iterator (serialization) More...
 
typedef std::vector
< DDLSerializeState
DDLSerializeStateStack
 State stack for an iterator on a DDL structure (serializer of VariantStruct) More...
 
typedef bool(* ParseValue )(void *value, const types::VariantConst &element)
 
typedef bool(* PrintValue )(const void *ptr, types::VariantConst &value)
 
typedef bool(* FetchElement )(Context &ctx, SerializeStateStack &stk)
 
typedef std::vector
< SerializeState
SerializeStateStack
 State stack for an iterator on a structure (serializer) More...
 

Functions

void parseConfigStructureVP (void *stptr, const serialize::StructDescriptionBase *descr, const config::ConfigurationNode &pt)
 
template<class Structure >
void parseConfigStructure (Structure &st, const config::ConfigurationNode &pt)
 
template<class Structure >
types::PropertyTree::Node structureToPropertyTree (const Structure &st)
 
std::string structureToStringVP (const void *stptr, const serialize::StructDescriptionBase *descr)
 
template<class Structure >
std::string structureToString (const Structure &st)
 
bool parseAtomicElementEndTag (langbind::TypedInputFilter &inp, Context &, ParseStateStack &stk)
 
bool parseObjectStruct (const StructDescriptionBase *descr, langbind::TypedInputFilter &inp, Context &ctx, ParseStateStack &stk)
 
bool parseValue_int64 (boost::int64_t *value, const types::VariantConst &element)
 
bool parseValue_uint64 (boost::uint64_t *value, const types::VariantConst &element)
 
bool parseValue_int32 (boost::int32_t *value, const types::VariantConst &element)
 
bool parseValue_uint32 (boost::uint32_t *value, const types::VariantConst &element)
 
bool parseValue_short (signed short *, const types::VariantConst &element)
 
bool parseValue_ushort (unsigned short *, const types::VariantConst &element)
 
bool parseValue_char (signed char *, const types::VariantConst &element)
 
bool parseValue_uchar (unsigned char *, const types::VariantConst &element)
 
bool parseValue_bool (bool *, const types::VariantConst &element)
 
bool parseValue_float (float *, const types::VariantConst &element)
 
bool parseValue_double (double *, const types::VariantConst &element)
 
bool parseValue_string (std::string *, const types::VariantConst &element)
 
bool parseValue_datetime (types::DateTime *, const types::VariantConst &element)
 
bool parseValue_bignumber (types::BigNumber *, const types::VariantConst &element)
 
bool parseObjectAtomic (ParseValue parseVal, langbind::TypedInputFilter &inp, Context &, ParseStateStack &stk)
 
bool fetchCloseTag (Context &ctx, SerializeStateStack &stk)
 
bool fetchOpenTag (Context &ctx, SerializeStateStack &stk)
 
bool fetchObjectStruct (const StructDescriptionBase *descr, Context &ctx, SerializeStateStack &stk)
 
bool fetchObjectAtomic (PrintValue prnt, Context &ctx, SerializeStateStack &stk)
 
bool printValue_int64 (const boost::int64_t *, types::VariantConst &element)
 
bool printValue_uint64 (const boost::uint64_t *, types::VariantConst &element)
 
bool printValue_int32 (const boost::int32_t *, types::VariantConst &element)
 
bool printValue_uint32 (const boost::uint32_t *, types::VariantConst &element)
 
bool printValue_short (const signed short *, types::VariantConst &element)
 
bool printValue_ushort (const unsigned short *, types::VariantConst &element)
 
bool printValue_char (const signed char *, types::VariantConst &element)
 
bool printValue_uchar (const unsigned char *, types::VariantConst &element)
 
bool printValue_bool (const bool *, types::VariantConst &element)
 
bool printValue_float (const float *, types::VariantConst &element)
 
bool printValue_double (const double *, types::VariantConst &element)
 
bool printValue_string (const std::string *, types::VariantConst &element)
 
bool printValue_datetime (const types::DateTime *, types::VariantConst &element)
 
bool printValue_bignumber (const types::BigNumber *, types::VariantConst &element)
 
bool fetchObjectVectorElement (FetchElement fetchElement, const void *ve, Context &ctx, SerializeStateStack &stk)
 
template<typename ValueType >
bool parseValue (ValueType &val, const types::VariantConst &element)
 
template<typename ValueType >
bool printValue (const ValueType &val, types::VariantConst &element)
 
void parseStructOptionStringImpl (const serialize::StructDescriptionBase *descr, void *ptr, const ::std::string &opt)
 
template<class Structure >
void parseStructOptionString (Structure &st, const std::string &opt)
 
types::PropertyTree::Node structOptionTree (const std::string &opt)
 
std::string ddlStructureToString (const types::VariantStruct &st)
 
std::string typedInputFilterToString (const langbind::TypedInputFilterR &inp)
 

Detailed Description

Serialization library (implemented in the library libwolframe_serialize)

Typedef Documentation

Shared form function reference.

State stack for an initializer of a DDL structure from an iterator (serialization)

State stack for an iterator on a DDL structure (serializer of VariantStruct)

typedef bool(* _Wolframe::serialize::FetchElement)(Context &ctx, SerializeStateStack &stk)
typedef bool(* _Wolframe::serialize::ParseValue)(void *value, const types::VariantConst &element)
typedef bool(* _Wolframe::serialize::PrintValue)(const void *value, types::VariantConst &element)

State stack for an iterator on a structure (serializer)

Function Documentation

std::string _Wolframe::serialize::ddlStructureToString ( const types::VariantStruct &  st)
bool _Wolframe::serialize::fetchCloseTag ( Context &  ctx,
SerializeStateStack &  stk 
)
bool _Wolframe::serialize::fetchObjectAtomic ( PrintValue  prnt,
Context &  ctx,
SerializeStateStack &  stk 
)
bool _Wolframe::serialize::fetchObjectStruct ( const StructDescriptionBase *  descr,
Context &  ctx,
SerializeStateStack &  stk 
)
bool _Wolframe::serialize::fetchObjectVectorElement ( FetchElement  fetchElement,
const void *  ve,
Context &  ctx,
SerializeStateStack &  stk 
)
bool _Wolframe::serialize::fetchOpenTag ( Context &  ctx,
SerializeStateStack &  stk 
)
bool _Wolframe::serialize::parseAtomicElementEndTag ( langbind::TypedInputFilter &  inp,
Context &  ,
ParseStateStack &  stk 
)
template<class Structure >
void _Wolframe::serialize::parseConfigStructure ( Structure &  st,
const config::ConfigurationNode &  pt 
)
void _Wolframe::serialize::parseConfigStructureVP ( void *  stptr,
const serialize::StructDescriptionBase *  descr,
const config::ConfigurationNode &  pt 
)
bool _Wolframe::serialize::parseObjectAtomic ( ParseValue  parseVal,
langbind::TypedInputFilter &  inp,
Context &  ,
ParseStateStack &  stk 
)
bool _Wolframe::serialize::parseObjectStruct ( const StructDescriptionBase *  descr,
langbind::TypedInputFilter &  inp,
Context &  ctx,
ParseStateStack &  stk 
)
template<class Structure >
void _Wolframe::serialize::parseStructOptionString ( Structure &  st,
const std::string &  opt 
)
void _Wolframe::serialize::parseStructOptionStringImpl ( const serialize::StructDescriptionBase *  descr,
void *  ptr,
const ::std::string &  opt 
)
template<typename ValueType >
bool _Wolframe::serialize::parseValue ( ValueType &  val,
const types::VariantConst element 
)
bool _Wolframe::serialize::parseValue_bignumber ( types::BigNumber *  ,
const types::VariantConst &  element 
)
bool _Wolframe::serialize::parseValue_bool ( bool *  ,
const types::VariantConst &  element 
)
bool _Wolframe::serialize::parseValue_char ( signed char *  ,
const types::VariantConst &  element 
)
bool _Wolframe::serialize::parseValue_datetime ( types::DateTime *  ,
const types::VariantConst &  element 
)
bool _Wolframe::serialize::parseValue_double ( double *  ,
const types::VariantConst &  element 
)
bool _Wolframe::serialize::parseValue_float ( float *  ,
const types::VariantConst &  element 
)
bool _Wolframe::serialize::parseValue_int32 ( boost::int32_t *  value,
const types::VariantConst &  element 
)
bool _Wolframe::serialize::parseValue_int64 ( boost::int64_t *  value,
const types::VariantConst &  element 
)
bool _Wolframe::serialize::parseValue_short ( signed short *  ,
const types::VariantConst &  element 
)
bool _Wolframe::serialize::parseValue_string ( std::string *  ,
const types::VariantConst &  element 
)
bool _Wolframe::serialize::parseValue_uchar ( unsigned char *  ,
const types::VariantConst &  element 
)
bool _Wolframe::serialize::parseValue_uint32 ( boost::uint32_t *  value,
const types::VariantConst &  element 
)
bool _Wolframe::serialize::parseValue_uint64 ( boost::uint64_t *  value,
const types::VariantConst &  element 
)
bool _Wolframe::serialize::parseValue_ushort ( unsigned short *  ,
const types::VariantConst &  element 
)
template<typename ValueType >
bool _Wolframe::serialize::printValue ( const ValueType &  val,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_bignumber ( const types::BigNumber *  ,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_bool ( const bool *  ,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_char ( const signed char *  ,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_datetime ( const types::DateTime *  ,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_double ( const double *  ,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_float ( const float *  ,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_int32 ( const boost::int32_t *  ,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_int64 ( const boost::int64_t *  ,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_short ( const signed short *  ,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_string ( const std::string *  ,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_uchar ( const unsigned char *  ,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_uint32 ( const boost::uint32_t *  ,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_uint64 ( const boost::uint64_t *  ,
types::VariantConst &  element 
)
bool _Wolframe::serialize::printValue_ushort ( const unsigned short *  ,
types::VariantConst &  element 
)
types::PropertyTree::Node _Wolframe::serialize::structOptionTree ( const std::string &  opt)
template<class Structure >
types::PropertyTree::Node _Wolframe::serialize::structureToPropertyTree ( const Structure &  st)
template<class Structure >
std::string _Wolframe::serialize::structureToString ( const Structure &  st)
std::string _Wolframe::serialize::structureToStringVP ( const void *  stptr,
const serialize::StructDescriptionBase *  descr 
)
std::string _Wolframe::serialize::typedInputFilterToString ( const langbind::TypedInputFilterR &  inp)