|
| virtual | ~DtLuaObjectSerializer () |
| |
| virtual DtAsciiSerializable * | createInstance (const DtString &typeName, const DtString &serializedString, DtLocalObject *owner) |
| |
| virtual void | registerCreatorFunc (const DtString &typeName, DtSerializableCreatorFunc func) |
| |
| virtual void | registerDeserializerFunc (const DtString &typeName, DtDeserializerFunc func) |
| |
| virtual void | registerSerializerFunc (const DtString &typeName, DtSerializerFunc func) |
| |
| virtual bool | serializeObject (const luabind::object &lobj, std::string &buffer, std::vector< luabind::object > stackParameters) |
| |
| virtual const char * | deserializeObject (lua_State *state, const char *buffer, luabind::object &lobj, DtLocalObject *owner) |
| |
| virtual bool | doesSerializerExist (const DtString &type) |
| |
| virtual bool | saveLuaScriptGlobals (lua_State *state, std::string &buffer) |
| |
| virtual bool | saveLuaScriptTable (lua_State *state, const std::string &key, const luabind::object &lobj, std::string &buffer) |
| |
| virtual bool | loadLuaScriptGlobals (lua_State *state, const DtString &buffer, DtLocalObject *owner) |
| |
| virtual void | addKeyToIgnore (const std::string &) |
| |
| virtual void | removeKeyToIgnore (const std::string &) |
| |
| virtual DtLuaObjectSerializer::~DtLuaObjectSerializer |
( |
| ) |
|
|
virtual |
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, |
|
|
std::string & |
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, |
|
|
DtLocalObject * |
owner |
|
) |
| |
|
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, |
|
|
std::string & |
buffer |
|
) |
| |
|
virtual |
Serializes the scripts globals in a character buffer.
| virtual bool DtLuaObjectSerializer::saveLuaScriptTable |
( |
lua_State * |
state, |
|
|
const std::string & |
key, |
|
|
const luabind::object & |
lobj, |
|
|
std::string & |
buffer |
|
) |
| |
|
virtual |
Serializes the table with the given key name.
| virtual bool DtLuaObjectSerializer::loadLuaScriptGlobals |
( |
lua_State * |
state, |
|
|
const DtString & |
buffer, |
|
|
DtLocalObject * |
owner |
|
) |
| |
|
virtual |
Loads the scripts globals from a character buffer.
| virtual void DtLuaObjectSerializer::addKeyToIgnore |
( |
const std::string & |
| ) |
|
|
virtual |
When serializing ignore any key found in this list.
| virtual void DtLuaObjectSerializer::removeKeyToIgnore |
( |
const std::string & |
| ) |
|
|
virtual |
Removes a key to ignore during serialization.
| virtual const char* DtLuaObjectSerializer::parseBufferToTableKeyVals |
( |
lua_State * |
state, |
|
|
luabind::object & |
table, |
|
|
const char * |
buffer, |
|
|
DtLocalObject * |
owner |
|
) |
| |
|
protectedvirtual |
internal function for loading lua globals
| virtual void DtLuaObjectSerializer::parseTableKeyValsToBuffer |
( |
const luabind::object & |
, |
|
|
std::string & |
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 bool DtLuaObjectSerializer::needsEscaping |
( |
const DtString & |
buffer | ) |
const |
|
protectedvirtual |
| virtual void DtLuaObjectSerializer::applyStandardEscapes |
( |
DtString & |
buffer | ) |
|
|
protectedvirtual |
| virtual bool DtLuaObjectSerializer::needsUnescaping |
( |
DtString & |
buffer | ) |
const |
|
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.
| std::set<std::string> DtLuaObjectSerializer::myKeysToIgnore |
|
protected |
When serializing, ignore these keys.
The documentation for this class was generated from the following file: