![]() |
VR-Forces Development_Version Class Documentation
|
Namespace for methods which set a property from a Lua object to DtRwVariableBindings and vice-versa. More...
Typedefs | |
| typedef bool(* | luaToRwFnc )(const DtString &propertyName, luabind::object const &inProp, DtReaderWriter *outProp) |
| Function signature for Lua-to-ReaderWriter property conversion functions. | |
| typedef bool(* | rwToLuaFnc )(lua_State *L, const DtString &propertyName, const DtReaderWriter *inProp, luabind::object &outProp) |
| Function signature for ReaderWriter-to-Lua property conversion functions. | |
| typedef std::map< DtString, luaToRwFnc > | DtPropFromLuaFcnMap |
| typedef std::map< DtString, rwToLuaFnc > | DtPropFromRwFcnMap |
Functions | |
| bool | setPropertyFromLua (const DtString &propertyName, const luabind::object &inProp, DtRwProperties *outProps) |
| Sets the named ReaderWriter property from a Lua property. | |
| bool | setPropertyListItemFromLua (const DtString &propertyName, const luabind::object &keyValues, const luabind::object &inProp, DtRwProperties *outProps) |
| Finds the item in the named list ReaderWriter property that matches the specified keyValues and updates it with the contents of inProp. | |
| bool | setPropertyMapItemFromLua (const DtString &propertyName, const luabind::object &keyValue, const luabind::object &inProp, DtRwProperties *outProps) |
| Finds the item in the named map ReaderWriter property that matches the specified keyValues and updates it with the contents of inProp. | |
| bool | setPropertyFromRw (lua_State *L, const DtString &propertyName, const DtRwProperties *inProps, luabind::object &outProp) |
| Sets the named Lua property from a ReaderWriter property. | |
| bool | setPropertyListItemFromRw (lua_State *L, const DtString &propertyName, const luabind::object &keyValues, const DtRwProperties *inProps, luabind::object &outItem) |
| Finds the item in the named list ReaderWriter property that matches the specified keyValues and sets outItem with its contents. | |
| bool | setPropertyMapItemFromRw (lua_State *L, const DtString &propertyName, const luabind::object &keyValue, const DtRwProperties *inProps, luabind::object &outItem) |
| Finds the item in the named map ReaderWriter property that matches the specified keyValue and sets outItem with its contents. | |
| bool | setPropertyFromLua (const luabind::object &inProp, DtReaderWriter *outProps) |
| Sets the given ReaderWriter property from a Lua property. | |
| bool | setPropertyFromRw (lua_State *L, const DtReaderWriter *inProps, luabind::object &outProp) |
| Sets the given Lua property from a ReaderWriter property. | |
| bool | setRwFromLua (const luabind::object &inProp, DtReaderWriter *outRw) |
| Tries to set all the contents of the reader/writer item from lua. | |
| DtString | convertMapKey (const DtRwPropertiesMap *propMap, const luabind::object &keyValue) |
| Converts the Lua object to a string to be used as a key to the specified DtRwPropertiesMap. | |
| DtPropFromLuaFcnMap & | propertyFromLuaFcnMap () |
| The Lua-to-ReaderWriter by type. | |
| DtPropFromRwFcnMap & | propertyFromRwFcnMap () |
| The ReaderWriter-to-Lua by type. | |
| bool | setStringPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtReaderWriter *outProp) |
| Lua-to-ReaderWriter conversion functions. | |
| bool | setUUIDPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtReaderWriter *outProp) |
| Lua-to-ReaderWriter conversion functions. | |
| bool | setEntityTypeFromLua (const DtString &propertyName, luabind::object const &inProp, DtReaderWriter *outProp) |
| Lua-to-ReaderWriter conversion functions. | |
| bool | setObjectTypeFromLua (const DtString &propertyName, luabind::object const &inProp, DtReaderWriter *outProp) |
| Lua-to-ReaderWriter conversion functions. | |
| bool | setIntPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtReaderWriter *outProp) |
| Lua-to-ReaderWriter conversion functions. | |
| bool | setDoublePropFromLua (const DtString &propertyName, luabind::object const &inProp, DtReaderWriter *outProp) |
| Lua-to-ReaderWriter conversion functions. | |
| bool | setBoolPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtReaderWriter *outProp) |
| Lua-to-ReaderWriter conversion functions. | |
| bool | setStructPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtReaderWriter *outProp) |
| Lua-to-ReaderWriter conversion functions. | |
| bool | setListPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtReaderWriter *outProp) |
| Lua-to-ReaderWriter conversion functions. | |
| bool | setStringPropFromRw (lua_State *L, const DtString &propertyName, const DtReaderWriter *inProp, luabind::object &outProp) |
| ReaderWriter-to-Lua conversion functions. | |
| bool | setEntityTypeFromRw (lua_State *L, const DtString &propertyName, const DtReaderWriter *inProp, luabind::object &outProp) |
| ReaderWriter-to-Lua conversion functions. | |
| bool | setObjectTypeFromRw (lua_State *L, const DtString &propertyName, const DtReaderWriter *inProp, luabind::object &outProp) |
| ReaderWriter-to-Lua conversion functions. | |
| bool | setIntPropFromRw (lua_State *L, const DtString &propertyName, const DtReaderWriter *inProp, luabind::object &outProp) |
| ReaderWriter-to-Lua conversion functions. | |
| bool | setDoublePropFromRw (lua_State *L, const DtString &propertyName, const DtReaderWriter *inProp, luabind::object &outProp) |
| ReaderWriter-to-Lua conversion functions. | |
| bool | setBoolPropFromRw (lua_State *L, const DtString &propertyName, const DtReaderWriter *inProp, luabind::object &outProp) |
| ReaderWriter-to-Lua conversion functions. | |
| bool | setStructPropFromRw (lua_State *L, const DtString &propertyName, const DtReaderWriter *inProp, luabind::object &outProp) |
| ReaderWriter-to-Lua conversion functions. | |
| bool | setListPropFromRw (lua_State *L, const DtString &propertyName, const DtReaderWriter *inProp, luabind::object &outProp) |
| ReaderWriter-to-Lua conversion functions. | |
| const DtReaderWriter * | findConstListItem (const DtRwPropertiesList *propList, const luabind::object &keyValues) |
| Find the item in the list that matches the given keys defined in the keyValues Lua object. | |
| DtReaderWriter * | findListItem (DtRwPropertiesList *propList, const luabind::object &keyValues) |
| Find the item in the list that matches the given keys defined in the keyValues Lua object. | |
| const DtReaderWriter * | findConstMapItem (const DtRwPropertiesMap *propMap, const luabind::object &keyValue) |
| Find the item in the map that matches the given key defined in the keyValue Lua object. | |
| DtReaderWriter * | findMapItem (DtRwPropertiesMap *propMap, const luabind::object &keyValue) |
| Find the item in the map that matches the given key defined in the keyValue Lua object. | |
Namespace for methods which set a property from a Lua object to DtRwVariableBindings and vice-versa.
| typedef bool(* DtPropertySetter::luaToRwFnc)(const DtString &propertyName, luabind::object const &inProp, DtReaderWriter *outProp) |
Function signature for Lua-to-ReaderWriter property conversion functions.
| typedef bool(* DtPropertySetter::rwToLuaFnc)(lua_State *L, const DtString &propertyName, const DtReaderWriter *inProp, luabind::object &outProp) |
Function signature for ReaderWriter-to-Lua property conversion functions.
| typedef std::map<DtString, luaToRwFnc> DtPropertySetter::DtPropFromLuaFcnMap |
| typedef std::map<DtString, rwToLuaFnc> DtPropertySetter::DtPropFromRwFcnMap |
| bool DtPropertySetter::setPropertyFromLua | ( | const DtString & | propertyName, |
| const luabind::object & | inProp, | ||
| DtRwProperties * | outProps | ||
| ) |
Sets the named ReaderWriter property from a Lua property.
Returns true if successful.
| bool DtPropertySetter::setPropertyListItemFromLua | ( | const DtString & | propertyName, |
| const luabind::object & | keyValues, | ||
| const luabind::object & | inProp, | ||
| DtRwProperties * | outProps | ||
| ) |
Finds the item in the named list ReaderWriter property that matches the specified keyValues and updates it with the contents of inProp.
Returns true if successful.
| bool DtPropertySetter::setPropertyMapItemFromLua | ( | const DtString & | propertyName, |
| const luabind::object & | keyValue, | ||
| const luabind::object & | inProp, | ||
| DtRwProperties * | outProps | ||
| ) |
Finds the item in the named map ReaderWriter property that matches the specified keyValues and updates it with the contents of inProp.
Returns true if successful.
| bool DtPropertySetter::setPropertyFromRw | ( | lua_State * | L, |
| const DtString & | propertyName, | ||
| const DtRwProperties * | inProps, | ||
| luabind::object & | outProp | ||
| ) |
Sets the named Lua property from a ReaderWriter property.
Returns true if successful.
| bool DtPropertySetter::setPropertyListItemFromRw | ( | lua_State * | L, |
| const DtString & | propertyName, | ||
| const luabind::object & | keyValues, | ||
| const DtRwProperties * | inProps, | ||
| luabind::object & | outItem | ||
| ) |
Finds the item in the named list ReaderWriter property that matches the specified keyValues and sets outItem with its contents.
Returns true if successful.
| bool DtPropertySetter::setPropertyMapItemFromRw | ( | lua_State * | L, |
| const DtString & | propertyName, | ||
| const luabind::object & | keyValue, | ||
| const DtRwProperties * | inProps, | ||
| luabind::object & | outItem | ||
| ) |
Finds the item in the named map ReaderWriter property that matches the specified keyValue and sets outItem with its contents.
Returns true if successful.
| bool DtPropertySetter::setPropertyFromLua | ( | const luabind::object & | inProp, |
| DtReaderWriter * | outProps | ||
| ) |
Sets the given ReaderWriter property from a Lua property.
Returns true if successful.
| bool DtPropertySetter::setPropertyFromRw | ( | lua_State * | L, |
| const DtReaderWriter * | inProps, | ||
| luabind::object & | outProp | ||
| ) |
Sets the given Lua property from a ReaderWriter property.
Returns true if successful.
| bool DtPropertySetter::setRwFromLua | ( | const luabind::object & | inProp, |
| 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 DtPropertySetter::setStringPropFromLua | ( | const DtString & | propertyName, |
| luabind::object const & | inProp, | ||
| DtReaderWriter * | outProp | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtPropertySetter::setUUIDPropFromLua | ( | const DtString & | propertyName, |
| luabind::object const & | inProp, | ||
| DtReaderWriter * | outProp | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtPropertySetter::setEntityTypeFromLua | ( | const DtString & | propertyName, |
| luabind::object const & | inProp, | ||
| DtReaderWriter * | outProp | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtPropertySetter::setObjectTypeFromLua | ( | const DtString & | propertyName, |
| luabind::object const & | inProp, | ||
| DtReaderWriter * | outProp | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtPropertySetter::setIntPropFromLua | ( | const DtString & | propertyName, |
| luabind::object const & | inProp, | ||
| DtReaderWriter * | outProp | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtPropertySetter::setDoublePropFromLua | ( | const DtString & | propertyName, |
| luabind::object const & | inProp, | ||
| DtReaderWriter * | outProp | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtPropertySetter::setBoolPropFromLua | ( | const DtString & | propertyName, |
| luabind::object const & | inProp, | ||
| DtReaderWriter * | outProp | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtPropertySetter::setStructPropFromLua | ( | const DtString & | propertyName, |
| luabind::object const & | inProp, | ||
| DtReaderWriter * | outProp | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtPropertySetter::setListPropFromLua | ( | const DtString & | propertyName, |
| luabind::object const & | inProp, | ||
| DtReaderWriter * | outProp | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtPropertySetter::setStringPropFromRw | ( | lua_State * | L, |
| const DtString & | propertyName, | ||
| const DtReaderWriter * | inProp, | ||
| luabind::object & | outProp | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtPropertySetter::setEntityTypeFromRw | ( | lua_State * | L, |
| const DtString & | propertyName, | ||
| const DtReaderWriter * | inProp, | ||
| luabind::object & | outProp | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtPropertySetter::setObjectTypeFromRw | ( | lua_State * | L, |
| const DtString & | propertyName, | ||
| const DtReaderWriter * | inProp, | ||
| luabind::object & | outProp | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtPropertySetter::setIntPropFromRw | ( | lua_State * | L, |
| const DtString & | propertyName, | ||
| const DtReaderWriter * | inProp, | ||
| luabind::object & | outProp | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtPropertySetter::setDoublePropFromRw | ( | lua_State * | L, |
| const DtString & | propertyName, | ||
| const DtReaderWriter * | inProp, | ||
| luabind::object & | outProp | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtPropertySetter::setBoolPropFromRw | ( | lua_State * | L, |
| const DtString & | propertyName, | ||
| const DtReaderWriter * | inProp, | ||
| luabind::object & | outProp | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtPropertySetter::setStructPropFromRw | ( | lua_State * | L, |
| const DtString & | propertyName, | ||
| const DtReaderWriter * | inProp, | ||
| luabind::object & | outProp | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtPropertySetter::setListPropFromRw | ( | lua_State * | L, |
| const DtString & | propertyName, | ||
| const DtReaderWriter * | inProp, | ||
| luabind::object & | outProp | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| const DtReaderWriter* DtPropertySetter::findConstListItem | ( | const DtRwPropertiesList * | propList, |
| const luabind::object & | keyValues | ||
| ) |
Find the item in the list that matches the given keys defined in the keyValues Lua object.
| DtReaderWriter* DtPropertySetter::findListItem | ( | DtRwPropertiesList * | propList, |
| const luabind::object & | keyValues | ||
| ) |
Find the item in the list that matches the given keys defined in the keyValues Lua object.
| DtString DtPropertySetter::convertMapKey | ( | const DtRwPropertiesMap * | propMap, |
| const luabind::object & | keyValue | ||
| ) |
Converts the Lua object to a string to be used as a key to the specified DtRwPropertiesMap.
| const DtReaderWriter* DtPropertySetter::findConstMapItem | ( | const DtRwPropertiesMap * | propMap, |
| const luabind::object & | keyValue | ||
| ) |
Find the item in the map that matches the given key defined in the keyValue Lua object.
| DtReaderWriter* DtPropertySetter::findMapItem | ( | DtRwPropertiesMap * | propMap, |
| const luabind::object & | keyValue | ||
| ) |
Find the item in the map that matches the given key defined in the keyValue Lua object.
| DtPropFromLuaFcnMap& DtPropertySetter::propertyFromLuaFcnMap | ( | ) |
The Lua-to-ReaderWriter by type.
| DtPropFromRwFcnMap& DtPropertySetter::propertyFromRwFcnMap | ( | ) |
The ReaderWriter-to-Lua by type.