![]() |
VR-Forces Development_Version Class Documentation
|
Functions | |
| template<typename T > | |
| bool | DtAsciiSerializeLua (const luabind::object &lobj, DtString &serializedString) |
| This is a templated function that is used and registered to the serializer for each object we have defined in lua. | |
| template<typename T , typename Parent > | |
| bool | DtAsciiSerializeLua (const luabind::object &lobj, DtString &serializedString) |
| template<typename T > | |
| luabind::object | DtAsciiDeserializeLua (lua_State *state, const DtString &typeName, const DtString &serializedString) |
| This is a templated function that is used and registered to the (de)serializer for each object we have defined in lua. | |
| template<typename T > | |
| luabind::object | DtAsciiDeserializeLuaSharedPtr (lua_State *state, const DtString &typeName, const DtString &serializedString) |
| template<class T > | |
| T * | luaTypeCast (luabind::object const &luaObject) |
| separator for "objects" which are comprised of entries | |
| template<class T > | |
| T * | luaTypeCastNoThrow (luabind::object const &luaObject) |
| DT_DLL_vrfLua bool | DtLuaFunctionExists (lua_State *luaState, const char *functionName) |
| Determine whether or not a function exists. | |
| DT_DLL_vrfLua int | DtLuaErrorHandler (lua_State *L) |
| Lua Debugging functions. | |
| DT_DLL_vrfLua int | DtLuaErrorHandlerToString (lua_State *L) |
| DT_DLL_vrfLua int | DtLuaAppendPath (lua_State *L, const char *path) |
| Add a path into Lua for include files. | |
| DT_DLL_vrfLua int | DtLuaAppendPath (lua_State *L, const std::vector< std::string > &paths) |
| DT_DLL_vrfLua void | DtLuaGetPath (lua_State *L, std::vector< std::string > &paths) |
| Get the path from the Lua state. | |
Variables | |
| static const char * | entrySeparator = ":" |
| static const char * | objectSeparator = "|" |
| separator for entries in an "object" | |
| bool vrfLua::DtAsciiSerializeLua | ( | const luabind::object & | lobj, |
| DtString & | serializedString | ||
| ) |
This is a templated function that is used and registered to the serializer for each object we have defined in lua.
This means that if someone wants to define a new object, they simply add this function to the serializer with the correct object template (their new object) and it will work as long as that object is derived for DtAsciiSerializable (and has a static creator function registered to the (de)serializer)
| bool vrfLua::DtAsciiSerializeLua | ( | const luabind::object & | lobj, |
| DtString & | serializedString | ||
| ) |
| luabind::object vrfLua::DtAsciiDeserializeLua | ( | lua_State * | state, |
| const DtString & | typeName, | ||
| const DtString & | serializedString | ||
| ) |
This is a templated function that is used and registered to the (de)serializer for each object we have defined in lua.
This means that if someone wants to define a new object, they simply add this function to the (de)serializer with the correct object template (their new object) and it will work as long as that object is derived for DtAsciiSerializable (and has a static creator function registered to the (de)serializer)
References DtLuaObjectSerializer::createInstance(), DtAsciiSerializable::deserialize(), DtLuaObjectSerializer::instance(), and DtAsciiSerializable::objectType().
| luabind::object vrfLua::DtAsciiDeserializeLuaSharedPtr | ( | lua_State * | state, |
| const DtString & | typeName, | ||
| const DtString & | serializedString | ||
| ) |
References DtLuaObjectSerializer::createInstance(), and DtLuaObjectSerializer::instance().
| T* vrfLua::luaTypeCast | ( | luabind::object const & | luaObject | ) |
separator for "objects" which are comprised of entries
| T* vrfLua::luaTypeCastNoThrow | ( | luabind::object const & | luaObject | ) |
| DT_DLL_vrfLua bool vrfLua::DtLuaFunctionExists | ( | lua_State * | luaState, |
| const char * | functionName | ||
| ) |
Determine whether or not a function exists.
| DT_DLL_vrfLua int vrfLua::DtLuaErrorHandler | ( | lua_State * | L | ) |
Lua Debugging functions.
| DT_DLL_vrfLua int vrfLua::DtLuaErrorHandlerToString | ( | lua_State * | L | ) |
| DT_DLL_vrfLua int vrfLua::DtLuaAppendPath | ( | lua_State * | L, |
| const char * | path | ||
| ) |
Add a path into Lua for include files.
| DT_DLL_vrfLua int vrfLua::DtLuaAppendPath | ( | lua_State * | L, |
| const std::vector< std::string > & | paths | ||
| ) |
| DT_DLL_vrfLua void vrfLua::DtLuaGetPath | ( | lua_State * | L, |
| std::vector< std::string > & | paths | ||
| ) |
Get the path from the Lua state.
|
static |
|
static |
separator for entries in an "object"