#include <CmpiInstance.h>
Inheritance diagram for CmpiInstance:


Public Member Functions | |
| CmpiInstance (const CMPIInstance *enc) | |
| Protected constructor used by MIDrivers to encapsulate CMPIInstance. | |
| CMPIInstance * | getEnc () const |
| Gets the encapsulated CMPIInstance. | |
| CmpiInstance () | |
| Constructor - Should not be called. | |
| void * | makeInstance (CMPIBroker *mb, const CmpiObjectPath &cop) |
| Internal make function. | |
| CMPIBoolean | doInstanceIsA (CMPIBroker *mb, const char *className) |
| CmpiInstance (const CmpiObjectPath &op) | |
| Constructor - Creates an Instance object with the classname from the input parameter. | |
| CMPIBoolean | instanceIsA (const char *className) |
| instanceIsA - Tests whether this CIM Instance is of type <className>. | |
| unsigned int | getPropertyCount () |
| getPropertyCount - Gets the number of Properties defined for this Instance. | |
| CmpiData | getProperty (const char *name) |
| getProperty - Gets the CmpiData object representing the value associated with the property name | |
| CmpiData | getProperty (const int index, CmpiString *name=NULL) |
| getProperty - Gets the CmpiData object defined by the input index parameter. | |
| void | setProperty (const char *name, const CmpiData data) |
| setProperty - adds/replaces a property value defined by the input parameter to the Instance | |
| CmpiObjectPath | getObjectPath () |
| getObjectPath - generates an ObjectPath out of the namespace, classname and key propeties of this Instance | |
Friends | |
| class | CmpiBroker |
| class | CmpiResult |
| class | CmpiInstanceMI |
| class | CmpiMethodMI |
| class | CmpiData |
It is used manipulate instances and their parts.
Definition at line 42 of file CmpiInstance.h.
|
|
Protected constructor used by MIDrivers to encapsulate CMPIInstance.
Definition at line 53 of file CmpiInstance.h. References CmpiObject::enc. |
|
|
Constructor - Should not be called.
Definition at line 64 of file CmpiInstance.h. |
|
|
Constructor - Creates an Instance object with the classname from the input parameter.
Definition at line 77 of file CmpiInstance.h. References CmpiObject::enc, CmpiProviderBase::getBroker(), and makeInstance(). |
|
||||||||||||
|
Definition at line 730 of file CmpiImpl.cpp. References cop, and getObjectPath(). Referenced by instanceIsA(). |
|
|
Gets the encapsulated CMPIInstance.
Definition at line 58 of file CmpiInstance.h. References CmpiObject::enc. Referenced by getObjectPath(), getProperty(), getPropertyCount(), makeInstance(), CmpiResult::returnData(), and setProperty(). |
|
|
getObjectPath - generates an ObjectPath out of the namespace, classname and key propeties of this Instance
Definition at line 767 of file CmpiImpl.cpp. References CMPI_RC_OK, cop, getEnc(), and _CMPIStatus::rc. Referenced by doInstanceIsA(). |
|
||||||||||||
|
getProperty - Gets the CmpiData object defined by the input index parameter.
Definition at line 743 of file CmpiImpl.cpp. References CMPI_RC_OK, CmpiData::data, _CMPIInstance::ft, getEnc(), _CMPIInstanceFT::getPropertyAt, name, _CMPIStatus::rc, and s. |
|
|
getProperty - Gets the CmpiData object representing the value associated with the property name
Definition at line 735 of file CmpiImpl.cpp. References CMPI_RC_OK, CmpiData::data, _CMPIInstance::ft, getEnc(), _CMPIInstanceFT::getProperty, and _CMPIStatus::rc. |
|
|
getPropertyCount - Gets the number of Properties defined for this Instance.
Definition at line 753 of file CmpiImpl.cpp. References CMPI_RC_OK, _CMPIInstance::ft, getEnc(), _CMPIInstanceFT::getPropertyCount, and _CMPIStatus::rc. |
|
|
instanceIsA - Tests whether this CIM Instance is of type <className>.
Definition at line 85 of file CmpiInstance.h. References doInstanceIsA(), and CmpiProviderBase::getBroker(). |
|
||||||||||||
|
Internal make function.
Definition at line 723 of file CmpiImpl.cpp. References CMPI_RC_OK, cop, _CMPIBroker::eft, getEnc(), inst, _CMPIBrokerEncFT::newInstance, and _CMPIStatus::rc. Referenced by CmpiInstance(). |
|
||||||||||||
|
setProperty - adds/replaces a property value defined by the input parameter to the Instance
Definition at line 760 of file CmpiImpl.cpp. References _CMPIValue::chars, CMPI_chars, CMPI_RC_OK, CmpiData::data, _CMPIInstance::ft, getEnc(), _CMPIStatus::rc, _CMPIInstanceFT::setProperty, _CMPIData::type, and _CMPIData::value. |
|
|
Reimplemented from CmpiObject. Definition at line 43 of file CmpiInstance.h. |
|
|
Definition at line 47 of file CmpiInstance.h. |
|
|
Definition at line 45 of file CmpiInstance.h. |
|
|
Definition at line 46 of file CmpiInstance.h. |
|
|
Definition at line 44 of file CmpiInstance.h. |
1.4.6