CFx SDK Documentation  2020SP3
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OdVariant Class Reference

#include <RxVariant.h>

Inheritance diagram for OdVariant:
OdRxVariant OdTfVariant

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
}
 

Public Member Functions

 OdVariant ()
 
 OdVariant (const OdVariant &val)
 
OdVariantoperator= (const OdVariant &val)
 
virtual ~OdVariant ()
 
int varType () const
 
Type type () const
 
bool isArray () const
 
bool isByRef () const
 
 OdVariant (const OdString &val)
 
 OdVariant (const OdAnsiString &val)
 
 OdVariant (const OdRxObjectPtr &val)
 
 OdVariant (bool val)
 
 OdVariant (OdInt8 val)
 
 OdVariant (OdUInt8 val)
 
 OdVariant (OdInt16 val)
 
 OdVariant (OdUInt16 val)
 
 OdVariant (OdInt32 val)
 
 OdVariant (OdUInt32 val)
 
 OdVariant (OdInt64 val)
 
 OdVariant (OdUInt64 val)
 
 OdVariant (double val)
 
const OdStringgetString () const
 
const OdAnsiString & getAnsiString () const
 
const OdRxObjectPtrgetRxObjectPtr () const
 
bool getBool () const
 
OdInt8 getInt8 () const
 
OdUInt8 getUInt8 () const
 
OdInt16 getInt16 () const
 
OdUInt16 getUInt16 () const
 
OdInt32 getInt32 () const
 
OdUInt32 getUInt32 () const
 
OdInt64 getInt64 () const
 
OdUInt64 getUInt64 () const
 
OdIntPtr getIntPtr () const
 
double getDouble () const
 
OdStringgetStringPtr () const
 
OdAnsiString * getAnsiStringPtr () const
 
OdRxObjectPtrgetRxObjectPtrPtr () const
 
bool * getBoolPtr () const
 
OdInt8getInt8Ptr () const
 
OdUInt8getUInt8Ptr () const
 
OdInt16getInt16Ptr () const
 
OdUInt16getUInt16Ptr () const
 
OdInt32getInt32Ptr () const
 
OdUInt32getUInt32Ptr () const
 
OdInt64getInt64Ptr () const
 
OdUInt64getUInt64Ptr () const
 
double * getDoublePtr () const
 
const OdStringArraygetStringArray () const
 
const OdAnsiStringArray & getAnsiStringArray () const
 
const OdRxObjectPtrArraygetRxObjectPtrArray () const
 
const OdBoolArraygetBoolArray () const
 
const OdInt8ArraygetInt8Array () const
 
const OdUInt8ArraygetUInt8Array () const
 
const OdInt16ArraygetInt16Array () const
 
const OdUInt16ArraygetUInt16Array () const
 
const OdInt32ArraygetInt32Array () const
 
const OdUInt32ArraygetUInt32Array () const
 
const OdInt64ArraygetInt64Array () const
 
const OdUInt64ArraygetUInt64Array () const
 
const OdDoubleArraygetDoubleArray () const
 
OdStringArrayasStringArray ()
 
OdAnsiStringArray & asAnsiStringArray ()
 
OdRxObjectPtrArrayasRxObjectPtrArray ()
 
OdBoolArrayasBoolArray ()
 
OdInt8ArrayasInt8Array ()
 
OdUInt8ArrayasUInt8Array ()
 
OdInt16ArrayasInt16Array ()
 
OdUInt16ArrayasUInt16Array ()
 
OdInt32ArrayasInt32Array ()
 
OdUInt32ArrayasUInt32Array ()
 
OdInt64ArrayasInt64Array ()
 
OdUInt64ArrayasUInt64Array ()
 
OdDoubleArrayasDoubleArray ()
 
OdStringArraygetStringArrayPtr () const
 
OdAnsiStringArray * getAnsiStringArrayPtr () const
 
OdRxObjectPtrArraygetRxObjectPtrArrayPtr () const
 
OdBoolArraygetBoolArrayPtr () const
 
