Sleeping Wombat Common Library  0.50.0
swCommonLibrary

General

Serialization library uses RTTR information to serialize classes. Remember to register your classes in RTTR before using these serialization functionalities.

Choosing serializer

Serializer can be chosen at link time. Add one of serializers projects (SerializerJSON or SerializerXML) as referenced project. This behavior may change in future version and serializers will be rewritten to implement common interface.

Usage Examples

Serialization

BaseObject object;
bool success = serial.Serialize( "Serialization/GenericObject.xml", object );

Deserialization

BaseObject object;
bool success = deserial.Deserialize( "Serialization/GenericObject.xml", object );

Future plans

Serialization library is still in development process. There're many things that should be covered in future versions:

See also
Serialization