CmpiData Class Reference

This class wraps a CMPIData value item. More...

#include <CmpiData.h>

Collaboration diagram for CmpiData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CmpiData (CMPIData &data)
 Constructor - Empty constructor.
 CmpiData ()
 Constructor - Empty constructor.
 CmpiData (CmpiString &d)
 Constructor - String as input.
 CmpiData (const char *d)
 Constructor - char* as input.
 CmpiData (CMPISint8 d)
 Constructor - singed 8 bit as input.
 CmpiData (CMPISint16 d)
 Constructor - singed 16 bit as input.
 CmpiData (CMPISint32 d)
 Constructor - singed 32 bit as input.
 CmpiData (int d)
 Constructor - singed 32 bit as input.
 CmpiData (CMPISint64 d)
 Constructor - singed 64 bit as input.
 CmpiData (CMPIBoolean d)
 Constructor - unsinged 8 bit as input.
 CmpiData (CMPIUint16 d)
 Constructor - unsinged 16 bit as input.
 CmpiData (CMPIUint32 d)
 Constructor - unsinged 32 bit as input.
 CmpiData (unsigned int d)
 Constructor - unsinged 32 bit as input.
 CmpiData (CMPIUint64 d)
 Constructor - unsinged 64 bit as input.
 CmpiData (CMPIInstance *d)
 Constructor - CmpiInstance as input.
 CmpiData (CMPIObjectPath *d)
 Constructor - CmpiObjectPath as input.
 CmpiData (CMPIArray *d)
 Constructor - CmpiArray as input.
void operator>> (CmpiString &v) const
 Extracting String.
void operator>> (CMPISint8 &v)
 Extracting signed 8 bit.
void operator>> (CMPISint16 &v)
 Extracting signed 16 bit.
void operator>> (CMPISint32 &v)
 Extracting signed 32 bit.
void operator>> (int &v)
 Extracting signed 32 bit.
void operator>> (CMPISint64 &v)
 Extracting signed 64 bit.
void operator>> (CMPIUint8 &v)
 Extracting unsigned 8 bit.
void operator>> (CMPIUint16 &v)
 Extracting unsigned 16 bit.
void operator>> (CMPIUint32 &v)
 Extracting unsigned 32 bit.
void operator>> (unsigned int &v)
 Extracting unsigned 32 bit.
void operator>> (CMPIUint64 &v)
 Extracting unsigned 64 bit.
void operator>> (CmpiArray &v)
 Extracting Array.
void operator>> (CmpiInstance &v)
 Extracting Instance.
void operator>> (CmpiObjectPath &v)
 Extracting ObjectPath.
bool operator== (const CmpiData &d)
bool isNull ()

Protected Attributes

CMPIData data

Friends

class CmpiInstance
class CmpiObjectPath
class CmpiResult
class CmpiArgs
class CmpiContext
class CmpiPropertyMI

Detailed Description

This class wraps a CMPIData value item.

Data extraction uses the >> operator. Extraction operations can be appended to a property type retrieval statement like this:

CmpiString name;

cop.getKey("DeviceID")>>name;

Type mismatches will be signalled by exceptions.

Definition at line 44 of file CmpiData.h.


Constructor & Destructor Documentation

CmpiData::CmpiData CMPIData data  )  [inline]
 

Constructor - Empty constructor.

Definition at line 58 of file CmpiData.h.

References data.

CmpiData::CmpiData  )  [inline]
 

Constructor - Empty constructor.

Definition at line 67 of file CmpiData.h.

CmpiData::CmpiData CmpiString d  )  [inline]
 

Constructor - String as input.

Definition at line 71 of file CmpiData.h.

References CmpiString::charPtr(), _CMPIValue::chars, CMPI_chars, data, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData const char *  d  )  [inline]
 

Constructor - char* as input.

Definition at line 76 of file CmpiData.h.

References _CMPIValue::chars, CMPI_chars, data, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData CMPISint8  d  )  [inline]
 

Constructor - singed 8 bit as input.

Definition at line 81 of file CmpiData.h.

References CMPI_sint8, data, _CMPIValue::sint8, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData CMPISint16  d  )  [inline]
 

Constructor - singed 16 bit as input.

Definition at line 85 of file CmpiData.h.

References CMPI_sint16, data, _CMPIValue::sint16, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData CMPISint32  d  )  [inline]
 