OdInt8ArraygetInt8ArrayPtr () const
 
OdUInt8ArraygetUInt8ArrayPtr () const
 
OdInt16ArraygetInt16ArrayPtr () const
 
OdUInt16ArraygetUInt16ArrayPtr () const
 
OdInt32ArraygetInt32ArrayPtr () const
 
OdUInt32ArraygetUInt32ArrayPtr () const
 
OdInt64ArraygetInt64ArrayPtr () const
 
OdUInt64ArraygetUInt64ArrayPtr () const
 
OdDoubleArraygetDoubleArrayPtr () const
 
OdVariantsetString (const OdString &val)
 
OdVariantsetAnsiString (const OdAnsiString &val)
 
OdVariantsetRxObjectPtr (const OdRxObjectPtr &val)
 
OdVariantsetBool (bool val)
 
OdVariantsetInt8 (OdInt8 val)
 
OdVariantsetUInt8 (OdUInt8 val)
 
OdVariantsetInt16 (OdInt16 val)
 
OdVariantsetUInt16 (OdUInt16 val)
 
OdVariantsetInt32 (OdInt32 val)
 
OdVariantsetUInt32 (OdUInt32 val)
 
OdVariantsetInt64 (OdInt64 val)
 
OdVariantsetUInt64 (OdUInt64 val)
 
OdVariantsetIntPtr (OdIntPtr val)
 
OdVariantsetDouble (double val)
 
OdVariantsetStringPtr (OdString *val)
 
OdVariantsetAnsiStringPtr (OdAnsiString *val)
 
OdVariantsetRxObjectPtrPtr (OdRxObjectPtr *val)
 
OdVariantsetBoolPtr (bool *val)
 
OdVariantsetInt8Ptr (OdInt8 *val)
 
OdVariantsetUInt8Ptr (OdUInt8 *val)
 
OdVariantsetInt16Ptr (OdInt16 *val)
 
OdVariantsetUInt16Ptr (OdUInt16 *val)
 
OdVariantsetInt32Ptr (OdInt32 *val)
 
OdVariantsetUInt32Ptr (OdUInt32 *val)
 
OdVariantsetInt64Ptr (OdInt64 *val)
 
OdVariantsetUInt64Ptr (OdUInt64 *val)
 
OdVariantsetDoublePtr (double *val)
 
OdVariantsetStringArray (const OdStringArray &val)
 
OdVariantsetAnsiStringArray (const OdAnsiStringArray &val)
 
OdVariantsetRxObjectPtrArray (const OdRxObjectPtrArray &val)
 
OdVariantsetBoolArray (const OdBoolArray &val)
 
OdVariantsetInt8Array (const OdInt8Array &val)
 
OdVariantsetUInt8Array (const OdUInt8Array &val)
 
OdVariantsetInt16Array (const OdInt16Array &val)
 
OdVariantsetUInt16Array (const OdUInt16Array &val)
 
OdVariantsetInt32Array (const OdInt32Array &val)
 
OdVariantsetUInt32Array (const OdUInt32Array &val)
 
OdVariantsetInt64Array (const OdInt64Array &val)
 
OdVariantsetUInt64Array (const OdUInt64Array &val)
 
OdVariantsetDoubleArray (const OdDoubleArray &val)
 
OdVariantsetStringArrayPtr (OdStringArray *val)
 
OdVariantsetAnsiStringArrayPtr (OdAnsiStringArray *val)
 
OdVariantsetRxObjectPtrArrayPtr (OdRxObjectPtrArray *val)
 
OdVariantsetBoolArrayPtr (OdBoolArray *val)
 
OdVariantsetInt8ArrayPtr (OdInt8Array *val)
 
OdVariantsetUInt8ArrayPtr (OdUInt8Array *val)
 
OdVariantsetInt16ArrayPtr (OdInt16Array *val)
 
OdVariantsetUInt16ArrayPtr (OdUInt16Array *val)
 
OdVariantsetInt32ArrayPtr (OdInt32Array *val)
 
