34 #ifndef _Wolframe_SERIALIZE_CONFIG_SERIALIZE_HPP_INCLUDED
35 #define _Wolframe_SERIALIZE_CONFIG_SERIALIZE_HPP_INCLUDED
50 template <
class Structure>
56 template <
class Structure>
62 serializer.
init( out);
63 if (!serializer.call())
throw std::runtime_error(
"illegal state in structure serializer");
69 template <
class Structure>
void parseConfigStructure(Structure &st, const config::ConfigurationNode &pt)
Definition: configSerialize.hpp:51
Property tree node.
Definition: propertyTree.hpp:86
Base class for structure description used for introspection in serialization/deserialization.
Definition: structDescriptionBase.hpp:51
std::string structureToStringVP(const void *stptr, const serialize::StructDescriptionBase *descr)
Filter for serialization/deserialization of a property tree.
types::PropertyTree::Node structureToPropertyTree(const Structure &st)
Definition: configSerialize.hpp:57
void parseConfigStructureVP(void *stptr, const serialize::StructDescriptionBase *descr, const config::ConfigurationNode &pt)
void init(const langbind::TypedOutputFilterR &out, serialize::Flags::Enum flags=serialize::Flags::None)
Serialize start initialization.
const types::PropertyTree::Node & content() const
Get the content.
Definition: ptreefilter.hpp:124
std::string structureToString(const Structure &st)
Definition: configSerialize.hpp:70
boost::shared_ptr< TypedOutputFilter > TypedOutputFilterR
Shared output filter (langbind::TypedOutputFilter) reference.
Definition: typedfilter.hpp:149
Deserialization interface.
Iterator on elements of structures based on a structure description.
Definition: structSerializer.hpp:43
Interface to a key value tree based on boost::property_tree::ptree with position info for better erro...
Output filter for serializing a structure as property tree.
Definition: ptreefilter.hpp:107
Structures of variant types.
Typed interface for input/output filter.
Configuration tree for the configuration parser.
Description of structures of variant types.