VR-Forces 4.7 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

namespace  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.
typedef bool(* DtPropertySetter::propToLuaFnc )(lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 Function signature for Property-to-Lua conversion functions.
typedef DtPropertyInterface *(* DtPropertySetter::luaToPropCreatorFnc )(const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 Function signature for Lua-to-property creation functions.
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.
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.
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.
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.
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.
bool DtPropertySetter::setLuaFromProperty (lua_State *L, const DtString &propertyName, const DtRwProperties *inProps, luabind::object &outProp)
 Sets the named Lua property from a property.
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.
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.
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.
bool DtPropertySetter::setPropertyFromLua (const luabind::object &inProp, DtPropertyInterface *outProp)
 Sets the given property from a Lua object.
bool DtPropertySetter::setLuaFromProperty (lua_State *L, const DtPropertyInterface *inProps, luabind::object &outProp)
 Sets the given Lua object from a property.
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.
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.
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.
DtPropFromLuaFcnMap & DtPropertySetter::propertyFromLuaFcnMap ()
 The Lua-to-Property by type.
DtLuaFromPropFcnMap & DtPropertySetter::luaFromPropertyFcnMap ()
 The Property-to-Lua by type.
DtPropFromLuaCreatorFcnMap & DtPropertySetter::propertyFromLuaCreatorFcnMap ()
 The Lua-to-Property creator by type.
bool DtPropertySetter::setStringPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 Lua-to-Property conversion functions.
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::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.
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::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.
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.
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.
DtPropertyInterfaceDtPropertySetter::findMapItem (DtRwPropertiesMap *propMap, const luabind::object &keyValue)

Detailed Description


Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)