cmpi
|
#include <cmpi/CmpiObjectPath.h>
Public Member Functions | |
CmpiObjectPath (const char *ns, const char *cls) | |
CmpiObjectPath (const CmpiString &ns, const char *cls) | |
CmpiObjectPath (CMPIObjectPath *c) | |
CMPIObjectPath * | getEnc () const |
CmpiBoolean | classPathIsA (const char *className) const |
CmpiString | getHostname () const |
void | setHostname (const char *hn) |
void | setHostname (CmpiString hn) |
CmpiString | getNameSpace () const |
void | setNameSpace (const char *ns) |
void | setNameSpace (CmpiString ns) |
CmpiString | getClassName () const |
void | setClassName (const char *hn) |
void | setClassName (CmpiString hn) |
unsigned int | getKeyCount () const |
CmpiData | getKey (const char *name) const |
CmpiData | getKey (const int index, CmpiString *name=NULL) const |
void | setKey (const char *name, const CmpiData data) |
![]() | |
CmpiBoolean | isNull () const |
CmpiString | toString () |
CmpiBoolean | isA (const char *typeName) const |
Private Member Functions | |
void * | makeObjectPath (CMPIBroker *mb, const char *ns, const char *cls) |
void * | makeObjectPath (CMPIBroker *mb, const CmpiString &ns, const char *cls) |
CmpiBoolean | doClassPathIsA (CMPIBroker *mb, const char *className) const |
Friends | |
class | CmpiBroker |
class | CmpiResult |
class | CmpiInstance |
class | CmpiInstanceMI |
class | CmpiMethodMI |
class | CmpiAssociationMI |
class | CmpiPropertyMI |
class | CmpiIndicationMI |
class | CmpiData |
Additional Inherited Members | |
![]() | |
CmpiObject () | |
CmpiObject (const void *enc) | |
CmpiString | doToString (CMPIBroker *mb) |
CmpiBoolean | doIsA (CMPIBroker *mb, const char *typeName) const |
![]() | |
void * | enc |
The ObjectPath class represents the value of a Instance reference. It constains the namespace, classname and key properties. ObjectPath can also be used to represent a class reference. In that case key properties will be ignored.
CmpiObjectPath::CmpiObjectPath | ( | const char * | ns, |
const char * | cls ) |
Constructor - Creates an ObjectPath object with the classname from the input parameter.
ns | defining namespace or NULL |
cls | defining classname or NULL |
References CmpiObject::enc, CmpiProviderBase::getBroker(), and makeObjectPath().
CmpiObjectPath::CmpiObjectPath | ( | const CmpiString & | ns, |
const char * | cls ) |
References CmpiObject::enc, CmpiProviderBase::getBroker(), and makeObjectPath().
CmpiObjectPath::CmpiObjectPath | ( | CMPIObjectPath * | c | ) |
Constructor used by MIDrivers to encapsulate CMPIObjectPathes.
References CmpiObject::CmpiObject().
CmpiBoolean CmpiObjectPath::classPathIsA | ( | const char * | className | ) | const |
classPathIsA - Tests whether this CIM ObjectPath is a reference to a CIM class is of type <className>.
className | CIM classname to be tested for. |
References CmpiBoolean, doClassPathIsA(), and CmpiProviderBase::getBroker().
Referenced by CmpiData.
|
private |
References _CMPIBrokerEncFT::classPathIsA, CMPI_RC_OK, CmpiBoolean, _CMPIBroker::eft, getEnc(), and _CMPIStatus::rc.
Referenced by classPathIsA(), CmpiData, and CmpiInstance::doInstanceIsA().
CmpiString CmpiObjectPath::getClassName | ( | ) | const |
getClassName - returns the classname component of the ObjectPath
References CMPI_RC_OK, _CMPIObjectPath::ft, _CMPIObjectPathFT::getClassName, getEnc(), and _CMPIStatus::rc.
Referenced by CmpiData.
CMPIObjectPath * CmpiObjectPath::getEnc | ( | ) | const |
Gets the encapsulated CMPIObjectPath.
References CmpiObject::enc.
Referenced by CmpiData::CmpiData(), CmpiData, CmpiBroker::createInstance(), CmpiBroker::deleteInstance(), doClassPathIsA(), CmpiBroker::enumInstanceNames(), CmpiBroker::enumInstances(), getClassName(), getHostname(), CmpiBroker::getInstance(), getKey(), getKey(), getKeyCount(), getNameSpace(), CmpiResult::returnData(), setClassName(), setHostname(), CmpiBroker::setInstance(), setKey(), and setNameSpace().
CmpiString CmpiObjectPath::getHostname | ( | ) | const |
getHostname - returns the hostname component of the ObjectPath
References CMPI_RC_OK, _CMPIObjectPath::ft, getEnc(), _CMPIObjectPathFT::getHostname, and _CMPIStatus::rc.
Referenced by CmpiData.
CmpiData CmpiObjectPath::getKey | ( | const char * | name | ) | const |
getKey - Gets the CmpiData object representing the value associated with the key
name | key name. |
References CmpiData::_data, CMPI_RC_OK, CmpiData, _CMPIObjectPath::ft, getEnc(), _CMPIObjectPathFT::getKey, and _CMPIStatus::rc.
Referenced by CmpiData.
CmpiData CmpiObjectPath::getKey | ( | const int | index, |
CmpiString * | name = NULL ) const |
getKey - Gets the CmpiData object defined by the input index parameter.
index | Index into the key property array. |
name | Optional output parameter returning the key name. |
References CmpiData::_data, CMPI_RC_OK, CmpiData, _CMPIObjectPath::ft, getEnc(), _CMPIObjectPathFT::getKeyAt, and _CMPIStatus::rc.
unsigned int CmpiObjectPath::getKeyCount | ( | ) | const |
getKeyCount - Gets the number of key properties defined for this ObjectPath.
References CMPI_RC_OK, _CMPIObjectPath::ft, getEnc(), _CMPIObjectPathFT::getKeyCount, and _CMPIStatus::rc.
Referenced by CmpiData.
CmpiString CmpiObjectPath::getNameSpace | ( | ) | const |
getNameSpace - returns the namespace component of the ObjectPath
References CMPI_RC_OK, _CMPIObjectPath::ft, getEnc(), _CMPIObjectPathFT::getNameSpace, and _CMPIStatus::rc.
Referenced by CmpiData.
|
private |
Constructor - Should not be called
References CMPI_RC_OK, _CMPIBroker::eft, _CMPIBrokerEncFT::newObjectPath, and _CMPIStatus::rc.
Referenced by CmpiData, CmpiObjectPath(), and CmpiObjectPath().
|
private |
void CmpiObjectPath::setClassName | ( | CmpiString | hn | ) |
References CmpiString::charPtr(), and setClassName().
void CmpiObjectPath::setClassName | ( | const char * | hn | ) |
setClassName - Sets the classname component.
hn | representing the hostname. |
References CMPI_RC_OK, _CMPIObjectPath::ft, getEnc(), _CMPIStatus::rc, and _CMPIObjectPathFT::setClassName.
Referenced by CmpiData, and setClassName().
void CmpiObjectPath::setHostname | ( | CmpiString | hn | ) |
References CmpiString::charPtr(), and setHostname().
void CmpiObjectPath::setHostname | ( | const char * | hn | ) |
setHostname - Sets the hostname component.
hn | representing the hostname. |
References CMPI_RC_OK, _CMPIObjectPath::ft, getEnc(), _CMPIStatus::rc, and _CMPIObjectPathFT::setHostname.
Referenced by CmpiData, and setHostname().
void CmpiObjectPath::setKey | ( | const char * | name, |
const CmpiData | data ) |
setKey - adds/replaces a key value defined by the input parameter to the ObjectPath
name | key name. |
data | Type and Value to be added. |
References CmpiData::_data, _CMPIObjectPathFT::addKey, _CMPIValue::chars, CMPI_chars, CMPI_RC_OK, CmpiData, _CMPIObjectPath::ft, getEnc(), _CMPIStatus::rc, _CMPIData::type, and _CMPIData::value.
Referenced by CmpiData.
void CmpiObjectPath::setNameSpace | ( | CmpiString | ns | ) |
References CmpiString::charPtr(), and setNameSpace().
void CmpiObjectPath::setNameSpace | ( | const char * | ns | ) |
setNameSpace - Sets the namespace component.
ns | representing the namespace. |
References CMPI_RC_OK, _CMPIObjectPath::ft, getEnc(), _CMPIStatus::rc, and _CMPIObjectPathFT::setNameSpace.
Referenced by CmpiData, and setNameSpace().
|
friend |
References CmpiAssociationMI.
Referenced by CmpiAssociationMI.
|
friend |
References CmpiBroker.
Referenced by CmpiBroker.
|
friend |
|
friend |
References CmpiIndicationMI.
Referenced by CmpiIndicationMI.
|
friend |
References CmpiInstance.
Referenced by CmpiInstance.
|
friend |
References CmpiInstanceMI.
Referenced by CmpiInstanceMI.
|
friend |
References CmpiMethodMI.
Referenced by CmpiMethodMI.
|
friend |
References CmpiPropertyMI.
Referenced by CmpiPropertyMI.
|
friend |
References CmpiResult.
Referenced by CmpiResult.