34 #ifndef _Wolframe_SERIALIZE_STRUCT_PARSER_HPP_INCLUDED
35 #define _Wolframe_SERIALIZE_STRUCT_PARSER_HPP_INCLUDED
State stack for an initializer of a structure.
Definition: parseStack.hpp:80
Base class for structure description used for introspection in serialization/deserialization.
Definition: structDescriptionBase.hpp:51
langbind::TypedInputFilterR m_inp
Definition: structParser.hpp:77
StructParser(void *obj, const StructDescriptionBase *descr)
Constructor.
Initializer of a structure based on a structure description feeded with a serialization.
Definition: structParser.hpp:43
Context m_ctx
Definition: structParser.hpp:76
const ObjectReference & object() const
Get a shared reference of the parsed objects base pointer.
Definition: structParser.hpp:64
const StructDescriptionBase * m_descr
Definition: structParser.hpp:75
void init(const langbind::TypedInputFilterR &i, serialize::Flags::Enum flags=serialize::Flags::None)
Parser start initialization.
ParseStateStack m_stk
Definition: structParser.hpp:78
boost::shared_ptr< TypedInputFilter > TypedInputFilterR
Shared input filter (langbind::TypedInputFilter) reference.
Definition: typedfilter.hpp:98
ObjectReference m_obj
Definition: structParser.hpp:74
void * m_ptr
Definition: structParser.hpp:73
Enum
the enumeration that can also be interpreted as bit set
Definition: flags.hpp:47
virtual ~StructParser()
Destructor.
Definition: structParser.hpp:55
const StructDescriptionBase * descr() const
Get the structure description of the parsed object.
Definition: structParser.hpp:66
static std::string getElementPath(const ParseStateStack &stk)
Get the current element path defined by the stack 'stk' as string for error messages.
Defines the non intrusive base class of serialization/deserialization of objects interfaced as TypedI...
Empty flag set (no flags set)
Definition: flags.hpp:49
Global state variables of a running serialization/deserialization procedure (without the stack) ...
Definition: mapContext.hpp:46
boost::shared_ptr< void > ObjectReference
Definition: structParser.hpp:46
bool call()
Call of one processing step the parser.