SerializationTag

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.

See Also

Summary
SerializationTagThis class represents the begin/end tags in a Serializer/Deserializer stream.
Enumerations
TagType
Functions
SerializationTagConstructs a serialization tag with the given text and TagType.
SerializationTagConstructs a serialization tag with the given TagType.
Texta mutable version of the text
Text() consta const version of the text
Typea reference to the Type
Type() constthe type
operator ==Checks if the other tag has the same type and text.

Enumerations

TagType

ObjectTagStarts an Object, the text specifies the Class of the object.  (Ex.  PersistentCategory::SerializeDynamic)
PropertyTagStarts a Property, the text specifies the Property name.  (Ex.  PersistentClass::SerializeProperties)
AttributeTagStarts an Attribute, the text specifies the Attribute name.  (Ex.  ArrayProperty::Serialize)
ItemTagStarts an Item, the text is ignored.  (Ex.  MapProperty::Serialize)

Functions

SerializationTag

SerializationTag(const char *text,
TagType type)

Constructs a serialization tag with the given text and TagType.

SerializationTag

SerializationTag(TagType type =  UnknownTag)

Constructs a serialization tag with the given TagType.

Text

string::MutableString Text()

a mutable version of the text

Text() const

string::ConstString Text() const

a const version of the text

Type

TagType &Type()

a reference to the Type

Type() const

TagType Type() const

the type

operator ==

bool operator ==(const SerializationTag &tag) const

Checks if the other tag has the same type and text.

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