OdVariantsetUInt32ArrayPtr (OdUInt32Array *val)
 
OdVariantsetInt64ArrayPtr (OdInt64Array *val)
 
OdVariantsetUInt64ArrayPtr (OdUInt64Array *val)
 
OdVariantsetDoubleArrayPtr (OdDoubleArray *val)
 

Static Public Member Functions

static const TypeFactorytypeFactory (int type)
 

Protected Member Functions

voiddata () 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
 

Detailed Description

This class implements Variant objects within Teigha. Corresponding C++ library: TD_Root <group Other_Classes>

Definition at line 67 of file RxVariant.h.

Member Enumeration Documentation

◆ 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.

Constructor & Destructor Documentation

◆ OdVariant() [1/15]

OdVariant::OdVariant ( )

◆ OdVariant() [2/15]

OdVariant::OdVariant ( const OdVariant val)

◆ ~OdVariant()

virtual OdVariant::~OdVariant ( )
virtual

◆ OdVariant() [3/15]

OdVariant::OdVariant ( const OdString val)

◆ OdVariant() [4/15]

OdVariant::OdVariant ( const OdAnsiString &  val)

◆ OdVariant() [5/15]

OdVariant::OdVariant ( const OdRxObjectPtr val)

◆ OdVariant() [6/15]

OdVariant::OdVariant ( bool  val)

◆ OdVariant() [7/15]

OdVariant::OdVariant ( OdInt8  val)

◆ OdVariant() [8/15]

OdVariant::OdVariant ( OdUInt8  val)

◆ OdVariant() [9/15]

OdVariant::OdVariant ( OdInt16  val)

◆ OdVariant() [10/15]

OdVariant::OdVariant ( OdUInt16  val)

◆ OdVariant() [11/15]

OdVariant::OdVariant ( OdInt32  val)

◆ OdVariant() [12/15]

OdVariant::OdVariant ( OdUInt32  val)

◆ OdVariant() [13/15]

OdVariant::OdVariant ( OdInt64  val)

◆ OdVariant() [14/15]

OdVariant::OdVariant ( OdUInt64  val)

◆ OdVariant() [15/15]

OdVariant::OdVariant ( double  val)

Member Function Documentation

◆ asAnsiStringArray()

OdAnsiStringArray& OdVariant::asAnsiStringArray ( )

Sets the type of this Variant object to OdAnsiStringArray.

Returns
Returns a reference to this Variant object.

◆ asBoolArray()

OdBoolArray& OdVariant::asBoolArray ( )

Sets the type of this Variant object to OdBoolArray.

Returns
Returns a reference to this Variant object.

◆ asDoubleArray()

OdDoubleArray& OdVariant::asDoubleArray ( )

Sets the type of this Variant object to OdDoubleArray.

Returns
Returns a reference to this Variant object.

◆ asInt16Array()

OdInt16Array& OdVariant::asInt16Array ( )

Sets the type of this Variant object to OdInt16Array.

Returns
Returns a reference to this Variant object.

◆ asInt32Array()

OdInt32Array& OdVariant::asInt32Array ( )

Sets the type of this Variant object to OdInt32Array.

Returns
Returns a reference to this Variant object.

◆ asInt64Array()

OdInt64Array& OdVariant::asInt64Array ( )

Sets the type of this Variant object to OdInt64Array.

Returns
Returns a reference to this Variant object.

◆ asInt8Array()

OdInt8Array& OdVariant::asInt8Array ( )

Sets the type of this Variant object to OdInt8Array.

Returns
Returns a reference to this Variant object.

◆ asRxObjectPtrArray()

OdRxObjectPtrArray& OdVariant::asRxObjectPtrArray ( )

Sets the type of this Variant object to OdRxObjectPtrArray.

Returns
Returns a reference to this Variant object.

◆ asStringArray()

OdStringArray& OdVariant::asStringArray ( )

Sets the type of this Variant object to OdStringArray.

◆ asUInt16Array()

OdUInt16Array& OdVariant::asUInt16Array ( )

