Moai SDK  1.5 revision 1 (MoaiEdition)
MOAISerializer Class Reference

Inherits MOAISerializerBase.

List of all members.

Function List

  exportToFile
  exportToString
  serialize
  serializeToFile
  serializeToString

Function Documentation

Exports the contents of the serializer to a file.


function exportToFile ( MOAISerializer self, string filename )
Parameters:
self ( MOAISerializer )
filename ( string )
Returns:
nil

Exports the contents of the serializer to a string.


function exportToString ( MOAISerializer self )
Parameters:
self ( MOAISerializer )
Returns:
result ( string )

Adds a table or object to the serializer.


function serialize ( MOAISerializer self, table data )
Parameters:
self ( MOAISerializer )
data ( table ) The table to serialize.
Returns:
nil
Note:

function serialize ( MOAISerializer self, MOAILuaObject data )
Parameters:
self ( MOAISerializer )
data ( MOAILuaObject ) The object to serialize.
Returns:
nil
Note:

Serializes the specified table or object to a file.


function serializeToFile ( string filename, table data )
Parameters:
filename ( string ) The file to create.
data ( table ) The table to serialize.
Returns:
nil
Note:

function serializeToFile ( string filename, MOAILuaObject data )
Parameters:
filename ( string ) The file to create.
data ( MOAILuaObject ) The object to serialize.
Returns:
nil
Note:

Serializes the specified table or object to a string.


function serializeToString ( table data )
Parameters:
data ( table ) The table to serialize.
Returns:
serialized ( string )
Note:

function serializeToString ( MOAILuaObject data )
Parameters:
data ( MOAILuaObject ) The object to serialize.
Returns:
serialized ( string )
Note: