VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions
DtPropertySetter Namespace Reference

Typedefs

typedef bool(* luaToPropFnc )(const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
typedef bool(* propToLuaFnc )(lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
typedef DtPropertyInterface *(* luaToPropCreatorFnc )(const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
typedef std::map< DtString,
luaToPropFnc
DtPropFromLuaFcnMap
 
typedef std::map< DtString,
propToLuaFnc
DtLuaFromPropFcnMap
 
typedef std::map< int,
luaToPropCreatorFnc
DtPropFromLuaCreatorFcnMap
 

Functions

bool setPropertyFromLua (const DtString &propertyName, const luabind::object &inProp, DtRwProperties *outProps)
 
bool setOrAddPropertyFromLua (const DtString &propertyName, const luabind::object &inProp, DtRwProperties *outProps)
 
bool setPropertyListItemFromLua (const DtString &propertyName, const luabind::object &keyValues, const luabind::object &inProp, DtRwProperties *outProps)
 
bool setPropertyListItemFromLua (const DtString &propertyName, int index, const luabind::object &inProp, DtRwProperties *outProps)
 
bool setPropertyMapItemFromLua (const DtString &propertyName, const luabind::object &keyValue, const luabind::object &inProp, DtRwProperties *outProps)
 
bool setLuaFromProperty (lua_State *L, const DtString &propertyName, const DtRwProperties *inProps, luabind::object &outProp)
 
bool setLuaListItemFromProperty (lua_State *L, const DtString &propertyName, const luabind::object &keyValues, const DtRwProperties *inProps, luabind::object &outItem, int &index)
 
bool setLuaListItemFromProperty (lua_State *L, const DtString &propertyName, int index, const DtRwProperties *inProps, luabind::object &outItem)
 
bool setLuaMapItemFromProperty (lua_State *L, const DtString &propertyName, const luabind::object &keyValue, const DtRwProperties *inProps, luabind::object &outItem)
 
bool setPropertyFromLua (const luabind::object &inProp, DtPropertyInterface *outProp)
 
bool setLuaFromProperty (lua_State *L, const DtPropertyInterface *inProps, luabind::object &outProp)
 
const DtPropertyInterfacefindConstListItemByKeys (const DtRwPropertiesList *propList, const luabind::object &keyValues, int &index)
 
const DtPropertyInterfacefindConstListItemByValue (const DtRwPropertiesList *propList, const luabind::object &keyValues, int &index)
 
DtString convertMapKey (const DtRwPropertiesMap *propMap, const luabind::object &keyValue)
 
DtPropFromLuaFcnMappropertyFromLuaFcnMap ()
 
DtLuaFromPropFcnMapluaFromPropertyFcnMap ()
 
DtPropFromLuaCreatorFcnMappropertyFromLuaCreatorFcnMap ()
 
bool setStringPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool setUUIDPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool setEntityTypePropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool setObjectTypePropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool setVerticesPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool setOffsetVerticesPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool setIntPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool setDoublePropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool setBoolPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool setVectorPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool setStructPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool setListPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtPropertyInterface *outProp)
 
bool setLuaFromStringProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool setLuaFromEntityTypeProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool setLuaFromObjectTypeProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool setLuaFromVerticesProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool setLuaFromOffsetVerticesProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool setLuaFromIntProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool setLuaFromDoubleProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool setLuaFromBoolProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool setLuaFromVectorProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool setLuaFromStructProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
bool setLuaFromListProp (lua_State *L, const DtString &propertyName, const DtPropertyInterface *inProp, luabind::object &outProp)
 
DtPropertyInterfacecreateStringPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
DtPropertyInterfacecreateDoublePropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
DtPropertyInterfacecreateBoolPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
DtPropertyInterfacecreateTablePropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
DtPropertyInterfacecreateCustomPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
DtPropertyInterfacecreateStructPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
DtPropertyInterfacecreateListPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
DtPropertyInterfacecreateMapPropFromLua (const DtString &propertyName, luabind::object const &inProp, DtRwProperties *parent)
 
const DtPropertyInterfacefindConstListItem (const DtRwPropertiesList *propList, const luabind::object &keyValues, int &index)
 
DtPropertyInterfacefindListItem (DtRwPropertiesList *propList, const luabind::object &keyValues, int &index)
 
const DtPropertyInterfacefindConstMapItem (const DtRwPropertiesMap *propMap, const luabind::object &keyValue)
 
DtPropertyInterfacefindMapItem (DtRwPropertiesMap *propMap, const luabind::object &keyValue)
 

Detailed Description

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

Typedef Documentation

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.

Function Documentation

bool DtPropertySetter::setPropertyFromLua ( const DtString propertyName,
const luabind::object &  inProp,
DtRwProperties outProps 
)

Sets the named property property from a Lua property. Returns true if successful.

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. 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 property that matches the specified keyValues and updates it with the contents of inProp. Returns true if successful.

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. 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 property that matches the specified keyValues and updates it with the contents of inProp. Returns true if successful.

bool DtPropertySetter::setLuaFromProperty ( lua_State *  L,
const DtString propertyName,
const DtRwProperties inProps,
luabind::object &  outProp 
)

Sets the named Lua property from a property. Returns true if successful.

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. Returns true if successful, along with the index of the item found.

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. Returns true if successful.

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. Returns true if successful.

bool DtPropertySetter::setPropertyFromLua ( const luabind::object &  inProp,
DtPropertyInterface outProp 
)

Sets the given property from a Lua object. Returns true if successful.

bool DtPropertySetter::setLuaFromProperty ( lua_State *  L,
const DtPropertyInterface inProps,
luabind::object &  outProp 
)

Sets the given Lua object from a property. Returns true if successful.

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 
)

Lua-to-Property conversion functions.

bool DtPropertySetter::setEntityTypePropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtPropertyInterface outProp 
)

