cmpi
|
#include <cmpi/CmpiInstance.h>
Public Member Functions | |
CmpiInstance (const CmpiObjectPath &op) | |
CmpiBoolean | instanceIsA (const char *className) |
unsigned int | getPropertyCount () |
CmpiData | getProperty (const char *name) const |
CmpiData | getProperty (const int index, CmpiString *name=NULL) |
void | setProperty (const char *name, const CmpiData data) |
void | setPropertyFilter (const char **properties, const char **keys) |
CmpiObjectPath | getObjectPath () const |
![]() | |
CmpiBoolean | isNull () const |
CmpiString | toString () |
CmpiBoolean | isA (const char *typeName) const |
Protected Member Functions | |
CmpiInstance (const CMPIInstance *enc) | |
CMPIInstance * | getEnc () const |
![]() | |
CmpiObject () | |
CmpiObject (const void *enc) | |
CmpiString | doToString (CMPIBroker *mb) |
CmpiBoolean | doIsA (CMPIBroker *mb, const char *typeName) const |
Private Member Functions | |
CmpiInstance () | |
void * | makeInstance (CMPIBroker *mb, const CmpiObjectPath &cop) |
CmpiBoolean | doInstanceIsA (CMPIBroker *mb, const char *className) |
Friends | |
class | CmpiBroker |
class | CmpiResult |
class | CmpiInstanceMI |
class | CmpiMethodMI |
class | CmpiData |
Additional Inherited Members | |
![]() | |
void * | enc |
This class represents the instance of a CIM class. It is used manipulate instances and their parts.
|
protected |
Protected constructor used by MIDrivers to encapsulate CMPIInstance.
|
private |
Constructor - Should not be called
CmpiInstance::CmpiInstance | ( | const CmpiObjectPath & | op | ) |
Constructor - Creates an Instance object with the classname from the input parameter.
op | defining classname and namespace |
References CmpiProviderBase::getBroker().
|
private |
References CmpiObjectPath::doClassPathIsA().
|
protected |
Gets the encapsulated CMPIInstance.
Referenced by CmpiBroker::createInstance(), CmpiBroker::deliverIndication(), CmpiResult::returnData(), and CmpiBroker::setInstance().
CmpiObjectPath CmpiInstance::getObjectPath | ( | ) | const |
getObjectPath - generates an ObjectPath out of the namespace, classname and key propeties of this Instance
References CMPI_RC_OK, and _CMPIStatus::rc.
CmpiData CmpiInstance::getProperty | ( | const char * | name | ) | const |
getProperty - Gets the CmpiData object representing the value associated with the property name
name | Property name. |
References CmpiData::_data, CMPI_RC_ERR_NOT_FOUND, CMPI_RC_OK, _CMPIStatus::msg, and _CMPIStatus::rc.
CmpiData CmpiInstance::getProperty | ( | const int | index, |
CmpiString * | name = NULL |
||
) |
getProperty - Gets the CmpiData object defined by the input index parameter.
index | Index into the Property array. |
name | Optional output parameter returning the property name. |
References CmpiData::_data, CmpiString::charPtr(), CMPI_RC_ERR_NOT_FOUND, CMPI_RC_OK, _CMPIStatus::msg, and _CMPIStatus::rc.
unsigned int CmpiInstance::getPropertyCount | ( | ) |
getPropertyCount - Gets the number of Properties defined for this Instance.
References CMPI_RC_OK, and _CMPIStatus::rc.
CmpiBoolean CmpiInstance::instanceIsA | ( | const char * | className | ) |
instanceIsA - Tests whether this CIM Instance is of type <className>.
className | CIM classname to be tested for. |
References CmpiProviderBase::getBroker().
|
private |
Internal make function
References CMPI_RC_OK, _CMPIBroker::eft, _CMPIBrokerEncFT::newInstance, and _CMPIStatus::rc.
void CmpiInstance::setProperty | ( | const char * | name, |
const CmpiData | data | ||
) |
setProperty - adds/replaces a property value defined by the input parameter to the Instance
name | Property name. |
data | Type and Value to be added. |
References CmpiData::_data, _CMPIValue::chars, CMPI_chars, CMPI_RC_OK, _CMPIStatus::rc, _CMPIData::type, and _CMPIData::value.
void CmpiInstance::setPropertyFilter | ( | const char ** | properties, |
const char ** | keys | ||
) |
setPropertyFilter - specifies the list of properties that is accepted for setProperty operestions.
properties | List of properties |
keys | List of key properties (required) |
References _nullkeys, CMPI_RC_OK, and _CMPIStatus::rc.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |