VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 , 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 charentrySeparator = ":"
static const charobjectSeparator = "|"
 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 , typename Parent >
bool vrfLua::DtAsciiSerializeLua ( const luabind::object &  lobj,
DtString serializedString 
)
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(), DtLuaObjectSerializer::instance(), DtAsciiSerializable::objectType(), and makVrv::typeName().

template<typename T >
luabind::object vrfLua::DtAsciiDeserializeLuaSharedPtr ( lua_State *  state,
const DtString typeName,
const DtString serializedString 
)
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.

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.

Variable Documentation

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

separator for entries in an "object"


Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)