Lua-to-Property conversion functions.

bool DtPropertySetter::setObjectTypePropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtPropertyInterface outProp 
)

Lua-to-Property conversion functions.

bool DtPropertySetter::setVerticesPropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtPropertyInterface outProp 
)

Lua-to-Property conversion functions.

bool DtPropertySetter::setOffsetVerticesPropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtPropertyInterface outProp 
)

Lua-to-Property conversion functions.

bool DtPropertySetter::setIntPropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtPropertyInterface outProp 
)

Lua-to-Property conversion functions.

bool DtPropertySetter::setDoublePropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtPropertyInterface outProp 
)

Lua-to-Property conversion functions.

bool DtPropertySetter::setBoolPropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtPropertyInterface outProp 
)

Lua-to-Property conversion functions.

bool DtPropertySetter::setVectorPropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtPropertyInterface outProp 
)

Lua-to-Property conversion functions.

bool DtPropertySetter::setStructPropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtPropertyInterface outProp 
)

Lua-to-Property conversion functions.

bool DtPropertySetter::setListPropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtPropertyInterface outProp 
)

Lua-to-Property conversion functions.

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 
)

Property-to-Lua conversion functions.

bool DtPropertySetter::setLuaFromObjectTypeProp ( lua_State *  L,
const DtString propertyName,
const DtPropertyInterface inProp,
luabind::object &  outProp 
)

Property-to-Lua conversion functions.

bool DtPropertySetter::setLuaFromVerticesProp ( lua_State *  L,
const DtString propertyName,
const DtPropertyInterface inProp,
luabind::object &  outProp 
)

Property-to-Lua conversion functions.

bool DtPropertySetter::setLuaFromOffsetVerticesProp ( lua_State *  L,
const DtString propertyName,
const DtPropertyInterface inProp,
luabind::object &  outProp 
)

Property-to-Lua conversion functions.

bool DtPropertySetter::setLuaFromIntProp ( lua_State *  L,
const DtString propertyName,
const DtPropertyInterface inProp,
luabind::object &  outProp 
)

Property-to-Lua conversion functions.

bool DtPropertySetter::setLuaFromDoubleProp ( lua_State *  L,
const DtString propertyName,
const DtPropertyInterface inProp,
luabind::object &  outProp 
)

Property-to-Lua conversion functions.

bool DtPropertySetter::setLuaFromBoolProp ( lua_State *  L,
const DtString propertyName,
const DtPropertyInterface inProp,
luabind::object &  outProp 
)

Property-to-Lua conversion functions.

bool DtPropertySetter::setLuaFromVectorProp ( lua_State *  L,
const DtString propertyName,
const DtPropertyInterface inProp,
luabind::object &  outProp 
)

Property-to-Lua conversion functions.

bool DtPropertySetter::setLuaFromStructProp ( lua_State *  L,
const DtString propertyName,
const DtPropertyInterface inProp,
luabind::object &  outProp 
)

Property-to-Lua conversion functions.

bool DtPropertySetter::setLuaFromListProp ( lua_State *  L,
const DtString propertyName,
const DtPropertyInterface inProp,
luabind::object &  outProp 
)

Property-to-Lua conversion functions.

DtPropertyInterface* DtPropertySetter::createStringPropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtRwProperties parent 
)

Lua-to-Property creation functions.

DtPropertyInterface* DtPropertySetter::createDoublePropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtRwProperties parent 
)

Lua-to-Property creation functions.

DtPropertyInterface* DtPropertySetter::createBoolPropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtRwProperties parent 
)

Lua-to-Property creation functions.

DtPropertyInterface* DtPropertySetter::createTablePropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtRwProperties parent 
)

Lua-to-Property creation functions.

DtPropertyInterface* DtPropertySetter::createCustomPropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtRwProperties parent 
)

Lua-to-Property creation functions.

DtPropertyInterface* DtPropertySetter::createStructPropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtRwProperties parent 
)

Lua-to-Property creation functions.

DtPropertyInterface* DtPropertySetter::createListPropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtRwProperties parent 
)

Lua-to-Property creation functions.

DtPropertyInterface* DtPropertySetter::createMapPropFromLua ( const DtString propertyName,
luabind::object const &  inProp,
DtRwProperties parent 
)

Lua-to-Property creation functions.

const DtPropertyInterface* DtPropertySetter::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. Sets the index parameter to the Lua index (where the first item is at index 1).

DtPropertyInterface* DtPropertySetter::findListItem ( 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. Sets the index parameter to the Lua index (where the first item is at index 1).

const DtPropertyInterface* DtPropertySetter::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 DtPropertyInterface* DtPropertySetter::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.

const DtPropertyInterface* 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.

DtPropertyInterface* 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-Property by type.

DtLuaFromPropFcnMap& DtPropertySetter::luaFromPropertyFcnMap ( )

The Property-to-Lua by type.

DtPropFromLuaCreatorFcnMap& DtPropertySetter::propertyFromLuaCreatorFcnMap ( )

The Lua-to-Property creator by type.


Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)