VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions
DtReaderWriterSetter Namespace Reference

Namespace for methods which set a variable from a Lua object to ReaderWriter and vice-versa. More...

Typedefs

typedef bool(* luaToRwFnc )(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
 Function signature for Lua-to-ReaderWriter conversion functions. More...
 
typedef bool(* rwToLuaFnc )(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
 Function signature for ReaderWriter-to-Lua object conversion functions. More...
 
typedef DtReaderWriter *(* luaToRwCreatorFnc )(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *parent)
 Function signature for Lua-to-ReaderWriter creation functions. More...
 
typedef std::map< DtString,
luaToRwFnc
DtRwFromLuaFcnMap
 
typedef std::map< DtString,
rwToLuaFnc
DtLuaFromRwFcnMap
 
typedef std::map< int,
luaToRwCreatorFnc
DtRwFromLuaCreatorFcnMap
 

Functions

bool setPropertyFromLua (const luabind::object &inObj, DtReaderWriter *outRw)
 Sets the given ReaderWriter from a Lua object. More...
 
bool setLuaFromRw (lua_State *L, const DtReaderWriter *inRw, luabind::object &outObj)
 Sets the given Lua object from a ReaderWriter. More...
 
bool setRwFromLua (const luabind::object &inObj, DtReaderWriter *outRw)
 Tries to set all the contents of the reader/writer item from lua. More...
 
DtRwFromLuaFcnMaprwFromLuaFcnMap ()
 The Lua-to-ReaderWriter by type. More...
 
DtLuaFromRwFcnMapluaFromRwFcnMap ()
 The ReaderWriter-to-Lua by type. More...
 
DtRwFromLuaCreatorFcnMaprwFromLuaCreatorFcnMap ()
 The Lua-to-ReaderWriter creator by type. More...
 
bool setStringRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
 Lua-to-ReaderWriter conversion functions. More...
 
bool setUUIDRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
 
bool setEntityTypeFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
 
bool setObjectTypeFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
 
bool setVerticesFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
 
bool setOffsetVerticesFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
 
bool setIntRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
 
bool setDoubleRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
 
bool setBoolRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
 
bool setStructRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
 
bool setListRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
 
bool setStringLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
 ReaderWriter-to-Lua conversion functions. More...
 
bool setEntityTypeLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
 
bool setObjectTypeLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
 
bool setVerticesLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
 
bool setOffsetVerticesLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
 
bool setIntLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
 
bool setDoubleLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
 
bool setBoolLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
 
bool setStructLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
 
bool setListLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
 
DtReaderWritercreateStringRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *parent)
 Lua-to-ReaderWriter creation functions. More...
 
DtReaderWritercreateDoubleRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *parent)
 
DtReaderWritercreateBoolRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *parent)
 
DtReaderWritercreateCustomRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *parent)
 

Detailed Description

Namespace for methods which set a variable from a Lua object to ReaderWriter and vice-versa.

Typedef Documentation

typedef bool(* DtReaderWriterSetter::luaToRwFnc)(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)

Function signature for Lua-to-ReaderWriter conversion functions.

typedef bool(* DtReaderWriterSetter::rwToLuaFnc)(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)

Function signature for ReaderWriter-to-Lua object conversion functions.

typedef DtReaderWriter*(* DtReaderWriterSetter::luaToRwCreatorFnc)(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *parent)

Function signature for Lua-to-ReaderWriter creation functions.

Function Documentation

bool DtReaderWriterSetter::setPropertyFromLua ( const luabind::object &  inObj,
DtReaderWriter outRw 
)

Sets the given ReaderWriter from a Lua object.

Returns true if successful.

bool DtReaderWriterSetter::setLuaFromRw ( lua_State *  L,
const DtReaderWriter inRw,
luabind::object &  outObj 
)

Sets the given Lua object from a ReaderWriter.

Returns true if successful.

bool DtReaderWriterSetter::setRwFromLua ( const luabind::object &  inObj,
DtReaderWriter outRw 
)

Tries to set all the contents of the reader/writer item from lua.

