Public Member Functions |
| virtual | ~DtLuaObjectSerializer () |
| virtual DtAsciiSerializable * | createInstance (const DtString &typeName, const DtString &serializedString) |
| | Registers a DtAsciiSerializable creator function.
|
| virtual void | registerCreatorFunc (const DtString &typeName, DtSerializableCreatorFunc func) |
| virtual void | registerDeserializerFunc (const DtString &typeName, DtDeserializerFunc func) |
| | Registers a deserializer function to convert a string to a lua object.
|
| virtual void | registerSerializerFunc (const DtString &typeName, DtSerializerFunc func) |
| | Registers the function to serialize the lua object to a string.
|
| virtual bool | serializeObject (const luabind::object &lobj, DtString &buffer, std::vector< luabind::object > stackParameters) |
| | Serialize the specific lua object to the string buffer.
|
| virtual const char * | deserializeObject (lua_State *state, const char *buffer, luabind::object &lobj) |
| | Deserialize the serialized string to the lua object.
|
| virtual bool | doesSerializerExist (const DtString &type) |
| virtual DtSimManager & | simManager () |
| virtual bool | saveLuaScriptGlobals (lua_State *state, DtString &buffer) |
| | Serializes the scripts globals in a character buffer.
|
| virtual bool | loadLuaScriptGlobals (lua_State *state, const DtString &buffer) |
| | Loads the scripts globals from a character buffer.
|
Member Typedef Documentation
Constructor & Destructor Documentation
| DtLuaObjectSerializer::DtLuaObjectSerializer |
( |
DtSimManager * |
simManager | ) |
|
|
protected |
| virtual DtLuaObjectSerializer::~DtLuaObjectSerializer |
( |
| ) |
|
|
virtual |
Member Function Documentation
Registers a deserializer function to convert a string to a lua object.
Registers the function to serialize the lua object to a string.
| virtual bool DtLuaObjectSerializer::serializeObject |
( |
const luabind::object & |
lobj, |
|
|
DtString & |
buffer, |
|
|
std::vector< luabind::object > |
stackParameters |
|
) |
| |
|
virtual |
Serialize the specific lua object to the string buffer.
This function will append to the string buffer
| virtual const char* DtLuaObjectSerializer::deserializeObject |
( |
lua_State * |
state, |
|
|
const char * |
buffer, |
|
|
luabind::object & |
lobj |
|
) |
| |
|
virtual |
Deserialize the serialized string to the lua object.
The lua state is required in the creation of the lua object This is a template since luabind requires the specific object type to be bound rather than the base class these objects inherit from.
| virtual bool DtLuaObjectSerializer::doesSerializerExist |
( |
const DtString & |
type | ) |
|
|
virtual |
| virtual bool DtLuaObjectSerializer::saveLuaScriptGlobals |
( |
lua_State * |
state, |
|
|
DtString & |
buffer |
|
) |
| |
|
virtual |
Serializes the scripts globals in a character buffer.
| virtual bool DtLuaObjectSerializer::loadLuaScriptGlobals |
( |
lua_State * |
state, |
|
|
const DtString & |
buffer |
|
) |
| |
|
virtual |
Loads the scripts globals from a character buffer.
| virtual const char* DtLuaObjectSerializer::parseBufferToTableKeyVals |
( |
lua_State * |
state, |
|
|
luabind::object & |
table, |
|
|
const char * |
buffer |
|
) |
| |
|
protectedvirtual |
internal function for loading lua globals
| virtual void DtLuaObjectSerializer::parseTableKeyValsToBuffer |
( |
const luabind::object & |
, |
|
|
DtString & |
buffer, |
|
|
std::vector< luabind::object > |
stackParameters |
|
) |
| |
|
protectedvirtual |
internal function for saving lua globals.
Stack parameters is used to make sure the serializer is not recursively serializing objects
| virtual void DtLuaObjectSerializer::applyStandardEscapes |
( |
DtString & |
buffer | ) |
|
|
protectedvirtual |
| virtual void DtLuaObjectSerializer::unapplyStandardEscapes |
( |
DtString & |
buffer | ) |
|
|
protectedvirtual |
| virtual bool DtLuaObjectSerializer::isKeyToIgnore |
( |
const DtString & |
keyName | ) |
|
|
protectedvirtual |
| virtual bool DtLuaObjectSerializer::IsALoadedPackage |
( |
lua_State * |
L, |
|
|
const char * |
tableName |
|
) |
| |
|
protectedvirtual |
| virtual const char* DtLuaObjectSerializer::nextToken |
( |
char |
separator, |
|
|
const char * |
buf, |
|
|
DtString & |
tok |
|
) |
| |
|
protectedvirtual |
Retrieves the next token from buf, separated by the next unescaped separator character.
Returns the pointer into buf beyond the returned token.
Member Data Documentation
The documentation for this class was generated from the following file: