cmpi
|
#include <cmpi/CmpiArgs.h>
Public Member Functions | |
CmpiArgs () | |
unsigned int | getArgCount () const |
CmpiData | getArg (const char *name) const |
CmpiData | getArg (const int index, CmpiString *name=NULL) const |
void | setArg (const char *name, const CmpiData &data) |
![]() | |
CmpiBoolean | isNull () const |
CmpiString | toString () |
CmpiBoolean | isA (const char *typeName) const |
Protected Member Functions | |
CmpiArgs (CMPIArgs *enc) | |
CMPIArgs * | getEnc () const |
void * | makeArgs (CMPIBroker *mb) |
![]() | |
CmpiObject () | |
CmpiObject (const void *enc) | |
CmpiString | doToString (CMPIBroker *mb) |
CmpiBoolean | doIsA (CMPIBroker *mb, const char *typeName) const |
Friends | |
class | CmpiBroker |
class | CmpiMethodMI |
Additional Inherited Members | |
![]() | |
void * | enc |
This class wraps a CIMOM specific input and output arguments passed to methodInvocation functions.
|
protected |
Protected constructor used by MIDrivers to encapsulate CMPIArgs.
References CmpiObject::enc.
CmpiArgs::CmpiArgs | ( | ) |
Constructor - Empty argument container.
References CmpiObject::enc, CmpiProviderBase::getBroker(), and makeArgs().
CmpiData CmpiArgs::getArg | ( | const char * | name | ) | const |
getArg - Gets the CmpiData object representing the value associated with the argument name
name | argument name. |
References CmpiData::_data, CMPI_RC_ERR_NOT_FOUND, CMPI_RC_OK, _CMPIArgs::ft, _CMPIArgsFT::getArg, getEnc(), _CMPIStatus::msg, and _CMPIStatus::rc.
CmpiData CmpiArgs::getArg | ( | const int | index, |
CmpiString * | name = NULL |
||
) | const |
getArgument - Gets the CmpiData object defined by the input index parameter.
index | Index into the argument array. |
name | Optional output parameter returning the argument name. |
References CmpiData::_data, CmpiString::charPtr(), CMPI_RC_ERR_NOT_FOUND, CMPI_RC_OK, _CMPIArgs::ft, _CMPIArgsFT::getArgAt, getEnc(), _CMPIStatus::msg, and _CMPIStatus::rc.
unsigned int CmpiArgs::getArgCount | ( | ) | const |
getArgCount - Gets the number of arguments defined for this argument container.
References CMPI_RC_OK, _CMPIArgs::ft, _CMPIArgsFT::getArgCount, getEnc(), and _CMPIStatus::rc.
|
protected |
Gets the encapsulated CMPIArgs.
References CmpiObject::enc.
Referenced by getArg(), getArgCount(), and setArg().
|
protected |
References CMPI_RC_OK, _CMPIBroker::eft, _CMPIBrokerEncFT::newArgs, and _CMPIStatus::rc.
Referenced by CmpiArgs().
void CmpiArgs::setArg | ( | const char * | name, |
const CmpiData & | data | ||
) |
setArg - adds/replaces an argument value defined by the input parameter to the container.
name | Property name. |
data | Type and Value to be added. |
References CmpiData::_data, _CMPIArgsFT::addArg, _CMPIValue::chars, CMPI_chars, CMPI_RC_OK, _CMPIArgs::ft, getEnc(), _CMPIStatus::rc, _CMPIData::type, and _CMPIData::value.
|
friend |
|
friend |