CMPI 2.1.0 API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions

Functions

static CMPICount CMGetArrayCount (const CMPIArray *ar, CMPIStatus *rc)
 Get the number of array elements in a CMPIArray object. More...
 
static CMPIType CMGetArrayType (const CMPIArray *ar, CMPIStatus *rc)
 Get the type of the array elements in a CMPIArray object. More...
 
static CMPIData CMGetArrayElementAt (const CMPIArray *ar, CMPICount index, CMPIStatus *rc)
 Get an array element in a CMPIArray object by index. More...
 
static CMPIStatus CMSetArrayElementAt (const CMPIArray *ar, CMPICount index, const CMPIValue *value, CMPIType type)
 Set the value of an existing array element in a CMPIArray object by index. More...
 

Detailed Description

Function Documentation

static CMPICount CMGetArrayCount ( const CMPIArray ar,
CMPIStatus rc 
)
inlinestatic

Get the number of array elements in a CMPIArray object.

Parameters
arCMPIArray object.
[out]rcFunction return status (suppressed when NULL).
Returns
Number of aray elements.
Full Description
CMPIArrayFT.getSize() (function name is different, but arguments and return value are the same)
Status for OpenPegasus:
Used and tested
static CMPIType CMGetArrayType ( const CMPIArray ar,
CMPIStatus rc 
)
inlinestatic

Get the type of the array elements in a CMPIArray object.

Parameters
arCMPIArray object.
[out]rcFunction return status (suppressed when NULL).
Returns
Type of the array elements.
Full Description
CMPIArrayFT.getSimpleType() (function name is different, but arguments and return value are the same)
Status for OpenPegasus:
Used and tested
static CMPIData CMGetArrayElementAt ( const CMPIArray ar,
CMPICount  index,
CMPIStatus rc 
)
inlinestatic

Get an array element in a CMPIArray object by index.

Parameters
arCMPIArray object.
indexZero-based position of the array element in the CMPIArray.
[out]rcFunction return status (suppressed when NULL).
Returns
Array element value and type.
Full Description
CMPIArrayFT.getElementAt()
Status for OpenPegasus:
Used and tested
static CMPIStatus CMSetArrayElementAt ( const CMPIArray ar,
CMPICount  index,
const CMPIValue value,
CMPIType  type 
)
inlinestatic

Set the value of an existing array element in a CMPIArray object by index.

Parameters
arCMPIArray object.
indexZero-based position of the existing element in the CMPIArray object.
valueCMPIValue structure containing the non-NULL value to be assigned to the element, or NULL to assign NULL.
typeType of the value.
Returns
Function return status.
Full Description
CMPIArrayFT.setElementAt()
Status for OpenPegasus:
Used and tested