namespace Serialize

Provies a set of functions to serialize and deserialize objects

namespace contents
Functions
function fromNative(string) - Deserializes an object
function toNative(void) - Serializes an object to a string
function toXML(void) - Serializes an object to a XML string

Functions

function fromNative Click to go up to the list
Deserializes an object
Declaration:
    function fromNative( string data )
Description:
This function takes a string which was previously created by Serialize.toNative() and creates an object from it with the variables filled in. If the data is corrupted, the class definition is different to what it was when the object was serialized, or if the class doesn't exist at all, the results are undefined (Ferite may even crash). After objects are unserialized the member function serializeWakeup() is called so that objects can restore state.
Parameters:
    Parameter #1: string data - The serialized object data
Returns:
    The deserialized object

function toNative Click to go up to the list
Serializes an object to a string
Declaration:
    function toNative( void o )
Description:
This function serializes the contents of the variables in the specified object to a string using a Ferite specific format. The class definition, functions, and static variables aren't included. Object references are recursively serialized and included in the output, up to a limit. When objects are serialized the member function serializeSleep() is called before serialization so that cleanups can be made.
Parameters:
    Parameter #1: void o - The variable to serialize
Returns:
    A string containing the serialized object

function toXML Click to go up to the list
Serializes an object to a XML string
Declaration:
    function toXML( void o )
Description:
This function serializes the contents of the variables in the specified object to a XML string. The class definition, functions, and static variables aren't included. Object references are recursively serialized and included in the output, up to a limit. When objects are serialized the member function serializeSleep() is called before serialization so that cleanups can be made.
Parameters:
    Parameter #1: void o - The variable to serialize
Returns:
    A string containing the serialized object

Automatically generated at 12:08PM, Wednesday 25 May 2005 by feritedoc.