cmpi
CmpiEnumeration Class Reference

#include <cmpi/CmpiEnumeration.h>

Inheritance diagram for CmpiEnumeration:
CmpiObject

Public Member Functions

CmpiData getNext ()
CmpiBoolean hasNext ()
CmpiData toArray ()
Public Member Functions inherited from CmpiObject
CmpiBoolean isNull () const
CmpiString toString ()
CmpiBoolean isA (const char *typeName) const

Protected Member Functions

 CmpiEnumeration (CMPIEnumeration *enc)
CMPIEnumerationgetEnc () const
Protected Member Functions inherited from CmpiObject
 CmpiObject ()
 CmpiObject (const void *enc)
CmpiString doToString (CMPIBroker *mb)
CmpiBoolean doIsA (CMPIBroker *mb, const char *typeName) const

Private Member Functions

 CmpiEnumeration ()

Friends

class CmpiBroker

Additional Inherited Members

Protected Attributes inherited from CmpiObject
void * enc

Detailed Description

This class acts as a container for holding results from enunmerating CmpiBroker services.

Constructor & Destructor Documentation

◆ CmpiEnumeration() [1/2]

CmpiEnumeration::CmpiEnumeration ( CMPIEnumeration * enc)
protected

Protected constructor used by MIDrivers to encapsulate CMPIEnumeration.

References CmpiObject::enc.

Referenced by CmpiBroker.

◆ CmpiEnumeration() [2/2]

CmpiEnumeration::CmpiEnumeration ( )
private

Constructor - Should not be called

Member Function Documentation

◆ getEnc()

CMPIEnumeration * CmpiEnumeration::getEnc ( ) const
protected

getEnc - Gets the encapsulated CMPIEnumeration.

References CmpiObject::enc.

Referenced by CmpiBroker, getNext(), hasNext(), and toArray().

◆ getNext()

CmpiData CmpiEnumeration::getNext ( )

getNext - Gets next entry.

References CMPI_RC_OK, _CMPIEnumeration::ft, getEnc(), _CMPIEnumerationFT::getNext, and _CMPIStatus::rc.

Referenced by CmpiBroker.

◆ hasNext()

CmpiBoolean CmpiEnumeration::hasNext ( )

getNext - Check for at least one remaining entry.

References CMPI_RC_OK, CmpiBoolean, _CMPIEnumeration::ft, getEnc(), _CMPIEnumerationFT::hasNext, and _CMPIStatus::rc.

Referenced by CmpiBroker.

◆ toArray()

CmpiData CmpiEnumeration::toArray ( )

toArray - Convert an Enumeration to an Array

References CMPI_RC_OK, _CMPIEnumeration::ft, getEnc(), _CMPIStatus::rc, and _CMPIEnumerationFT::toArray.

Referenced by CmpiBroker.

◆ CmpiBroker


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