Public Attributes
CValue::ValueField Union Reference

Detailed Description

This union is used for storing the value described by the CValue::m_t data member. Instead of accessing the value stored in CValue::m_u directly, it is strongly recommended to use the extractor methods defined by CValue.

Example:
Demonstrates the CValue extractor methods
        CValue val((short)255);

        // good but not recommended
        short wrong = val.sval;

        // right way to do it
        short good = (short)val;

        CComAPIHandler uitoolkit;
        uitoolkit.CreateInstance( L"XSI.UIToolkit");

        CValue dispVal = uitoolkit.GetRef();

        // wrong way of accessing a COM object from a CValue, could return
        // an invalid pointer
        IDispatch* pDisp = dispVal.pval;

        // this is the right way to do it
        IDispatch* pDisp = (IDispatch*)(CValue::siPtrType)dispVal;

#include <xsi_value.h>

List of all members.

Public Attributes

short sval
LONG lval
float fval
double dval
bool bval
wchar_t * pwval
siPtrType pval
signed char cval
unsigned char ucval
CValueArraypaval
CLongArrayplaval
CFloatArraypfaval
unsigned short usval
ULONG ulval
MATH::CVector2fpv2f
MATH::CVector3fpv3f
MATH::CVector4fpv4f
MATH::CQuaternionfpqf
MATH::CRotationfprf
MATH::CMatrix3fpm3f
MATH::CMatrix4fpm4f
MATH::CColor4fpc4f
MATH::CShapepshp
LLONG llval
ULLONG ullval
siBlobType * pblobval
CStringArraypstrarrayval

Member Data Documentation

short sval

2 bytes signed integer number value (-32768..32767)

LONG lval

4 bytes signed integer number value (-2147483648..2147483647)

float fval

float value

double dval

double value

bool bval

bool value

wchar_t* pwval

CString value

siPtrType pval

pointer value

signed char cval

byte value

unsigned char ucval

unsigned byte value

Array value

Long Array value

Float Array value

unsigned short usval

2 bytes unsigned integer number value (0..65535)

ULONG ulval

4 bytes unsigned integer number value (0..4294967295)

CVector2f pointer

CVector3f pointer

CVector4f pointer

CQuaternionf pointer

CRotationf pointer

CMatrix3f pointer

CMatrix4f pointer

CColor4f pointer

CShape pointer

LLONG llval

8 bytes signed integer number type (-9223372036854775808..9223372036854775807)

ULLONG ullval

8 bytes unsigned integer number type (0..18446744073709551615)

siBlobType* pblobval

siBlobType value

CStringArray value


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