cmpi
CmpiData Class Reference

#include <cmpi/CmpiData.h>

Inheritance diagram for CmpiData:
CmpiBooleanData CmpiCharData

Public Member Functions

 CmpiData ()
 
 CmpiData (CMPISint8 d)
 
 CmpiData (CMPISint16 d)
 
 CmpiData (CMPISint32 d)
 
 CmpiData (CMPISint64 d)
 
 CmpiData (CMPIUint8 d)
 
 CmpiData (CMPIUint16 d)
 
 CmpiData (CMPIUint32 d)
 
 CmpiData (CMPIUint64 d)
 
 CmpiData (CMPIReal32 d)
 
 CmpiData (CMPIReal64 d)
 
 CmpiData (const CmpiString &d)
 
 CmpiData (const char *d)
 
 CmpiData (const CmpiObjectPath &d)
 
 CmpiData (const CmpiDateTime &d)
 
 CmpiData (const CmpiArray &d)
 
 operator CmpiString () const
 
 operator const char * () const
 
 operator CmpiDateTime () const
 
 operator CMPISint8 () const
 
 operator CMPISint16 () const
 
 operator CMPISint32 () const
 
 operator CMPISint64 () const
 
 operator unsigned char () const
 
 operator unsigned short () const
 
 operator CMPIUint32 () const
 
 operator CMPIUint64 () const
 
 operator CMPIReal32 () const
 
 operator CMPIReal64 () const
 
 operator CmpiArray () const
 
 operator CmpiInstance () const
 
 operator CmpiObjectPath () const
 
int isNullValue () const
 
int isNotFound () const
 
CMPIType getType () const
 

Protected Member Functions

 CmpiData (CMPIData &data)
 

Protected Attributes

CMPIData _data
 

Friends

class CmpiInstance
 
class CmpiObjectPath
 
class CmpiResult
 
class CmpiArgs
 
class CmpiArrayIdx
 
class CmpiContext
 
class CmpiPropertyMI
 
class CmpiEnumeration
 

Detailed Description

This class wraps a CMPIData value item. Data extraction uses type conversion operators. Extraction operations can be appended to a property type retrieval statement like this:

CmpiString name = cop.getKey("DeviceID");

Type mismatches will be signalled by exceptions.

Constructor & Destructor Documentation

◆ CmpiData() [1/17]

CmpiData::CmpiData ( CMPIData & data)
protected

Constructor - Empty constructor.

References _data.

◆ CmpiData() [2/17]

CmpiData::CmpiData ( )

Constructor - Empty constructor.

References _data, CMPI_null, and CMPI_nullValue.

◆ CmpiData() [3/17]

CmpiData::CmpiData ( CMPISint8 d)

Constructor - singed 8 bit as input.

References _data, CMPI_goodValue, and CMPI_sint8.

◆ CmpiData() [4/17]

CmpiData::CmpiData ( CMPISint16 d)

Constructor - singed 16 bit as input.

References _data, CMPI_goodValue, and CMPI_sint16.

◆ CmpiData() [5/17]

CmpiData::CmpiData ( CMPISint32 d)

Constructor - singed 32 bit as input.

References _data, CMPI_goodValue, and CMPI_sint32.

◆ CmpiData() [6/17]

CmpiData::CmpiData ( CMPISint64 d)

Constructor - singed 64 bit as input.

References _data, CMPI_goodValue, and CMPI_sint64.

◆ CmpiData() [7/17]

CmpiData::CmpiData ( CMPIUint8 d)

Constructor - unsinged 8 bit as input.

References _data, CMPI_goodValue, and CMPI_uint8.

◆ CmpiData() [8/17]

CmpiData::CmpiData ( CMPIUint16 d)

Constructor - unsinged 16 bit as input.

References _data, CMPI_goodValue, and CMPI_uint16.

◆ CmpiData() [9/17]

CmpiData::CmpiData ( CMPIUint32 d)

Constructor - unsinged 32 bit as input.

References _data, CMPI_goodValue, and CMPI_uint32.

◆ CmpiData() [10/17]

CmpiData::CmpiData ( CMPIUint64 d)

Constructor - unsinged 64 bit as input.

References _data, CMPI_goodValue, and CMPI_uint64.

◆ CmpiData() [11/17]

CmpiData::CmpiData ( CMPIReal32 d)

Constructor - 32 bit float as input.

References _data, CMPI_goodValue, and CMPI_real32.

◆ CmpiData() [12/17]

CmpiData::CmpiData ( CMPIReal64 d)

Constructor - 64 bit float as input.

References _data, CMPI_goodValue, and CMPI_real64.

◆ CmpiData() [13/17]

CmpiData::CmpiData ( const CmpiString & d)

Constructor - String as input.

References _data, CMPI_goodValue, CMPI_string, and CmpiString::getEnc().

◆ CmpiData() [14/17]

CmpiData::CmpiData ( const char * d)

Constructor - char* as input.

References _data, CMPI_chars, and CMPI_goodValue.

◆ CmpiData() [15/17]

CmpiData::CmpiData ( const CmpiObjectPath & d)

Constructor - ObjectPath as input.

References _data, CMPI_goodValue, CMPI_nullValue, CMPI_ref, CmpiObjectPath, and CmpiObjectPath::getEnc().

◆ CmpiData() [16/17]

CmpiData::CmpiData ( const CmpiDateTime & d)