Constructor - singed 32 bit as input.

Definition at line 89 of file CmpiData.h.

References CMPI_sint32, data, _CMPIValue::sint32, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData int  d  )  [inline]
 

Constructor - singed 32 bit as input.

Definition at line 93 of file CmpiData.h.

References CMPI_sint32, data, _CMPIValue::sint32, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData CMPISint64  d  )  [inline]
 

Constructor - singed 64 bit as input.

Definition at line 97 of file CmpiData.h.

References CMPI_sint64, data, _CMPIValue::sint64, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData CMPIBoolean  d  )  [inline]
 

Constructor - unsinged 8 bit as input.

Definition at line 102 of file CmpiData.h.

References _CMPIValue::boolean, CMPI_boolean, data, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData CMPIUint16  d  )  [inline]
 

Constructor - unsinged 16 bit as input.

Definition at line 106 of file CmpiData.h.

References CMPI_uint16, data, _CMPIValue::sint16, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData CMPIUint32  d  )  [inline]
 

Constructor - unsinged 32 bit as input.

Definition at line 110 of file CmpiData.h.

References CMPI_uint32, data, _CMPIValue::sint32, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData unsigned int  d  )  [inline]
 

Constructor - unsinged 32 bit as input.

Definition at line 114 of file CmpiData.h.

References CMPI_uint32, data, _CMPIValue::sint32, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData CMPIUint64  d  )  [inline]
 

Constructor - unsinged 64 bit as input.

Definition at line 118 of file CmpiData.h.

References CMPI_uint64, data, _CMPIValue::sint64, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData CMPIInstance d  )  [inline]
 

Constructor - CmpiInstance as input.

Definition at line 123 of file CmpiData.h.

References CMPI_instance, data, _CMPIValue::inst, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData CMPIObjectPath d  )  [inline]
 

Constructor - CmpiObjectPath as input.

Definition at line 128 of file CmpiData.h.

References CMPI_ref, data, _CMPIValue::ref, _CMPIData::type, and _CMPIData::value.

CmpiData::CmpiData CMPIArray d  )  [inline]
 

Constructor - CmpiArray as input.

Definition at line 133 of file CmpiData.h.

References _CMPIValue::array, CMPI_ARRAY, data, _CMPIData::type, and _CMPIData::value.


Member Function Documentation

bool CmpiData::isNull  )  [inline]
 

Definition at line 221 of file CmpiData.h.

References CMPI_nullValue, data, and _CMPIData::state.

bool CmpiData::operator== const CmpiData d  ) 
 

Definition at line 1273 of file CmpiImpl.cpp.

References _CMPIValue::chars, CMPI_chars, CMPI_RC_ERR_NOT_SUPPORTED, CMPI_sint16, CMPI_sint32, CMPI_sint64, CMPI_sint8, CMPI_string, CMPI_uint16, CMPI_uint32, CMPI_uint64, CMPI_uint8, data, _CMPIValue::sint16, _CMPIValue::sint32, _CMPIValue::sint64, _CMPIValue::sint8, _CMPIValue::string, _CMPIData::type, _CMPIValue::uint16, _CMPIValue::uint32, _CMPIValue::uint64, _CMPIValue::uint8, and _CMPIData::value.

void CmpiData::operator>> CmpiObjectPath v  ) 
 

Extracting ObjectPath.

Definition at line 709 of file CmpiImpl.cpp.

References CMPI_RC_ERR_TYPE_MISMATCH, CMPI_ref, CmpiObjectPath, data, _CMPIValue::ref, _CMPIData::type, and _CMPIData::value.

void CmpiData::operator>> CmpiInstance v  ) 
 

Extracting Instance.

Definition at line 703 of file CmpiImpl.cpp.

References CMPI_instance, CMPI_RC_ERR_TYPE_MISMATCH, CmpiInstance, data, _CMPIValue::inst, _CMPIData::type, and _CMPIData::value.

void CmpiData::operator>> CmpiArray v  ) 
 

Extracting Array.

void CmpiData::operator>> CMPIUint64 v  )  [inline]
 

Extracting unsigned 64 bit.

Definition at line 201 of file CmpiData.h.

References CMPI_RC_ERR_TYPE_MISMATCH, CMPI_uint64, data, _CMPIData::type, _CMPIValue::uint64, and _CMPIData::value.