Sets the type of this Variant object to OdUInt16Array.

Returns
Returns a reference to this Variant object.

◆ asUInt32Array()

OdUInt32Array& OdVariant::asUInt32Array ( )

Sets the type of this Variant object to OdUInt32Array.

Returns
Returns a reference to this Variant object.

◆ asUInt64Array()

OdUInt64Array& OdVariant::asUInt64Array ( )

Sets the type of this Variant object to OdUInt64Array.

Returns
Returns a reference to this Variant object.

◆ asUInt8Array()

OdUInt8Array& OdVariant::asUInt8Array ( )

Sets the type of this Variant object to OdUInt8Array.

Returns
Returns a reference to this Variant object.

◆ data()

void* OdVariant::data ( ) const
inlineprotected

Definition at line 77 of file RxVariant.h.

◆ getAnsiString()

const OdAnsiString& OdVariant::getAnsiString ( ) const

Returns a reference to the value of this Variant object as an OdAnsiString object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getAnsiStringArray()

const OdAnsiStringArray& OdVariant::getAnsiStringArray ( ) const

Returns a reference to the value of this Variant object as an OdAnsiStringArray object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getAnsiStringArrayPtr()

OdAnsiStringArray* OdVariant::getAnsiStringArrayPtr ( ) const

Returns the value of this Variant object as a pointer to an OdAnsiStringArray object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getAnsiStringPtr()

OdAnsiString* OdVariant::getAnsiStringPtr ( ) const

Returns the value of this Variant object as a pointer to an OdAnsiString object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getBool()

bool OdVariant::getBool ( ) const

Returns the value of this Variant object as a bool object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getBoolArray()

const OdBoolArray& OdVariant::getBoolArray ( ) const

Returns a reference to the value of this Variant object as an OdBoolArray object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getBoolArrayPtr()

OdBoolArray* OdVariant::getBoolArrayPtr ( ) const

Returns the value of this Variant object as a pointer to an OdBoolArray object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getBoolPtr()

bool* OdVariant::getBoolPtr ( ) const

Returns the value of this Variant object as a pointer to a bool object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getDouble()

double OdVariant::getDouble ( ) const

Returns the value of this Variant object as an double object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getDoubleArray()

const OdDoubleArray& OdVariant::getDoubleArray ( ) const

Returns a reference to the value of this Variant object as an OdDoubleArray object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getDoubleArrayPtr()

OdDoubleArray* OdVariant::getDoubleArrayPtr ( ) const

Returns the value of this Variant object as a pointer to an OdDoubleArray object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getDoublePtr()

double* OdVariant::getDoublePtr ( ) const

Returns the value of this Variant object as a pointer to an double object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt16()

OdInt16 OdVariant::getInt16 ( ) const

Returns the value of this Variant object as an OdInt16 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt16Array()

const OdInt16Array& OdVariant::getInt16Array ( ) const

Returns a reference to the value of this Variant object as an OdInt16Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt16ArrayPtr()

OdInt16Array* OdVariant::getInt16ArrayPtr ( ) const

Returns the value of this Variant object as a pointer to an OdInt16Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt16Ptr()

OdInt16* OdVariant::getInt16Ptr ( ) const

Returns the value of this Variant object as a pointer to an OdInt16 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt32()

OdInt32 OdVariant::getInt32 ( ) const

Returns the value of this Variant object as an OdInt32 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt32Array()

const OdInt32Array& OdVariant::getInt32Array ( ) const

Returns a reference to the value of this Variant object as an OdInt32Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt32ArrayPtr()

OdInt32Array* OdVariant::getInt32ArrayPtr ( ) const

Returns the value of this Variant object as a pointer to an OdInt32Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt32Ptr()

OdInt32* OdVariant::getInt32Ptr ( ) const

Returns the value of this Variant object as a pointer to an OdInt32 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt64()

OdInt64 OdVariant::getInt64 ( ) const

Returns the value of this Variant object as an OdInt64 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt64Array()