Constructor - DateTime as input.

References _data, CMPI_dateTime, CMPI_goodValue, and CmpiDateTime::getEnc().

◆ CmpiData() [17/17]

CmpiData::CmpiData ( const CmpiArray & d)

Constructor - Array as input.

References _data, CMPI_ARRAY, CMPI_goodValue, _CMPIArray::ft, and CmpiArray::getEnc().

Member Function Documentation

◆ getType()

CMPIType CmpiData::getType ( ) const

get internal data type

References _data.

◆ isNotFound()

int CmpiData::isNotFound ( ) const

test for not found value

References _data, and CMPI_notFound.

◆ isNullValue()

int CmpiData::isNullValue ( ) const

test for null value

References _data, and CMPI_nullValue.

◆ operator CmpiArray()

CmpiData::operator CmpiArray ( ) const

Extracting Array.

References _data, CMPI_ARRAY, and CMPI_RC_ERR_TYPE_MISMATCH.

◆ operator CmpiDateTime()

CmpiData::operator CmpiDateTime ( ) const

Extracting CmpiDataTime.

References _data, CMPI_dateTime, and CMPI_RC_ERR_TYPE_MISMATCH.

◆ operator CmpiInstance()

CmpiData::operator CmpiInstance ( ) const

Extracting Instance.

References _data, CMPI_instance, CMPI_RC_ERR_TYPE_MISMATCH, and CmpiInstance.

◆ operator CmpiObjectPath()

CmpiData::operator CmpiObjectPath ( ) const

Extracting ObjectPath.

References _data, CMPI_RC_ERR_TYPE_MISMATCH, CMPI_ref, and CmpiObjectPath.

◆ operator CMPIReal32()

CmpiData::operator CMPIReal32 ( ) const

Extracting float 32 bit.

References _data, CMPI_RC_ERR_TYPE_MISMATCH, and CMPI_real32.

◆ operator CMPIReal64()

CmpiData::operator CMPIReal64 ( ) const

Extracting float 64 bit.

References _data, CMPI_RC_ERR_TYPE_MISMATCH, and CMPI_real64.

◆ operator CMPISint16()

CmpiData::operator CMPISint16 ( ) const

Extracting signed 16 bit.

References _data, CMPI_RC_ERR_TYPE_MISMATCH, and CMPI_sint16.

◆ operator CMPISint32()

CmpiData::operator CMPISint32 ( ) const

Extracting signed 32 bit.

References _data, CMPI_RC_ERR_TYPE_MISMATCH, and CMPI_sint32.

◆ operator CMPISint64()

CmpiData::operator CMPISint64 ( ) const

Extracting signed 64 bit.

References _data, CMPI_RC_ERR_TYPE_MISMATCH, and CMPI_sint64.

◆ operator CMPISint8()

CmpiData::operator CMPISint8 ( ) const

Extracting signed 8 bit.

References _data, CMPI_RC_ERR_TYPE_MISMATCH, and CMPI_sint8.

◆ operator CmpiString()

CmpiData::operator CmpiString ( ) const

Extracting String.

References _data, CMPI_RC_ERR_TYPE_MISMATCH, and CMPI_string.

◆ operator CMPIUint32()

CmpiData::operator CMPIUint32 ( ) const

Extracting unsigned 32 bit.

References _data, CMPI_RC_ERR_TYPE_MISMATCH, and CMPI_uint32.

◆ operator CMPIUint64()

CmpiData::operator CMPIUint64 ( ) const

Extracting unsigned 64 bit.

References _data, CMPI_RC_ERR_TYPE_MISMATCH, and CMPI_uint64.

◆ operator const char *()

CmpiData::operator const char * ( ) const

Extracting const char *.

References _data, CmpiString::charPtr(), CMPI_RC_ERR_TYPE_MISMATCH, and CMPI_string.

◆ operator unsigned char()

CmpiData::operator unsigned char ( ) const

Extracting unsigned 8 bit or boolean.

References _data, CMPI_boolean, CMPI_RC_ERR_TYPE_MISMATCH, and CMPI_uint8.

◆ operator unsigned short()

CmpiData::operator unsigned short ( ) const

Extracting unsigned 16 bit or char16.

References _data, CMPI_char16, CMPI_RC_ERR_TYPE_MISMATCH, and CMPI_uint16.

Friends And Related Symbol Documentation

◆ CmpiArgs

friend class CmpiArgs
friend

References CmpiArgs.

Referenced by CmpiArgs.

◆ CmpiArrayIdx

friend class CmpiArrayIdx
friend

References CmpiArrayIdx.

Referenced by CmpiArrayIdx.

◆ CmpiContext

friend class CmpiContext
friend

References CmpiContext.

Referenced by CmpiContext.

◆ CmpiEnumeration

friend class CmpiEnumeration
friend

References CmpiEnumeration.

Referenced by CmpiEnumeration.

◆ CmpiInstance

friend class CmpiInstance
friend

References CmpiInstance.

Referenced by CmpiInstance, and operator CmpiInstance().

◆ CmpiObjectPath

friend class CmpiObjectPath
friend

◆ CmpiPropertyMI

friend class CmpiPropertyMI
friend

References CmpiPropertyMI.

Referenced by CmpiPropertyMI.

◆ CmpiResult

friend class CmpiResult
friend

References CmpiResult.

Referenced by CmpiResult.

Member Data Documentation

◆ _data


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