CmpiArray Class Reference

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

#include <CmpiArray.h>

Inheritance diagram for CmpiArray:

Inheritance graph
[legend]
Collaboration diagram for CmpiArray:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void operator= (int x)
CMPIArraygetEnc () const
 Gets the encapsulated CMPIArray.
void * makeArray (CMPIBroker *mb, CMPICount max, CMPIType type)
 CmpiArray (CMPICount max, CMPIType type)
 CmpiArray ()
CMPICount size ()
CmpiArrayIdx operator[] (int idx)

Friends

class CmpiArrayIdx

Detailed Description

This class wraps a CMPIData value array.

Index operations use the [] operator. Data extraction uses the >> operator. Extraction operations can be appended to an array indexing operation like this:

CmpiString state;

CmpiArray states;

ci.getProperty("States")>>states;

states[3]>>state;

Assignment statements use array indexing operations as well:

states[5]="offline";

Type mismatches will be signalled by exceptions.

Definition at line 91 of file CmpiArray.h.


Constructor & Destructor Documentation

CmpiArray::CmpiArray CMPICount  max,
CMPIType  type
[inline]
 

Definition at line 101 of file CmpiArray.h.

References CmpiObject::enc, CmpiProviderBase::getBroker(), and makeArray().

CmpiArray::CmpiArray  )  [inline]
 

Definition at line 104 of file CmpiArray.h.


Member Function Documentation

CMPIArray* CmpiArray::getEnc  )  const [inline]
 

Gets the encapsulated CMPIArray.

Definition at line 97 of file CmpiArray.h.

References CmpiObject::enc.

Referenced by CmpiArrayIdx::operator=(), CmpiArrayIdx::operator>>(), and size().

void * CmpiArray::makeArray CMPIBroker mb,
CMPICount  max,
CMPIType  type
 

Definition at line 465 of file CmpiImpl.cpp.

References CMPI_RC_OK, _CMPIBroker::eft, _CMPIBrokerEncFT::newArray, and _CMPIStatus::rc.

Referenced by CmpiArray().

void CmpiArray::operator= int  x  )  [inline]
 

Definition at line 94 of file CmpiArray.h.

CmpiArrayIdx CmpiArray::operator[] int  idx  )  [inline]
 

Definition at line 106 of file CmpiArray.h.

References CmpiArrayIdx.

CMPICount CmpiArray::size  ) 
 

Definition at line 472 of file CmpiImpl.cpp.

References CMPI_RC_OK, _CMPIArray::ft, getEnc(), _CMPIArrayFT::getSize, and _CMPIStatus::rc.


Friends And Related Function Documentation

friend class CmpiArrayIdx [friend]
 

Definition at line 92 of file CmpiArray.h.

Referenced by operator[]().


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