void CmpiData::operator>> unsigned int &  v  )  [inline]
 

Extracting unsigned 32 bit.

Definition at line 195 of file CmpiData.h.

References CMPI_RC_ERR_TYPE_MISMATCH, CMPI_uint32, data, _CMPIData::type, _CMPIValue::uint32, and _CMPIData::value.

void CmpiData::operator>> CMPIUint32 v  )  [inline]
 

Extracting unsigned 32 bit.

Definition at line 189 of file CmpiData.h.

References CMPI_RC_ERR_TYPE_MISMATCH, CMPI_uint32, data, _CMPIData::type, _CMPIValue::uint32, and _CMPIData::value.

void CmpiData::operator>> CMPIUint16 v  )  [inline]
 

Extracting unsigned 16 bit.

Definition at line 183 of file CmpiData.h.

References CMPI_RC_ERR_TYPE_MISMATCH, CMPI_uint16, data, _CMPIData::type, _CMPIValue::uint16, and _CMPIData::value.

void CmpiData::operator>> CMPIUint8 v  )  [inline]
 

Extracting unsigned 8 bit.

Definition at line 177 of file CmpiData.h.

References CMPI_RC_ERR_TYPE_MISMATCH, CMPI_uint8, data, _CMPIData::type, _CMPIValue::uint8, and _CMPIData::value.

void CmpiData::operator>> CMPISint64 v  )  [inline]
 

Extracting signed 64 bit.

Definition at line 170 of file CmpiData.h.

References CMPI_RC_ERR_TYPE_MISMATCH, CMPI_sint64, data, _CMPIValue::sint64, _CMPIData::type, and _CMPIData::value.

void CmpiData::operator>> int &  v  )  [inline]
 

Extracting signed 32 bit.

Definition at line 164 of file CmpiData.h.

References CMPI_RC_ERR_TYPE_MISMATCH, CMPI_sint32, data, _CMPIValue::sint32, _CMPIData::type, and _CMPIData::value.

void CmpiData::operator>> CMPISint32 v  )  [inline]
 

Extracting signed 32 bit.

Definition at line 158 of file CmpiData.h.

References CMPI_RC_ERR_TYPE_MISMATCH, CMPI_sint32, data, _CMPIValue::sint32, _CMPIData::type, and _CMPIData::value.

void CmpiData::operator>> CMPISint16 v  )  [inline]
 

Extracting signed 16 bit.

Definition at line 152 of file CmpiData.h.

References CMPI_RC_ERR_TYPE_MISMATCH, CMPI_sint16, data, _CMPIValue::sint16, _CMPIData::type, and _CMPIData::value.

void CmpiData::operator>> CMPISint8 v  )  [inline]
 

Extracting signed 8 bit.

Definition at line 146 of file CmpiData.h.

References CMPI_RC_ERR_TYPE_MISMATCH, CMPI_sint8, data, _CMPIValue::sint8, _CMPIData::type, and _CMPIData::value.

void CmpiData::operator>> CmpiString v  )  const [inline]
 

Extracting String.

Definition at line 139 of file CmpiData.h.

References CMPI_RC_ERR_TYPE_MISMATCH, CMPI_string, data, _CMPIValue::string, _CMPIData::type, and _CMPIData::value.


Friends And Related Function Documentation

friend class CmpiArgs [friend]
 

Definition at line 48 of file CmpiData.h.

friend class CmpiContext [friend]
 

Definition at line 49 of file CmpiData.h.

friend class CmpiInstance [friend]
 

Definition at line 45 of file CmpiData.h.

Referenced by operator>>().

friend class CmpiObjectPath [friend]
 

Definition at line 46 of file CmpiData.h.

Referenced by operator>>().

friend class CmpiPropertyMI [friend]
 

Definition at line 50 of file CmpiData.h.

friend class CmpiResult [friend]
 

Definition at line 47 of file CmpiData.h.


Member Data Documentation

CMPIData CmpiData::data [protected]
 

Definition at line 53 of file CmpiData.h.

Referenced by CmpiData(), CmpiArgs::getArg(), CmpiContext::getEntry(), CmpiObjectPath::getKey(), CmpiInstance::getProperty(), isNull(), operator==(), operator>>(), CmpiArgs::setArg(), CmpiObjectPath::setKey(), and CmpiInstance::setProperty().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:12:05 2006 for openwbem by  doxygen 1.4.6