#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) |
Protected Member Functions | |
| CmpiArgs (CMPIArgs *enc) | |
| CMPIArgs * | getEnc () const |
| void * | makeArgs (CMPIBroker *mb) |
Friends | |
| class | CmpiBroker |
| class | CmpiMethodMI |
| CmpiArgs::CmpiArgs | ( | CMPIArgs * | enc | ) | [protected] |
Protected constructor used by MIDrivers to encapsulate CMPIArgs.
| CmpiArgs::CmpiArgs | ( | ) |
Constructor - Empty argument container.
References CmpiObject::enc, CmpiProviderBase::getBroker(), and makeArgs().
| CMPIArgs * CmpiArgs::getEnc | ( | ) | const [protected] |
Gets the encapsulated CMPIArgs.
References CmpiObject::enc.
Referenced by getArg(), getArgCount(), and setArg().
| void * CmpiArgs::makeArgs | ( | CMPIBroker * | mb | ) | [protected] |
References CMPI_RC_OK, _CMPIBroker::eft, _CMPIBrokerEncFT::newArgs, and _CMPIStatus::rc.
Referenced by CmpiArgs().
| 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.
| 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.
| 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 class CmpiBroker [friend] |
Reimplemented from CmpiObject.
friend class CmpiMethodMI [friend] |
1.5.6