VR-Forces 4.1.1 Class Documentation
Functions | Variables
vrfLua Namespace Reference

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 >
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<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.

Variables

static const char * entrySeparator = ":"
static const char * objectSeparator = "|"
 separator for entries in an "object"

Function Documentation

template<typename T >
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)

template<typename T >
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(), and DtLuaObjectSerializer::instance().

template<class T >
T* vrfLua::luaTypeCast ( luabind::object const &  luaObject)

separator for "objects" which are comprised of entries

template<class T >
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.

Variable Documentation

const char* vrfLua::entrySeparator = ":"
static
const char* vrfLua::objectSeparator = "|"
static

separator for entries in an "object"


Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)