CMPI 2.1.0 API
|
Function table of CMPIEnumeration encapsulated data type object. More...
#include <cmpift.h>
Data Fields | |
CMPIVersion | ftVersion |
CMPI version supported by the MB for this function table. More... | |
CMPIStatus(* | release )(CMPIEnumeration *en) |
Release a CMPIEnumeration object. More... | |
CMPIEnumeration *(* | clone )(const CMPIEnumeration *en, CMPIStatus *rc) |
Create an independent copy of a CMPIEnumeration object. More... | |
CMPIData(* | getNext )(const CMPIEnumeration *en, CMPIStatus *rc) |
Get the next element in a CMPIEnumeration object. More... | |
CMPIBoolean(* | hasNext )(const CMPIEnumeration *en, CMPIStatus *rc) |
Test for any elements left in a CMPIEnumeration object. More... | |
CMPIArray *(* | toArray )(const CMPIEnumeration *en, CMPIStatus *rc) |
Convert a CMPIEnumeration object to a CMPIArray object. More... | |
Function table of CMPIEnumeration encapsulated data type object.
CMPIVersion CMPIEnumerationFT::ftVersion |
CMPI version supported by the MB for this function table.
Any earlier CMPI versions are implicitly also supported.
See CMPIVersion<NNN> for valid CMPI version numbers.
CMPIStatus(* CMPIEnumerationFT::release)(CMPIEnumeration *en) |
Release a CMPIEnumeration object.
CMPIEnumerationFT.release() releases a CMPIEnumeration object. This indicates to the MB that the object (including any objects it contains) will no longer be used by the MI. The MB may free (=reclaim) the memory associated with the object during the call to this function, or later during some garbage collection cycle (see Subclause 4.1.7 of the CMPI Standard).
en | Points to the CMPIEnumeration object that is to be released. That object shall have been created using CMPIEnumerationFT.clone(). |
CMPI_RC_OK
- Function successful. CMPI_RC_ERR_INVALID_HANDLE
- The en
handle is invalid.CMPIEnumeration*(* CMPIEnumerationFT::clone)(const CMPIEnumeration *en, CMPIStatus *rc) |
Create an independent copy of a CMPIEnumeration object.
CMPIEnumerationFT.clone() creates an independent copy of a CMPIEnumeration object.
en | Points to the CMPIEnumeration object that is to be copied. | |
[out] | rc | If not NULL, points to a CMPIStatus structure that upon return will have been updated with the function return status. |
If successful, a pointer to the copied CMPIEnumeration object will be returned.
The returned CMPIEnumeration object shall be explicitly released by the MI using CMPIEnumerationFT.release().
If not successful, NULL will be returned.
CMPI_RC_OK
- Function successful. CMPI_RC_ERR_INVALID_HANDLE
- The en
handle is invalid.CMPIData(* CMPIEnumerationFT::getNext)(const CMPIEnumeration *en, CMPIStatus *rc) |
Get the next element in a CMPIEnumeration object.
CMPIEnumerationFT.getNext() gets the next element in a CMPIEnumeration object.
en | Points to the CMPIEnumeration object for this function. | |
[out] | rc | If not NULL, points to a CMPIStatus structure that upon return will have been updated with the function return status. |
If successful, a CMPIData structure containing the next element will be returned.
If not successful, CMPIData.state will be undefined.
CMPI_RC_OK
- Function successful. CMPI_RC_ERR_INVALID_HANDLE
- The en
handle is invalid. CMPI_RC_NO_MORE_ELEMENTS
- No more elements in en
.CMPI_RC_NO_MORE_ELEMENTS
(which had been used by this function before). CMPIBoolean(* CMPIEnumerationFT::hasNext)(const CMPIEnumeration *en, CMPIStatus *rc) |
Test for any elements left in a CMPIEnumeration object.
CMPIEnumerationFT.hasNext() tests for any elements left in a CMPIEnumeration object.
en | Points to the CMPIEnumeration object for this function. | |
[out] | rc | If not NULL, points to a CMPIStatus structure that upon return will have been updated with the function return status. |
CMPI_RC_OK
- Function successful. CMPI_RC_ERR_INVALID_HANDLE
- The en
handle is invalid.CMPIArray*(* CMPIEnumerationFT::toArray)(const CMPIEnumeration *en, CMPIStatus *rc) |
Convert a CMPIEnumeration object to a CMPIArray object.
CMPIEnumerationFT.toArray() converts a CMPIEnumeration object into a CMPIArray object.
en | Points to the CMPIEnumeration object for this function. | |
[out] | rc | If not NULL, points to a CMPIStatus structure that upon return will have been updated with the function return status. |
If successful, a pointer to a CMPIArray object containing the elements from the CMPIEnumeration object will be returned.
The returned CMPIArray object shall not be explicitly released by the MI, because it may be an internal object of the CMPIEnumeration object which will be released along with that object, or a new object created by the MB which will be released automatically by the MB (see Subclause 4.1.7 of the CMPI Standard).
If not successful, NULL will be returned.
CMPI_RC_OK
- Function successful. CMPI_RC_ERR_INVALID_HANDLE
- The en
handle is invalid.