class ReflectExport( reflect ) SerializationTag
This class represents the begin/end tags in a Serializer/Deserializer stream.
Every SerializationTag passed to a serializer’s Begin function must (same reference) be passed to the serializer’s End function as well.
SerializationTag | This class represents the begin/end tags in a Serializer/Deserializer stream. |
Enumerations | |
TagType | |
Functions | |
SerializationTag | Constructs a serialization tag with the given text and TagType. |
SerializationTag | Constructs a serialization tag with the given TagType. |
Text | a mutable version of the text |
Text() const | a const version of the text |
Type | a reference to the Type |
Type() const | the type |
operator == | Checks if the other tag has the same type and text. |
This class represents the begin/end tags in a Serializer/Deserializer stream.
class ReflectExport( reflect ) SerializationTag
Defines the interface for serialization.
class ReflectExport( reflect ) Serializer
Defines the interface for deserialization.
class ReflectExport( reflect ) Deserializer
Constructs a serialization tag with the given text and TagType.
SerializationTag( const char * text, TagType type )
a mutable version of the text
string::MutableString Text()
a const version of the text
string::ConstString Text() const
a reference to the Type
TagType &Type()
the type
TagType Type() const
Checks if the other tag has the same type and text.
bool operator ==( const SerializationTag & tag ) const
Starts a group, annotated by the tag’s type and text.
virtual bool Begin( const SerializationTag & ) = 0
Ends a group started by the tag with Begin.
virtual bool End( const SerializationTag & ) = 0
Deserializes an opening tag in the stream.
virtual bool Begin( SerializationTag & , SerializationTag::TagType = SerializationTag::UnknownTag ) = 0
Deserializes an ending tag in the stream.
virtual bool End( SerializationTag & ) = 0