VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
propertySetter.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 
8 #pragma once
9 
10 #include <vrfLua/vrfLuaDefines.h>
11 #include <luabind/luabind.hpp>
14 
15 class DtString;
16 class DtRwProperties;
17 
20 namespace DtPropertySetter
21 {
22 
25  bool setPropertyFromLua(const DtString& propertyName,
26  const luabind::object& inProp, DtRwProperties* outProps);
27 
31  bool setOrAddPropertyFromLua(const DtString& propertyName,
32  const luabind::object& inProp, DtRwProperties* outProps);
33 
37  bool setPropertyListItemFromLua(const DtString& propertyName,
38  const luabind::object& keyValues, const luabind::object& inProp,
39  DtRwProperties* outProps);
40 
44  bool setPropertyListItemFromLua(const DtString& propertyName,
45  int index, const luabind::object& inProp,
46  DtRwProperties* outProps);
47 
51  bool setPropertyMapItemFromLua(const DtString& propertyName,
52  const luabind::object& keyValue, const luabind::object& inProp,
53  DtRwProperties* outProps);
54 
57  bool setLuaFromProperty(lua_State* L, const DtString& propertyName,
58  const DtRwProperties* inProps, luabind::object& outProp);
59 
63  bool setLuaListItemFromProperty(lua_State* L, const DtString& propertyName,
64  const luabind::object& keyValues, const DtRwProperties* inProps,
65  luabind::object& outItem, int& index);
66 
70  bool setLuaListItemFromProperty(lua_State* L, const DtString& propertyName,
71  int index, const DtRwProperties* inProps,
72  luabind::object& outItem);
73 
77  bool setLuaMapItemFromProperty(lua_State* L, const DtString& propertyName,
78  const luabind::object& keyValue, const DtRwProperties* inProps,
79  luabind::object& outItem);
80 
83  bool setPropertyFromLua(const luabind::object& inProp, DtPropertyInterface* outProp);
84 
87  bool setLuaFromProperty(lua_State* L,
88  const DtPropertyInterface* inProps, luabind::object& outProp);
89 
91  typedef bool (*luaToPropFnc)(const DtString& propertyName, luabind::object const& inProp,
92  DtPropertyInterface* outProp);
93 
95 
96  bool setStringPropFromLua(const DtString& propertyName, luabind::object const& inProp,
97  DtPropertyInterface* outProp);
98 
99  bool setUUIDPropFromLua(const DtString& propertyName, luabind::object const& inProp,
100  DtPropertyInterface* outProp);
101 
102  bool setEntityTypePropFromLua(const DtString& propertyName, luabind::object const& inProp,
103  DtPropertyInterface* outProp);
104 
105  bool setObjectTypePropFromLua(const DtString& propertyName, luabind::object const& inProp,
106  DtPropertyInterface* outProp);
107 
108  bool setVerticesPropFromLua(const DtString& propertyName, luabind::object const& inProp,
109  DtPropertyInterface* outProp);
110 
111  bool setOffsetVerticesPropFromLua(const DtString& propertyName, luabind::object const& inProp,
112  DtPropertyInterface* outProp);
113 
114  bool setIntPropFromLua(const DtString& propertyName, luabind::object const& inProp,
115  DtPropertyInterface* outProp);
116 
117  bool setDoublePropFromLua(const DtString& propertyName, luabind::object const& inProp,
118  DtPropertyInterface* outProp);
119 
120  bool setBoolPropFromLua(const DtString& propertyName, luabind::object const& inProp,
121  DtPropertyInterface* outProp);
122 
123  bool setStructPropFromLua(const DtString& propertyName, luabind::object const& inProp,
124  DtPropertyInterface* outProp);
125 
126  bool setListPropFromLua(const DtString& propertyName, luabind::object const& inProp,
127  DtPropertyInterface* outProp);
129 
130 
132  typedef bool (*propToLuaFnc)(lua_State* L, const DtString& propertyName,
133  const DtPropertyInterface* inProp, luabind::object& outProp);
134 
136 
137  bool setLuaFromStringProp(lua_State* L, const DtString& propertyName,
138  const DtPropertyInterface* inProp, luabind::object& outProp);
139 
140  bool setLuaFromEntityTypeProp(lua_State* L, const DtString& propertyName,
141  const DtPropertyInterface* inProp, luabind::object& outProp);
142 
143  bool setLuaFromObjectTypeProp(lua_State* L, const DtString& propertyName,
144  const DtPropertyInterface* inProp, luabind::object& outProp);
145 
146  bool setLuaFromVerticesProp(lua_State* L, const DtString& propertyName,
147  const DtPropertyInterface* inProp, luabind::object& outProp);
148 
149  bool setLuaFromOffsetVerticesProp(lua_State* L, const DtString& propertyName,
150  const DtPropertyInterface* inProp, luabind::object& outProp);
151 
152  bool setLuaFromIntProp(lua_State* L, const DtString& propertyName,
153  const DtPropertyInterface* inProp, luabind::object& outProp);
154 
155  bool setLuaFromDoubleProp(lua_State* L, const DtString& propertyName,
156  const DtPropertyInterface* inProp, luabind::object& outProp);
157 
158  bool setLuaFromBoolProp(lua_State* L, const DtString& propertyName,
159  const DtPropertyInterface* inProp, luabind::object& outProp);
160 
161  bool setLuaFromStructProp(lua_State* L, const DtString& propertyName,
162  const DtPropertyInterface* inProp, luabind::object& outProp);
163 
164  bool setLuaFromListProp(lua_State* L, const DtString& propertyName,
165  const DtPropertyInterface* inProp, luabind::object& outProp);
167 
169  typedef DtPropertyInterface* (*luaToPropCreatorFnc)(const DtString& propertyName, luabind::object const& inProp,
170  DtRwProperties* parent);
171 
173 
174  DtPropertyInterface* createStringPropFromLua(const DtString& propertyName, luabind::object const& inProp,
175  DtRwProperties* parent);
176 
177  DtPropertyInterface* createDoublePropFromLua(const DtString& propertyName, luabind::object const& inProp,
178  DtRwProperties* parent);
179 
180  DtPropertyInterface* createBoolPropFromLua(const DtString& propertyName, luabind::object const& inProp,
181  DtRwProperties* parent);
182 
183  DtPropertyInterface* createTablePropFromLua(const DtString& propertyName, luabind::object const& inProp,
184  DtRwProperties* parent);
185 
186  DtPropertyInterface* createCustomPropFromLua(const DtString& propertyName, luabind::object const& inProp,
187  DtRwProperties* parent);
188 
189  DtPropertyInterface* createStructPropFromLua(const DtString& propertyName, luabind::object const& inProp,
190  DtRwProperties* parent);
191 
192  DtPropertyInterface* createListPropFromLua(const DtString& propertyName, luabind::object const& inProp,
193  DtRwProperties* parent);
194 
195  DtPropertyInterface* createMapPropFromLua(const DtString& propertyName, luabind::object const& inProp,
196  DtRwProperties* parent);
198 
202 
204  const luabind::object& keyValues, int& index);
206  const luabind::object& keyValues, int& index);
208 
213  const luabind::object& keyValues, int& index);
214 
219  const luabind::object& keyValues, int& index);
220 
224  const luabind::object& keyValue);
225 
228 
230  const luabind::object& keyValue);
232  const luabind::object& keyValue);
234 
235  typedef std::map<DtString, luaToPropFnc> DtPropFromLuaFcnMap;
238 
239  typedef std::map<DtString, propToLuaFnc> DtLuaFromPropFcnMap;
242 
243  typedef std::map<int, luaToPropCreatorFnc> DtPropFromLuaCreatorFcnMap;
246 };
247 

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)