void * myPtr
Storage for pointer values.
Definition luaValue.h:200
virtual ~DtLuaValue()
Virtual destructor.
virtual std::string typeName() const
Gets the name of the value's type as a string.
bool myBool
Storage for boolean values.
Definition luaValue.h:195
DtLuaValue(bool v)
Constructor for boolean values.
virtual double doubleValue() const
Gets the value as a double.
double myDouble
Storage for double values.
Definition luaValue.h:198
DtLuaValue(const DtLuaValue &orig)
Copy constructor.
DtLuaValue & operator=(const DtLuaValue &orig)
Assignment operator.
virtual bool isTable() const
Checks if this value is a table.
virtual bool isInt() const
Checks if this value is an integer.
float myFloat
Storage for float values.
Definition luaValue.h:197
virtual bool isBool() const
Checks if this value is a boolean.
virtual ScriptDataTypeEnum type() const
Gets the type of this Lua value.
DtLuaValue(const std::string &v)
Constructor for string values.
DtLuaValue(void *v)
Constructor for pointer values.
virtual std::string stringValue() const
Gets the value as a string.
virtual bool boolValue() const
Gets the value as a boolean.
virtual float floatValue() const
Gets the value as a float.
ScriptDataTypeEnum
Enumeration of supported Lua value types.
Definition luaValue.h:36
@ SCRIPT_POINTER
Pointer value (for light userdata)
Definition luaValue.h:43
@ SCRIPT_STRING
String value.
Definition luaValue.h:42
@ SCRIPT_INT
Integer value.
Definition luaValue.h:39
@ SCRIPT_FLOAT
Single-precision floating point value.
Definition luaValue.h:40
@ SCRIPT_FUNCTION
Function reference.
Definition luaValue.h:44
@ SCRIPT_DOUBLE
Double-precision floating point value.
Definition luaValue.h:41
@ SCRIPT_NIL
Nil value (null/undefined)
Definition luaValue.h:37
@ SCRIPT_TABLE
Table reference.
Definition luaValue.h:45
@ SCRIPT_BOOL
Boolean value (true/false)
Definition luaValue.h:38
virtual bool isFloat() const
Checks if this value is a float.
DtLuaValue()
Default constructor.
DtLuaValue(const char *v)
Constructor for C-string values.
ScriptDataTypeEnum myType
The type of the stored value.
Definition luaValue.h:187
virtual bool isNil() const
Checks if this value is nil.
DtLuaValue(int v)
Constructor for integer values.
virtual bool isFunction() const
Checks if this value is a function.
int myInt
Storage for integer values.
Definition luaValue.h:196
virtual int intValue() const
Gets the value as an integer.
virtual bool isDouble() const
Checks if this value is a double.
const char * myString
Storage for string values.
Definition luaValue.h:199
DtLuaValue(double v)
Constructor for double values.
DtLuaValue(float v)
Constructor for float values.
virtual void * pointerValue() const
Gets the value as a pointer.
virtual bool isPointer() const
Checks if this value is a pointer.
virtual bool isString() const
Checks if this value is a string.
Defines export macros for the VREngage Utility library.
#define UTIL_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49