VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Typedefs | Functions
propertySetter.h File Reference

Go to the source code of this file.

Namespaces

 DtPropertySetter
 Namespace for methods which set a property from a Lua object to DtRwVariableBindings and vice-versa.
 

Typedefs

typedef bool(* DtPropertySetter::luaToPropFnc )(const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 Function signature for Lua-to-property conversion functions. More...
 
typedef bool(* DtPropertySetter::propToLuaFnc )(lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 Function signature for Property-to-Lua conversion functions. More...
 
typedef DtPropertyInterface *(* DtPropertySetter::luaToPropCreatorFnc )(const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 Function signature for Lua-to-property creation functions. More...
 
typedef std::map< DtString,
luaToPropFnc > 
DtPropertySetter::DtPropFromLuaFcnMap
 
typedef std::map< DtString,
propToLuaFnc > 
DtPropertySetter::DtLuaFromPropFcnMap
 
typedef std::map< int,
luaToPropCreatorFnc > 
DtPropertySetter::DtPropFromLuaCreatorFcnMap
 

Functions

bool DtPropertySetter::setPropertyFromLua (const DtString &propertyName, const luabind::object &inProp, DtRwProperties *outProps)
 Sets the named property property from a Lua property. More...
 
bool DtPropertySetter::setOrAddPropertyFromLua (const DtString &propertyName, const luabind::object &inProp, DtRwProperties *outProps)
 Sets the named property from a Lua property, adding it if it's not found. More...
 
bool DtPropertySetter::setPropertyListItemFromLua (const DtString &propertyName, const luabind::object &keyValues, const luabind::object &inProp, DtRwProperties *outProps)
 Finds the item in the named list property that matches the specified keyValues and updates it with the contents of inProp. More...
 
bool DtPropertySetter::setPropertyListItemFromLua (const DtString &propertyName, int index, const luabind::object &inProp, DtRwProperties *outProps)
 Finds the item in the named list property at the given index (where the Lua input starts at index 1) and updates it with the contents of inProp. More...
 
bool DtPropertySetter::setPropertyMapItemFromLua (const DtString &propertyName, const luabind::object &keyValue, const luabind::object &inProp, DtRwProperties *outProps)
 Finds the item in the named map property that matches the specified keyValues and updates it with the contents of inProp. More...
 
bool DtPropertySetter::setLuaFromProperty (lua_State *L, const DtString &propertyName, const DtRwProperties *inProps, luabind::object &outProp)
 Sets the named Lua property from a property. More...
 
bool DtPropertySetter::setLuaListItemFromProperty (lua_State *L, const DtString &propertyName, const luabind::object &keyValues, const DtRwProperties *inProps, luabind::object &outItem, int &index)
 Finds the item in the named list property that matches the specified keyValues and sets outItem with its contents. More...
 
bool DtPropertySetter::setLuaListItemFromProperty (lua_State *L, const DtString &propertyName, int index, const DtRwProperties *inProps, luabind::object &outItem)
 Finds the item in the named list property at the given index and sets outItem with its contents. More...
 
bool DtPropertySetter::setLuaMapItemFromProperty (lua_State *L, const DtString &propertyName, const luabind::object &keyValue, const DtRwProperties *inProps, luabind::object &outItem)
 Finds the item in the named map property that matches the specified keyValue and sets outItem with its contents. More...
 
bool DtPropertySetter::setPropertyFromLua (const luabind::object &inProp, DtPropertyInterface *outProp)
 Sets the given property from a Lua object. More...
 
bool DtPropertySetter::setLuaFromProperty (lua_State *L, const DtPropertyInterface *inProps, luabind::object &outProp)
 Sets the given Lua object from a property. More...
 
const DtPropertyInterfaceDtPropertySetter::findConstListItemByKeys (const DtRwPropertiesList *propList, const luabind::object &keyValues, int &index)
 Called by findConstListItem in the case where keyValues is a table of keys that match fields in the structure that defines the format of each item in the list property. More...
 
const DtPropertyInterfaceDtPropertySetter::findConstListItemByValue (const DtRwPropertiesList *propList, const luabind::object &keyValues, int &index)
 Called by findConstListItem in the case where keyValues is just a single value that matches a simple data type that matches the type of each item in the list property. More...
 
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. More...
 
DtPropFromLuaFcnMap & DtPropertySetter::propertyFromLuaFcnMap ()
 The Lua-to-Property by type. More...
 
DtLuaFromPropFcnMap & DtPropertySetter::luaFromPropertyFcnMap ()
 The Property-to-Lua by type. More...
 
DtPropFromLuaCreatorFcnMap & DtPropertySetter::propertyFromLuaCreatorFcnMap ()
 The Lua-to-Property creator by type. More...
 
bool DtPropertySetter::setStringPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 Lua-to-Property conversion functions. More...
 
bool DtPropertySetter::setUUIDPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool DtPropertySetter::setEntityTypePropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool DtPropertySetter::setObjectTypePropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool DtPropertySetter::setVerticesPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool DtPropertySetter::setOffsetVerticesPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool DtPropertySetter::setIntPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool DtPropertySetter::setDoublePropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool DtPropertySetter::setBoolPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool DtPropertySetter::setVectorPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool DtPropertySetter::setStructPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool DtPropertySetter::setListPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool DtPropertySetter::setLuaFromStringProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 Property-to-Lua conversion functions. More...
 
bool DtPropertySetter::setLuaFromEntityTypeProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool DtPropertySetter::setLuaFromObjectTypeProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool DtPropertySetter::setLuaFromVerticesProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool DtPropertySetter::setLuaFromOffsetVerticesProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool DtPropertySetter::setLuaFromIntProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool DtPropertySetter::setLuaFromDoubleProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool DtPropertySetter::setLuaFromBoolProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool DtPropertySetter::setLuaFromVectorProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool DtPropertySetter::setLuaFromStructProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool DtPropertySetter::setLuaFromListProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
DtPropertyInterfaceDtPropertySetter::createStringPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 Lua-to-Property creation functions. More...
 
DtPropertyInterfaceDtPropertySetter::createDoublePropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
DtPropertyInterfaceDtPropertySetter::createBoolPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
DtPropertyInterfaceDtPropertySetter::createTablePropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
DtPropertyInterfaceDtPropertySetter::createCustomPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
DtPropertyInterfaceDtPropertySetter::createStructPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
DtPropertyInterfaceDtPropertySetter::createListPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
DtPropertyInterfaceDtPropertySetter::createMapPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
const DtPropertyInterfaceDtPropertySetter::findConstListItem (const DtRwPropertiesList *propList, const luabind::object &keyValues, int &index)
 Find the item in the list that matches the given keys defined in the keyValues Lua object. More...
 
DtPropertyInterfaceDtPropertySetter::findListItem (DtRwPropertiesList *propList, const luabind::object &keyValues, int &index)
 
const DtPropertyInterfaceDtPropertySetter::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. More...
 
DtPropertyInterfaceDtPropertySetter::findMapItem (DtRwPropertiesMap *propMap, const luabind::object &keyValue)
 

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)