const OdInt64Array& OdVariant::getInt64Array ( ) const

Returns a reference to the value of this Variant object as an OdInt64Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt64ArrayPtr()

OdInt64Array* OdVariant::getInt64ArrayPtr ( ) const

Returns the value of this Variant object as a pointer to an OdInt64Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt64Ptr()

OdInt64* OdVariant::getInt64Ptr ( ) const

Returns the value of this Variant object as a pointer to an OdInt64 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt8()

OdInt8 OdVariant::getInt8 ( ) const

Returns the value of this Variant object as an OdInt8 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt8Array()

const OdInt8Array& OdVariant::getInt8Array ( ) const

Returns a reference to the value of this Variant object as an OdInt8Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt8ArrayPtr()

OdInt8Array* OdVariant::getInt8ArrayPtr ( ) const

Returns the value of this Variant object as a pointer to an OdInt8Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getInt8Ptr()

OdInt8* OdVariant::getInt8Ptr ( ) const

Returns the value of this Variant object as a pointer to an OdInt8 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getIntPtr()

OdIntPtr OdVariant::getIntPtr ( ) const

Returns the value of this Variant object as an OdIntPtr object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getRxObjectPtr()

const OdRxObjectPtr& OdVariant::getRxObjectPtr ( ) const

Returns a reference to the value of this Variant object as an OdRxObjectPtr object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getRxObjectPtrArray()

const OdRxObjectPtrArray& OdVariant::getRxObjectPtrArray ( ) const

Returns a reference to the value of this Variant object as an OdRxObjectPtrArray object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getRxObjectPtrArrayPtr()

OdRxObjectPtrArray* OdVariant::getRxObjectPtrArrayPtr ( ) const

Returns the value of this Variant object as a pointer to an OdRxObjectPtrArray object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getRxObjectPtrPtr()

OdRxObjectPtr* OdVariant::getRxObjectPtrPtr ( ) const

Returns the value of this Variant object as a pointer to an OdRxObjectPtr object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getString()

const OdString& OdVariant::getString ( ) const

Returns a reference to the value of this Variant object as an OdString object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getStringArray()

const OdStringArray& OdVariant::getStringArray ( ) const

Returns a reference to the value of this Variant object as an OdStringArray object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getStringArrayPtr()

OdStringArray* OdVariant::getStringArrayPtr ( ) const

Returns the value of this Variant object as a pointer to an OdStringArray object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getStringPtr()

OdString* OdVariant::getStringPtr ( ) const

Returns the value of this Variant object as a pointer to an OdString object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt16()

OdUInt16 OdVariant::getUInt16 ( ) const

Returns the value of this Variant object as an OdUInt16 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt16Array()

const OdUInt16Array& OdVariant::getUInt16Array ( ) const

Returns a reference to the value of this Variant object as an OdUInt16Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt16ArrayPtr()

OdUInt16Array* OdVariant::getUInt16ArrayPtr ( ) const

Returns the value of this Variant object as a pointer to an OdUInt16Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt16Ptr()

OdUInt16* OdVariant::getUInt16Ptr ( ) const

Returns the value of this Variant object as a pointer to an OdUInt16 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt32()

OdUInt32 OdVariant::getUInt32 ( ) const

Returns the value of this Variant object as an OdUInt32 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt32Array()

const OdUInt32Array& OdVariant::getUInt32Array ( ) const

Returns a reference to the value of this Variant object as an OdUInt32Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt32ArrayPtr()

OdUInt32Array* OdVariant::getUInt32ArrayPtr ( ) const

Returns the value of this Variant object as a pointer to an OdUInt32Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt32Ptr()

OdUInt32* OdVariant::getUInt32Ptr ( ) const

Returns the value of this Variant object as a pointer to an OdUInt32 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt64()

OdUInt64 OdVariant::getUInt64 ( ) const

Returns the value of this Variant object as an OdUInt64 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt64Array()

const OdUInt64Array& OdVariant::getUInt64Array ( ) const

Returns a reference to the value of this Variant object as an OdUInt64Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt64ArrayPtr()

