CFx SDK Documentation
2023 SP0
|
#include <RxVariant.h>
Classes | |
struct | TypeFactory |
Public Types | |
enum | Type { kVoid = 0x0000 , kString = 0x0001 , kBool = 0x0002 , kInt8 = 0x0003 , kUInt8 = 0x0003 , kInt16 = 0x0004 , kUInt16 = 0x0004 , kInt32 = 0x0005 , kUInt32 = 0x0005 , kInt64 = 0x0006 , kUInt64 = 0x0006 , kDouble = 0x0007 , kWString = 0x0008 , kAnsiString = 0x0008 , kRxObjectPtr = 0x0009 , kNextType = 0x000A , kByRef = 0x0040 , kArray = 0x0080 } |
Static Public Member Functions | |
static const TypeFactory * | typeFactory (int type) |
Protected Member Functions | |
void * | data () const |
virtual void | setVarType (int newType, int &type, void *data) |
Protected Attributes | |
int | m_type |
union { | |
OdUInt8 uint8 [nOdVariantDataSize] | |
double dbl | |
void * ptr | |
} | m_uData |
This class implements Variant objects within Teigha. Corresponding C++ library: TD_Root <group Other_Classes>
Definition at line 67 of file RxVariant.h.
enum OdVariant::Type |
Enumerator | |
---|---|
kVoid | |
kString | |
kBool | |
kInt8 | |
kUInt8 | |
kInt16 | |
kUInt16 | |
kInt32 | |
kUInt32 | |
kInt64 | |
kUInt64 | |
kDouble | |
kWString | |
kAnsiString | |
kRxObjectPtr | |
kNextType | |
kByRef | |
kArray |
Definition at line 88 of file RxVariant.h.
OdVariant::OdVariant | ( | ) |
OdVariant::OdVariant | ( | const OdVariant & | val | ) |
|
virtual |
OdVariant::OdVariant | ( | const OdString & | val | ) |
OdVariant::OdVariant | ( | const OdAnsiString & | val | ) |
OdVariant::OdVariant | ( | const OdRxObjectPtr & | val | ) |
OdVariant::OdVariant | ( | bool | val | ) |
OdVariant::OdVariant | ( | OdInt8 | val | ) |
OdVariant::OdVariant | ( | OdUInt8 | val | ) |
OdVariant::OdVariant | ( | OdInt16 | val | ) |
OdVariant::OdVariant | ( | OdUInt16 | val | ) |
OdVariant::OdVariant | ( | OdInt32 | val | ) |
OdVariant::OdVariant | ( | OdUInt32 | val | ) |
OdVariant::OdVariant | ( | OdInt64 | val | ) |
OdVariant::OdVariant | ( | OdUInt64 | val | ) |
OdVariant::OdVariant | ( | double | val | ) |
OdAnsiStringArray& OdVariant::asAnsiStringArray | ( | ) |
Sets the type of this Variant object to OdAnsiStringArray.
OdBoolArray& OdVariant::asBoolArray | ( | ) |
Sets the type of this Variant object to OdBoolArray.
OdDoubleArray& OdVariant::asDoubleArray | ( | ) |
Sets the type of this Variant object to OdDoubleArray.
OdInt16Array& OdVariant::asInt16Array | ( | ) |
Sets the type of this Variant object to OdInt16Array.
OdInt32Array& OdVariant::asInt32Array | ( | ) |
Sets the type of this Variant object to OdInt32Array.
OdInt64Array& OdVariant::asInt64Array | ( | ) |
Sets the type of this Variant object to OdInt64Array.
OdInt8Array& OdVariant::asInt8Array | ( | ) |
Sets the type of this Variant object to OdInt8Array.
OdRxObjectPtrArray& OdVariant::asRxObjectPtrArray | ( | ) |
Sets the type of this Variant object to OdRxObjectPtrArray.
OdStringArray& OdVariant::asStringArray | ( | ) |
Sets the type of this Variant object to OdStringArray.
OdUInt16Array& OdVariant::asUInt16Array | ( | ) |
Sets the type of this Variant object to OdUInt16Array.
OdUInt32Array& OdVariant::asUInt32Array | ( | ) |
Sets the type of this Variant object to OdUInt32Array.
OdUInt64Array& OdVariant::asUInt64Array | ( | ) |
Sets the type of this Variant object to OdUInt64Array.
OdUInt8Array& OdVariant::asUInt8Array | ( | ) |
Sets the type of this Variant object to OdUInt8Array.
|
inlineprotected |
Definition at line 77 of file RxVariant.h.
const OdAnsiString& OdVariant::getAnsiString | ( | ) | const |
Returns a reference to the value of this Variant object as an OdAnsiString object.
const OdAnsiStringArray& OdVariant::getAnsiStringArray | ( | ) | const |
Returns a reference to the value of this Variant object as an OdAnsiStringArray object.
OdAnsiStringArray* OdVariant::getAnsiStringArrayPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdAnsiStringArray object.
OdAnsiString* OdVariant::getAnsiStringPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdAnsiString object.
bool OdVariant::getBool | ( | ) | const |
Returns the value of this Variant object as a bool object.
const OdBoolArray& OdVariant::getBoolArray | ( | ) | const |
Returns a reference to the value of this Variant object as an OdBoolArray object.
OdBoolArray* OdVariant::getBoolArrayPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdBoolArray object.
bool* OdVariant::getBoolPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to a bool object.
double OdVariant::getDouble | ( | ) | const |
Returns the value of this Variant object as an double object.
const OdDoubleArray& OdVariant::getDoubleArray | ( | ) | const |
Returns a reference to the value of this Variant object as an OdDoubleArray object.
OdDoubleArray* OdVariant::getDoubleArrayPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdDoubleArray object.
double* OdVariant::getDoublePtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an double object.
OdInt16 OdVariant::getInt16 | ( | ) | const |
Returns the value of this Variant object as an OdInt16 object.
const OdInt16Array& OdVariant::getInt16Array | ( | ) | const |
Returns a reference to the value of this Variant object as an OdInt16Array object.
OdInt16Array* OdVariant::getInt16ArrayPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdInt16Array object.
OdInt16* OdVariant::getInt16Ptr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdInt16 object.
OdInt32 OdVariant::getInt32 | ( | ) | const |
Returns the value of this Variant object as an OdInt32 object.
const OdInt32Array& OdVariant::getInt32Array | ( | ) | const |
Returns a reference to the value of this Variant object as an OdInt32Array object.
OdInt32Array* OdVariant::getInt32ArrayPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdInt32Array object.
OdInt32* OdVariant::getInt32Ptr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdInt32 object.
OdInt64 OdVariant::getInt64 | ( | ) | const |
Returns the value of this Variant object as an OdInt64 object.
const OdInt64Array& OdVariant::getInt64Array | ( | ) | const |
Returns a reference to the value of this Variant object as an OdInt64Array object.
OdInt64Array* OdVariant::getInt64ArrayPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdInt64Array object.
OdInt64* OdVariant::getInt64Ptr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdInt64 object.
OdInt8 OdVariant::getInt8 | ( | ) | const |
Returns the value of this Variant object as an OdInt8 object.
const OdInt8Array& OdVariant::getInt8Array | ( | ) | const |
Returns a reference to the value of this Variant object as an OdInt8Array object.
OdInt8Array* OdVariant::getInt8ArrayPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdInt8Array object.
OdInt8* OdVariant::getInt8Ptr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdInt8 object.
OdIntPtr OdVariant::getIntPtr | ( | ) | const |
Returns the value of this Variant object as an OdIntPtr object.
const OdRxObjectPtr& OdVariant::getRxObjectPtr | ( | ) | const |
Returns a reference to the value of this Variant object as an OdRxObjectPtr object.
const OdRxObjectPtrArray& OdVariant::getRxObjectPtrArray | ( | ) | const |
Returns a reference to the value of this Variant object as an OdRxObjectPtrArray object.
OdRxObjectPtrArray* OdVariant::getRxObjectPtrArrayPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdRxObjectPtrArray object.
OdRxObjectPtr* OdVariant::getRxObjectPtrPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdRxObjectPtr object.
const OdString& OdVariant::getString | ( | ) | const |
Returns a reference to the value of this Variant object as an OdString object.
const OdStringArray& OdVariant::getStringArray | ( | ) | const |
Returns a reference to the value of this Variant object as an OdStringArray object.
OdStringArray* OdVariant::getStringArrayPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdStringArray object.
OdString* OdVariant::getStringPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdString object.
OdUInt16 OdVariant::getUInt16 | ( | ) | const |
Returns the value of this Variant object as an OdUInt16 object.
const OdUInt16Array& OdVariant::getUInt16Array | ( | ) | const |
Returns a reference to the value of this Variant object as an OdUInt16Array object.
OdUInt16Array* OdVariant::getUInt16ArrayPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdUInt16Array object.
OdUInt16* OdVariant::getUInt16Ptr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdUInt16 object.
OdUInt32 OdVariant::getUInt32 | ( | ) | const |
Returns the value of this Variant object as an OdUInt32 object.
const OdUInt32Array& OdVariant::getUInt32Array | ( | ) | const |
Returns a reference to the value of this Variant object as an OdUInt32Array object.
OdUInt32Array* OdVariant::getUInt32ArrayPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdUInt32Array object.
OdUInt32* OdVariant::getUInt32Ptr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdUInt32 object.
OdUInt64 OdVariant::getUInt64 | ( | ) | const |
Returns the value of this Variant object as an OdUInt64 object.
const OdUInt64Array& OdVariant::getUInt64Array | ( | ) | const |
Returns a reference to the value of this Variant object as an OdUInt64Array object.
OdUInt64Array* OdVariant::getUInt64ArrayPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdUInt64Array object.
OdUInt64* OdVariant::getUInt64Ptr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdUInt64 object.
OdUInt8 OdVariant::getUInt8 | ( | ) | const |
Returns the value of this Variant object as an OdUInt8 object.
const OdUInt8Array& OdVariant::getUInt8Array | ( | ) | const |
Returns a reference to the value of this Variant object as an OdUInt8Array object.
OdUInt8Array* OdVariant::getUInt8ArrayPtr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdUInt8Array object.
OdUInt8* OdVariant::getUInt8Ptr | ( | ) | const |
Returns the value of this Variant object as a pointer to an OdUInt8 object.
|
inline |
Returns true if and only if this Variant object is an Array.
Definition at line 126 of file RxVariant.h.
|
inline |
Returns true if and only if this Variant object is ByRef (read/write).
Definition at line 130 of file RxVariant.h.
OdVariant& OdVariant::setAnsiString | ( | const OdAnsiString & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setAnsiStringArray | ( | const OdAnsiStringArray & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setAnsiStringArrayPtr | ( | OdAnsiStringArray * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setAnsiStringPtr | ( | OdAnsiString * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setBool | ( | bool | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setBoolArray | ( | const OdBoolArray & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setBoolArrayPtr | ( | OdBoolArray * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setBoolPtr | ( | bool * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setDouble | ( | double | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setDoubleArray | ( | const OdDoubleArray & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setDoubleArrayPtr | ( | OdDoubleArray * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setDoublePtr | ( | double * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setInt16Array | ( | const OdInt16Array & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setInt16ArrayPtr | ( | OdInt16Array * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setInt32Array | ( | const OdInt32Array & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setInt32ArrayPtr | ( | OdInt32Array * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setInt64Array | ( | const OdInt64Array & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setInt64ArrayPtr | ( | OdInt64Array * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setInt8Array | ( | const OdInt8Array & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setInt8ArrayPtr | ( | OdInt8Array * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setRxObjectPtr | ( | const OdRxObjectPtr & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setRxObjectPtrArray | ( | const OdRxObjectPtrArray & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setRxObjectPtrArrayPtr | ( | OdRxObjectPtrArray * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setRxObjectPtrPtr | ( | OdRxObjectPtr * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setStringArray | ( | const OdStringArray & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setStringArrayPtr | ( | OdStringArray * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setUInt16Array | ( | const OdUInt16Array & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setUInt16ArrayPtr | ( | OdUInt16Array * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setUInt32Array | ( | const OdUInt32Array & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setUInt32ArrayPtr | ( | OdUInt32Array * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setUInt64Array | ( | const OdUInt64Array & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setUInt64ArrayPtr | ( | OdUInt64Array * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setUInt8Array | ( | const OdUInt8Array & | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
OdVariant& OdVariant::setUInt8ArrayPtr | ( | OdUInt8Array * | val | ) |
Sets the value of this Variant object.
val | [in] Value. |
Sets the value of this Variant object.
val | [in] Value. |
Reimplemented in OdTfVariant, and AECVariant.
|
inline |
Returns the type of this Variant object, excluding ByRef and Array flags.
Definition at line 122 of file RxVariant.h.
|
static |
|
inline |
Returns the type of this Variant object, including ByRef and Array flags.
Definition at line 118 of file RxVariant.h.
double OdVariant::dbl |
Definition at line 74 of file RxVariant.h.
|
protected |
Definition at line 70 of file RxVariant.h.
union { ... } OdVariant::m_uData |
void* OdVariant::ptr |
Definition at line 75 of file RxVariant.h.
OdUInt8 OdVariant::uint8[nOdVariantDataSize] |
Definition at line 73 of file RxVariant.h.