If there is not a factory representation of a particular reader/writer item then the process will try and set all the registry items from the lua supplied object by name. If the table has a name that does not exist in the reader/writer object then an error will be thrown. If there is no factory representation of a reader/writer object and that object also has no children then an error will be thrown.

Referenced by DtVariableParameterReaderWriter< _Container >::createRwStructure().

bool DtReaderWriterSetter::setStringRwFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter outRw 
)

Lua-to-ReaderWriter conversion functions.

bool DtReaderWriterSetter::setUUIDRwFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter outRw 
)
bool DtReaderWriterSetter::setEntityTypeFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter outRw 
)
bool DtReaderWriterSetter::setObjectTypeFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter outRw 
)
bool DtReaderWriterSetter::setVerticesFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter outRw 
)
bool DtReaderWriterSetter::setOffsetVerticesFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter outRw 
)
bool DtReaderWriterSetter::setIntRwFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter outRw 
)
bool DtReaderWriterSetter::setDoubleRwFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter outRw 
)
bool DtReaderWriterSetter::setBoolRwFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter outRw 
)
bool DtReaderWriterSetter::setStructRwFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter outRw 
)
bool DtReaderWriterSetter::setListRwFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter outRw 
)
bool DtReaderWriterSetter::setStringLuaFromRw ( lua_State *  L,
const DtString rwName,
const DtReaderWriter inRw,
luabind::object &  outObj 
)

ReaderWriter-to-Lua conversion functions.

bool DtReaderWriterSetter::setEntityTypeLuaFromRw ( lua_State *  L,
const DtString rwName,
const DtReaderWriter inRw,
luabind::object &  outObj 
)
bool DtReaderWriterSetter::setObjectTypeLuaFromRw ( lua_State *  L,
const DtString rwName,
const DtReaderWriter inRw,
luabind::object &  outObj 
)
bool DtReaderWriterSetter::setVerticesLuaFromRw ( lua_State *  L,
const DtString rwName,
const DtReaderWriter inRw,
luabind::object &  outObj 
)
bool DtReaderWriterSetter::setOffsetVerticesLuaFromRw ( lua_State *  L,
const DtString rwName,
const DtReaderWriter inRw,
luabind::object &  outObj 
)
bool DtReaderWriterSetter::setIntLuaFromRw ( lua_State *  L,
const DtString rwName,
const DtReaderWriter inRw,
luabind::object &  outObj 
)
bool DtReaderWriterSetter::setDoubleLuaFromRw ( lua_State *  L,
const DtString rwName,
const DtReaderWriter inRw,
luabind::object &  outObj 
)
bool DtReaderWriterSetter::setBoolLuaFromRw ( lua_State *  L,
const DtString rwName,
const DtReaderWriter inRw,
luabind::object &  outObj 
)
bool DtReaderWriterSetter::setStructLuaFromRw ( lua_State *  L,
const DtString rwName,
const DtReaderWriter inRw,
luabind::object &  outObj 
)
bool DtReaderWriterSetter::setListLuaFromRw ( lua_State *  L,
const DtString rwName,
const DtReaderWriter inRw,
luabind::object &  outObj 
)
DtReaderWriter* DtReaderWriterSetter::createStringRwFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter parent 
)

Lua-to-ReaderWriter creation functions.

DtReaderWriter* DtReaderWriterSetter::createDoubleRwFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter parent 
)
DtReaderWriter* DtReaderWriterSetter::createBoolRwFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter parent 
)
DtReaderWriter* DtReaderWriterSetter::createCustomRwFromLua ( const DtString rwName,
luabind::object const &  inObj,
DtReaderWriter parent 
)
DtRwFromLuaFcnMap& DtReaderWriterSetter::rwFromLuaFcnMap ( )

The Lua-to-ReaderWriter by type.

DtLuaFromRwFcnMap& DtReaderWriterSetter::luaFromRwFcnMap ( )

The ReaderWriter-to-Lua by type.

DtRwFromLuaCreatorFcnMap& DtReaderWriterSetter::rwFromLuaCreatorFcnMap ( )

The Lua-to-ReaderWriter creator by type.


Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)