OdUInt64Array* OdVariant::getUInt64ArrayPtr ( ) const

Returns the value of this Variant object as a pointer to an OdUInt64Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt64Ptr()

OdUInt64* OdVariant::getUInt64Ptr ( ) const

Returns the value of this Variant object as a pointer to an OdUInt64 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt8()

OdUInt8 OdVariant::getUInt8 ( ) const

Returns the value of this Variant object as an OdUInt8 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt8Array()

const OdUInt8Array& OdVariant::getUInt8Array ( ) const

Returns a reference to the value of this Variant object as an OdUInt8Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt8ArrayPtr()

OdUInt8Array* OdVariant::getUInt8ArrayPtr ( ) const

Returns the value of this Variant object as a pointer to an OdUInt8Array object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ getUInt8Ptr()

OdUInt8* OdVariant::getUInt8Ptr ( ) const

Returns the value of this Variant object as a pointer to an OdUInt8 object.

Remarks
No check is made to determine that this Variant object is of the specified type.

◆ isArray()

bool OdVariant::isArray ( ) const
inline

Returns true if and only if this Variant object is an Array.

Definition at line 126 of file RxVariant.h.

◆ isByRef()

bool OdVariant::isByRef ( ) const
inline

Returns true if and only if this Variant object is ByRef (read/write).

Definition at line 130 of file RxVariant.h.

◆ operator=()

OdVariant& OdVariant::operator= ( const OdVariant val)

◆ setAnsiString()

OdVariant& OdVariant::setAnsiString ( const OdAnsiString &  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setAnsiStringArray()

OdVariant& OdVariant::setAnsiStringArray ( const OdAnsiStringArray &  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setAnsiStringArrayPtr()

OdVariant& OdVariant::setAnsiStringArrayPtr ( OdAnsiStringArray *  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setAnsiStringPtr()

OdVariant& OdVariant::setAnsiStringPtr ( OdAnsiString *  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setBool()

OdVariant& OdVariant::setBool ( bool  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setBoolArray()

OdVariant& OdVariant::setBoolArray ( const OdBoolArray val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setBoolArrayPtr()

OdVariant& OdVariant::setBoolArrayPtr ( OdBoolArray val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setBoolPtr()

OdVariant& OdVariant::setBoolPtr ( bool *  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setDouble()

OdVariant& OdVariant::setDouble ( double  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setDoubleArray()

OdVariant& OdVariant::setDoubleArray ( const OdDoubleArray val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setDoubleArrayPtr()

OdVariant& OdVariant::setDoubleArrayPtr ( OdDoubleArray val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setDoublePtr()

OdVariant& OdVariant::setDoublePtr ( double *  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt16()

OdVariant& OdVariant::setInt16 ( OdInt16  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt16Array()

OdVariant& OdVariant::setInt16Array ( const OdInt16Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt16ArrayPtr()

OdVariant& OdVariant::setInt16ArrayPtr ( OdInt16Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt16Ptr()

OdVariant& OdVariant::setInt16Ptr ( OdInt16 val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt32()

OdVariant& OdVariant::setInt32 ( OdInt32  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt32Array()

OdVariant& OdVariant::setInt32Array ( const OdInt32Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt32ArrayPtr()

OdVariant& OdVariant::setInt32ArrayPtr ( OdInt32Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt32Ptr()

OdVariant& OdVariant::setInt32Ptr ( OdInt32 val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt64()

OdVariant& OdVariant::setInt64 ( OdInt64  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt64Array()

OdVariant& OdVariant::setInt64Array ( const OdInt64Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt64ArrayPtr()

OdVariant& OdVariant::setInt64ArrayPtr ( OdInt64Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt64Ptr()

OdVariant& OdVariant::setInt64Ptr ( OdInt64 val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt8()

OdVariant& OdVariant::setInt8 ( OdInt8  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt8Array()

OdVariant& OdVariant::setInt8Array ( const OdInt8Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt8ArrayPtr()

OdVariant& OdVariant::setInt8ArrayPtr ( OdInt8Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setInt8Ptr()

OdVariant& OdVariant::setInt8Ptr ( OdInt8 val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setIntPtr()

OdVariant& OdVariant::setIntPtr ( OdIntPtr  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setRxObjectPtr()

OdVariant& OdVariant::setRxObjectPtr ( const OdRxObjectPtr val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setRxObjectPtrArray()

OdVariant& OdVariant::setRxObjectPtrArray ( const OdRxObjectPtrArray val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setRxObjectPtrArrayPtr()

OdVariant& OdVariant::setRxObjectPtrArrayPtr ( OdRxObjectPtrArray val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setRxObjectPtrPtr()

OdVariant& OdVariant::setRxObjectPtrPtr ( OdRxObjectPtr val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setString()

OdVariant& OdVariant::setString ( const OdString val)

Sets the value of this Variant object.

Parameters
val[in] Value.

◆ setStringArray()

OdVariant& OdVariant::setStringArray ( const OdStringArray val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setStringArrayPtr()

OdVariant& OdVariant::setStringArrayPtr ( OdStringArray val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setStringPtr()

OdVariant& OdVariant::setStringPtr ( OdString val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt16()

OdVariant& OdVariant::setUInt16 ( OdUInt16  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt16Array()

OdVariant& OdVariant::setUInt16Array ( const OdUInt16Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt16ArrayPtr()

OdVariant& OdVariant::setUInt16ArrayPtr ( OdUInt16Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt16Ptr()

OdVariant& OdVariant::setUInt16Ptr ( OdUInt16 val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt32()

OdVariant& OdVariant::setUInt32 ( OdUInt32  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt32Array()

OdVariant& OdVariant::setUInt32Array ( const OdUInt32Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt32ArrayPtr()

OdVariant& OdVariant::setUInt32ArrayPtr ( OdUInt32Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt32Ptr()

OdVariant& OdVariant::setUInt32Ptr ( OdUInt32 val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt64()

OdVariant& OdVariant::setUInt64 ( OdUInt64  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt64Array()

OdVariant& OdVariant::setUInt64Array ( const OdUInt64Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt64ArrayPtr()

OdVariant& OdVariant::setUInt64ArrayPtr ( OdUInt64Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt64Ptr()

OdVariant& OdVariant::setUInt64Ptr ( OdUInt64 val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt8()

OdVariant& OdVariant::setUInt8 ( OdUInt8  val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt8Array()

OdVariant& OdVariant::setUInt8Array ( const OdUInt8Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt8ArrayPtr()

OdVariant& OdVariant::setUInt8ArrayPtr ( OdUInt8Array val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setUInt8Ptr()

OdVariant& OdVariant::setUInt8Ptr ( OdUInt8 val)

Sets the value of this Variant object.

Parameters
val[in] Value.
Returns
Returns a reference to this Variant object.

◆ setVarType()

virtual void OdVariant::setVarType ( int  newType,
int &  type,
void data 
)
protectedvirtual

Reimplemented in OdTfVariant.

◆ type()

Type OdVariant::type ( ) const
inline

Returns the type of this Variant object, excluding ByRef and Array flags.

Definition at line 122 of file RxVariant.h.

◆ typeFactory()

static const TypeFactory* OdVariant::typeFactory ( int  type)
static

◆ varType()

int OdVariant::varType ( ) const
inline

Returns the type of this Variant object, including ByRef and Array flags.

Definition at line 118 of file RxVariant.h.

Member Data Documentation

◆ dbl

double OdVariant::dbl

Definition at line 74 of file RxVariant.h.

◆ m_type

int OdVariant::m_type
protected

Definition at line 70 of file RxVariant.h.

◆ m_uData

union { ... } OdVariant::m_uData

◆ ptr

void* OdVariant::ptr

Definition at line 75 of file RxVariant.h.

◆ uint8

OdUInt8 OdVariant::uint8[nOdVariantDataSize]

Definition at line 73 of file RxVariant.h.


The documentation for this class was generated from the following file: