OW_NAMESPACE::CIMObjectPath Class Reference

The CIMOMObjectPath class represents the location of CIM classes and instances. More...

#include <OW_CIMObjectPath.hpp>

Inheritance diagram for OW_NAMESPACE::CIMObjectPath:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::CIMObjectPath:

Collaboration graph
[legend]
List of all members.

Public Types

typedef COWIntrusiveReference<
OPData > CIMObjectPath::* 
safe_bool

Public Member Functions

 CIMObjectPath ()
 Create a new CIMObjectPath object.
 CIMObjectPath (CIMNULL_t)
 Create a NULL CIMObjectPath object.
 CIMObjectPath (const CIMName &className)
 Create an CIMObjectPath to access the specified object.
 CIMObjectPath (const char *className)
 Create an CIMObjectPath to access the specified object.
 CIMObjectPath (const CIMName &className, const String &nspace)
 Create an CIMObjectPath to access the specified object (a qualifier or a class) in a particular namespace.
 CIMObjectPath (const CIMName &className, const CIMPropertyArray &keys)
 Create an CIMObjectPath for an instance.
 CIMObjectPath (const String &ns, const CIMInstance &inst)
 Create an CIMObjectPath for an instance and namespace.
 CIMObjectPath (const CIMObjectPath &arg)
 Create a new CIMObject path from another.
 ~CIMObjectPath ()
 Destroy this CIMObjectPath object.
virtual void setNull ()
 Set this to a null object.
CIMObjectPathoperator= (const CIMObjectPath &arg)
 Assignment operator.
CIMObjectPathaddKey (const CIMName &keyname, const CIMValue &value) OW_DEPRECATED
 This function is too error prone.
CIMObjectPathaddKey (const CIMProperty &key) OW_DEPRECATED
 This function is too error prone.
CIMPropertyArray getKeys () const
 Get the keys for this object path.
CIMProperty getKey (const CIMName &keyName) const
 Get a key from this ObjectPath.
CIMProperty getKeyT (const CIMName &keyName) const
 Get a key from this ObjectPath.
CIMValue getKeyValue (const CIMName &name) const
 Gets a key's value.
bool keyHasValue (const CIMName &name) const
 Test whether a key exists and has a non-NULL value.
CIMObjectPathsetKeys (const CIMPropertyArray &newKeys)
 Set the keys of this object path.
CIMObjectPathsetKeys (const CIMInstance &instance)
 Set the keys of this object path from the key properties of an instance.
CIMObjectPathsetKeyValue (const CIMName &name, const CIMValue &value)
 Set a key value.
String getNameSpace () const
CIMUrl getNameSpaceUrl () const
String getHost () const
String getObjectName () const OW_DEPRECATED
 This function is deprecated in favor of getClassName().
String getClassName () const
CIMObjectPathsetHost (const String &host)
 Set the host name on the name space for this object path.
CIMObjectPathsetNameSpace (const String &ns)
 Set the namespace for this object path.
CIMObjectPathsetObjectName (const CIMName &className) OW_DEPRECATED
 Assign a class name to this object path.
CIMObjectPathsetClassName (const CIMName &className)
 Assign a class name to this object path.
bool equals (const CIMObjectPath &op) const
 Compare this object path with another.
 operator safe_bool () const
bool operator! () const
bool operator== (const CIMObjectPath &op) const
 Equality operator.
bool operator!= (const CIMObjectPath &op) const
 Not Equal operator.
CIMNameSpace getFullNameSpace () const
bool isClassPath () const
bool isInstancePath () const
virtual String toString () const
virtual String modelPath () const
virtual String toMOF () const
virtual void readObject (std::istream &istrm)
 Read this object from an input stream.
virtual void writeObject (std::ostream &ostrm) const
 Write this object to an output stream.
CIMObjectPathsyncWithClass (const CIMClass &theClass)
 Synchronize this object path with the given class.

Static Public Member Functions

static String escape (const String &inString)
 Escapes quotes and '/'.
static String unEscape (const String &inString)
 Unescapes quotes and '/'.
static CIMObjectPath parse (const String &instanceName)
 Convert a string representation of an object path to an CIMObjectPath.

Private Attributes

COWIntrusiveReference< OPDatam_pdata

Friends

bool operator< (const CIMObjectPath::OPData &x, const CIMObjectPath::OPData &y)
OW_COMMON_API bool operator< (const CIMObjectPath &lhs, const CIMObjectPath &rhs)

Classes

struct  OPData

Detailed Description

The CIMOMObjectPath class represents the location of CIM classes and instances.

CIMObjectPath is a ref counted, copy on write object. It is possible to have a NULL CIMObjectPath.

Definition at line 53 of file OW_CIMObjectPath.hpp.


Member Typedef Documentation

typedef COWIntrusiveReference<OPData> CIMObjectPath::* OW_NAMESPACE::CIMObjectPath::safe_bool
 

Definition at line 259 of file OW_CIMObjectPath.hpp.


Constructor & Destructor Documentation

CIMObjectPath::CIMObjectPath  ) 
 

Create a new CIMObjectPath object.

Definition at line 79 of file OW_CIMObjectPath.cpp.

CIMObjectPath::CIMObjectPath CIMNULL_t   )  [explicit]
 

Create a NULL CIMObjectPath object.

Definition at line 84 of file OW_CIMObjectPath.cpp.

CIMObjectPath::CIMObjectPath const CIMName className  )  [explicit]
 

Create an CIMObjectPath to access the specified object.

Parameters:
className The name of the CIM class this object path is for.

Definition at line 95 of file OW_CIMObjectPath.cpp.

References m_pdata.

CIMObjectPath::CIMObjectPath const char *  className  )  [explicit]
 

Create an CIMObjectPath to access the specified object.

Parameters:
className The name of the CIM class this object path is for as a NULL terminated string.

Definition at line 89 of file OW_CIMObjectPath.cpp.

References m_pdata.

CIMObjectPath::CIMObjectPath const CIMName className,
const String nspace
 

Create an CIMObjectPath to access the specified object (a qualifier or a class) in a particular namespace.

Parameters:
className The name of the CIM class this object refers to.
nspace The string representation of the name space (e.g. "root/cimv2")

Definition at line 101 of file OW_CIMObjectPath.cpp.

References m_pdata.

CIMObjectPath::CIMObjectPath const CIMName className,
const CIMPropertyArray keys
 

Create an CIMObjectPath for an instance.

Parameters:
className The name of the class for the instance
keys An CIMPropertyArray that contains the keys for the instance.

Definition at line 109 of file OW_CIMObjectPath.cpp.

References className, m_pdata, and setKeys().

CIMObjectPath::CIMObjectPath const String ns,
const CIMInstance inst
 

Create an CIMObjectPath for an instance and namespace.

Parameters:
ns The namespace
inst An instance.

Definition at line 119 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::CIMInstance::getClassName(), OW_NAMESPACE::CIMInstance::getKeyValuePairs(), inst, m_pdata, ns, and setKeys().

CIMObjectPath::CIMObjectPath const CIMObjectPath arg  ) 
 

Create a new CIMObject path from another.

Parameters:
arg The CIMObjectPath this object will be a copy of.

Definition at line 128 of file OW_CIMObjectPath.cpp.

CIMObjectPath::~CIMObjectPath  ) 
 

Destroy this CIMObjectPath object.

Definition at line 133 of file OW_CIMObjectPath.cpp.


Member Function Documentation

CIMObjectPath & CIMObjectPath::addKey const CIMProperty key  ) 
 

This function is too error prone.

Use setKeyValue() instead. It's just still here for backward compatibility. It's deprecated and will be removed in the future.

Definition at line 163 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::CIMProperty::getValue(), and OW_ASSERT.

CIMObjectPath & CIMObjectPath::addKey const CIMName keyname,
const CIMValue value
 

This function is too error prone.

Use setKeyValue() instead. It's just still here for backward compatibility. It's deprecated and will be removed in the future.

Definition at line 151 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::CIMValue::getCIMDataType(), and OW_NAMESPACE::CIMProperty::setDataType().

bool CIMObjectPath::equals const CIMObjectPath op  )  const
 

Compare this object path with another.

Parameters:
op The object path to compare to this one.
Returns:
true if the object paths are equal. Otherwise false.

Definition at line 321 of file OW_CIMObjectPath.cpp.

References cop, and m_pdata.

Referenced by OW_NAMESPACE::IndicationServerImplThread::deleteSubscription(), OW_NAMESPACE::IndicationServerImplThread::modifySubscription(), and OW_NAMESPACE::operator==().

String CIMObjectPath::escape const String inString  )  [static]
 

Escapes quotes and '/'.

Parameters:
inString The string to escape
Returns:
The escaped string

Definition at line 663 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::String::c_str(), and OW_NAMESPACE::String::length().

Referenced by OW_NAMESPACE::raToString(), and OW_NAMESPACE::CIMValue::CIMValueImpl::toString().

String CIMObjectPath::getClassName  )  const
 

Returns:
The class name for this object path

Definition at line 288 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::String::toString().

Referenced by OW_NAMESPACE::CIMServer::_commonAssociators(), OW_NAMESPACE::CIMServer::_commonReferences(), OW_NAMESPACE::CIMRepository2::_staticAssociatorsClass(), OW_NAMESPACE::CIMRepository::_staticAssociatorsClass(), OW_NAMESPACE::CIMRepository2::_staticReferencesClass(), OW_NAMESPACE::CIMRepository::_staticReferencesClass(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::associators(), OW_NAMESPACE::CIMInstanceNametoXML(), OW_NAMESPACE::InstanceRepository::classHasInstances(), OW_NAMESPACE::ProviderAgentCIMOMHandle::deleteInstance(), OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv::doReferences(), OW_NAMESPACE::ProviderAgentCIMOMHandle::getInstance(), OW_NAMESPACE::NameSpaceProvider::getInstance(), OW_NAMESPACE::CIMRepository2::getInstance(), OW_NAMESPACE::CIMRepository::getInstance(), OW_NAMESPACE::ProviderAgentCIMOMHandle::invokeMethod(), OW_NAMESPACE::InstanceRepository2::makeInstanceKey(), OW_NAMESPACE::InstanceRepository::makeInstanceKey(), OW_NAMESPACE::makeInstanceKey(), OW_NAMESPACE::AssocDbEntry::makeKey(), OW_NAMESPACE::modelPath(), and OW_NAMESPACE::CIM_NamespaceInManagerInstProv::references().

CIMNameSpace CIMObjectPath::getFullNameSpace  )  const
 

Returns:
The full namespace for this object path

Definition at line 369 of file OW_CIMObjectPath.cpp.

Referenced by OW_NAMESPACE::CIMInstancePathtoXML(), OW_NAMESPACE::CIMLocalInstancePathtoXML(), and OW_NAMESPACE::valueToXML().

String CIMObjectPath::getHost  )  const
 

Returns:
The host name from the name space for this object path.

Definition at line 276 of file OW_CIMObjectPath.cpp.

CIMProperty CIMObjectPath::getKey const CIMName keyName  )  const
 

Get a key from this ObjectPath.

Parameters:
key The Name of the key to get
Returns:
An CIMProperty corresponding to key. If there is no key found, a NULL CIMProperty will be returned.

Definition at line 180 of file OW_CIMObjectPath.cpp.

References i.

Referenced by OW_NAMESPACE::NameSpaceProvider::getInstance().

CIMPropertyArray CIMObjectPath::getKeys  )  const
 

Get the keys for this object path.

Returns:
An CIMPropertyArray containing the keys for this object path.

Definition at line 174 of file OW_CIMObjectPath.cpp.

Referenced by OW_NAMESPACE::CIMInstanceNametoXML(), OW_NAMESPACE::NameSpaceProvider::deleteInstance(), OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv::getInstance(), OW_NAMESPACE::ProviderAgentCIMOMHandle::getInstance(), OW_NAMESPACE::makeInstanceKey(), and OW_NAMESPACE::modelPath().

CIMProperty CIMObjectPath::getKeyT const CIMName keyName  )  const
 

Get a key from this ObjectPath.

Parameters:
key The Name of the key to get
Returns:
An CIMProperty corresponding to key. If there is no key found, an NoSuchPropertyException exception is thrown.
Exceptions:
NoSuchPropertyException if keyName is not a property

Definition at line 193 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::String::c_str(), OW_THROW, and OW_NAMESPACE::CIMName::toString().

Referenced by OW_NAMESPACE::CIM_NamespaceInstProv::deleteInstance(), and OW_NAMESPACE::CIM_NamespaceInManagerInstProv::getInstance().

CIMValue CIMObjectPath::getKeyValue const CIMName name  )  const
 

Gets a key's value.

Parameters:
name The name of the key value to retrieve.
Returns:
The CIMValue of the specified key. It will be NULL if the key doesn't exist or the key's value is NULL.

Definition at line 204 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::CIMNULL, OW_NAMESPACE::CIMProperty::getValue(), and name.

Referenced by OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv::getInstance(), and OW_NAMESPACE::XMLExecute::init().

String CIMObjectPath::getNameSpace  )  const
 

Returns:
The namespace component of the CIMNameSpace for this object path

Definition at line 270 of file OW_CIMObjectPath.cpp.

Referenced by OW_NAMESPACE::CIMRepository2::_staticAssociatorsClass(), OW_NAMESPACE::CIMRepository::_staticAssociatorsClass(), OW_NAMESPACE::CIMRepository2::_staticReferencesClass(), OW_NAMESPACE::CIMRepository::_staticReferencesClass(), OW_NAMESPACE::CIMInstancePathtoXML(), OW_NAMESPACE::InstanceRepository::classHasInstances(), OW_NAMESPACE::cleanupInteropInstance(), OW_NAMESPACE::IndicationServerImplThread::createSubscription(), OW_NAMESPACE::XMLClass::getObjectWithPath(), OW_NAMESPACE::makeInstanceKey(), OW_NAMESPACE::AssocDbEntry::makeKey(), OW_NAMESPACE::NPI_getmyInstance(), and OW_NAMESPACE::valueToXML().

CIMUrl CIMObjectPath::getNameSpaceUrl  )  const
 

Returns:
The URL component of the CIMNameSpace for this object path

Definition at line 656 of file OW_CIMObjectPath.cpp.

Referenced by OW_NAMESPACE::objectPathAsKeyString().

String CIMObjectPath::getObjectName  )  const
 

This function is deprecated in favor of getClassName().

Returns:
The class name for this object path

Definition at line 282 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::getClassName().

bool CIMObjectPath::isClassPath  )  const
 

Returns:
true if this object is a class path

Definition at line 734 of file OW_CIMObjectPath.cpp.

Referenced by OW_NAMESPACE::CIMServer::_commonAssociators(), OW_NAMESPACE::CIMServer::_commonReferences(), OW_NAMESPACE::BinaryRequestHandler::associators(), OW_NAMESPACE::CIMXMLCIMOMHandle::associatorsClasses(), OW_NAMESPACE::BinaryCIMOMHandle::associatorsClasses(), OW_NAMESPACE::CIMClassPathtoXML(), OW_NAMESPACE::AssocDbEntry::makeKey(), OW_NAMESPACE::BinaryRequestHandler::references(), OW_NAMESPACE::CIMXMLCIMOMHandle::referencesClasses(), and OW_NAMESPACE::BinaryCIMOMHandle::referencesClasses().

bool CIMObjectPath::isInstancePath  )  const
 

Returns:
true if this object is an instance path

Definition at line 739 of file OW_CIMObjectPath.cpp.

Referenced by OW_NAMESPACE::CIMXMLCIMOMHandle::associators(), OW_NAMESPACE::BinaryCIMOMHandle::associators(), OW_NAMESPACE::CIMInstanceNametoXML(), OW_NAMESPACE::IndicationRepLayerImpl::invokeMethod(), OW_NAMESPACE::CIMXMLCIMOMHandle::references(), and OW_NAMESPACE::BinaryCIMOMHandle::references().

bool CIMObjectPath::keyHasValue const CIMName name  )  const
 

Test whether a key exists and has a non-NULL value.

Parameters:
name The name of the key to test.
Returns:
bool true if the key exists and has a non-NULL value.

Definition at line 215 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::CIMProperty::getValue(), and name.

String CIMObjectPath::modelPath  )  const [virtual]
 

Returns:
The model path component of this CIMObjectPath as an String

Definition at line 375 of file OW_CIMObjectPath.cpp.

References i.

Referenced by OW_NAMESPACE::BinaryCIMOMHandle::invokeMethod().

OW_NAMESPACE::CIMObjectPath::operator safe_bool  )  const [inline]
 

Returns:
true if this is not a null object.

Definition at line 263 of file OW_CIMObjectPath.hpp.

References m_pdata.

bool OW_NAMESPACE::CIMObjectPath::operator!  )  const [inline]
 

Definition at line 265 of file OW_CIMObjectPath.hpp.

bool OW_NAMESPACE::CIMObjectPath::operator!= const CIMObjectPath op  )  const [inline]
 

Not Equal operator.

Parameters:
op The object path to compare to this one.
Returns:
true if the object paths are not equal. Otherwise false.

Definition at line 282 of file OW_CIMObjectPath.hpp.

CIMObjectPath & CIMObjectPath::operator= const CIMObjectPath arg  ) 
 

Assignment operator.

Parameters:
arg The CIMObjectPath to assign to this one.
Returns:
A reference to this object after the assignment has been made.

Definition at line 144 of file OW_CIMObjectPath.cpp.

References m_pdata.

bool OW_NAMESPACE::CIMObjectPath::operator== const CIMObjectPath op  )  const [inline]
 

Equality operator.

Parameters:
op The object path to compare to this one.
Returns:
true if the object paths are equal. Otherwise false.

Definition at line 272 of file OW_CIMObjectPath.hpp.

CIMObjectPath CIMObjectPath::parse const String instanceName  )  [static]
 

Convert a string representation of an object path to an CIMObjectPath.

Parameters:
instanceName The object path to convert. Assumed to be an instance path.
Returns:
An CIMObjectPath object on success.

Definition at line 477 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::CIMNULL, OW_NAMESPACE::String::empty(), and OW_NAMESPACE::String::trim().

Referenced by OW_NAMESPACE::CIMValue::CIMValueImpl::createSimpleValue(), and OW_NAMESPACE::WQLProcessor::filterInstancesOnPropertyValue().

virtual void OW_NAMESPACE::CIMObjectPath::readObject std::istream &  istrm  )  [virtual]
 

Read this object from an input stream.

Parameters:
istrm The input stream to read this object from.

Implements OW_NAMESPACE::SerializableIFC.

CIMObjectPath & CIMObjectPath::setClassName const CIMName className  ) 
 

Assign a class name to this object path.

Parameters:
className The name of the class to assign to this object path.
Returns:
a reference to *this

Definition at line 314 of file OW_CIMObjectPath.cpp.

References className.

Referenced by OW_NAMESPACE::CIMRepository2::_staticAssociatorsClass(), OW_NAMESPACE::CIMRepository::_staticAssociatorsClass(), OW_NAMESPACE::CIMRepository2::_staticReferencesClass(), OW_NAMESPACE::CIMRepository::_staticReferencesClass(), OW_NAMESPACE::NPIIndicationProviderProxy::activateFilter(), OW_NAMESPACE::CMPIIndicationProviderProxy::activateFilter(), OW_NAMESPACE::NPIIndicationProviderProxy::authorizeFilter(), OW_NAMESPACE::CMPIIndicationProviderProxy::authorizeFilter(), OW_NAMESPACE::XMLCIMFactory::createObjectPath(), OW_NAMESPACE::NPIIndicationProviderProxy::deActivateFilter(), OW_NAMESPACE::CMPIIndicationProviderProxy::deActivateFilter(), OW_NAMESPACE::PerlInstanceProviderProxy::enumInstanceNames(), OW_NAMESPACE::NPIInstanceProviderProxy::enumInstanceNames(), OW_NAMESPACE::XMLCIMFactory::getInstanceName(), OW_NAMESPACE::NPIIndicationProviderProxy::mustPoll(), OW_NAMESPACE::CMPIIndicationProviderProxy::mustPoll(), and OW_NAMESPACE::XMLClass::readClass().

CIMObjectPath & CIMObjectPath::setHost const String host  ) 
 

Set the host name on the name space for this object path.

Parameters:
host The new name of the host to set on the underlying name space.
Returns:
a reference to *this

Definition at line 294 of file OW_CIMObjectPath.cpp.

CIMObjectPath & CIMObjectPath::setKeys const CIMInstance instance  ) 
 

Set the keys of this object path from the key properties of an instance.

Parameters:
instance The CIM instance to get the key properties from.
Returns:
a reference to *this

Definition at line 245 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::CIMInstance::getKeyValuePairs(), and OW_ASSERT.

CIMObjectPath & CIMObjectPath::setKeys const CIMPropertyArray newKeys  ) 
 

Set the keys of this object path.

Parameters:
newKeys An CIMPropertyArray that contains the keys for this object path.
Returns:
a reference to *this

Definition at line 234 of file OW_CIMObjectPath.cpp.

References i.

Referenced by OW_NAMESPACE::AssocDb2::addOrDeleteEntries(), OW_NAMESPACE::AssocDbHandle::addOrDeleteEntries(), and CIMObjectPath().

CIMObjectPath & CIMObjectPath::setKeyValue const CIMName name,
const CIMValue value
 

Set a key value.

This will update an existing key, or add a new key if one with name doesn't already exist.

Parameters:
name The name of the key
value The value of the key
Returns:
a reference to *this

Definition at line 253 of file OW_CIMObjectPath.cpp.

References i, name, and OW_ASSERT.

Referenced by OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv::doReferences(), OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv::enumInstanceNames(), and OW_NAMESPACE::OpenWBEM_ObjectManagerInstProv::initialize().

CIMObjectPath & CIMObjectPath::setNameSpace const String ns  ) 
 

Set the namespace for this object path.

Parameters:
ns The string representation of the namespace.
Returns:
a reference to *this

Definition at line 301 of file OW_CIMObjectPath.cpp.

References ns.

Referenced by OW_NAMESPACE::CIMServer::_commonAssociators(), OW_NAMESPACE::CIMRepository2::_commonAssociators(), OW_NAMESPACE::CIMRepository::_commonAssociators(), OW_NAMESPACE::CIMServer::_commonReferences(), OW_NAMESPACE::CIMRepository2::_commonReferences(), OW_NAMESPACE::CIMRepository::_commonReferences(), OW_NAMESPACE::NPIIndicationProviderProxy::activateFilter(), OW_NAMESPACE::CMPIIndicationProviderProxy::activateFilter(), OW_NAMESPACE::CMPIAssociatorProviderProxy::associatorNames(), OW_NAMESPACE::CMPIAssociatorProviderProxy::associators(), OW_NAMESPACE::BinaryRequestHandler::associators(), OW_NAMESPACE::NPIIndicationProviderProxy::authorizeFilter(), OW_NAMESPACE::CMPIIndicationProviderProxy::authorizeFilter(), OW_NAMESPACE::CIMXMLCIMOMHandle::createInstance(), OW_NAMESPACE::BinaryCIMOMHandle::createInstance(), OW_NAMESPACE::NPIIndicationProviderProxy::deActivateFilter(), OW_NAMESPACE::CMPIIndicationProviderProxy::deActivateFilter(), OW_NAMESPACE::InstanceRepository::deleteInstance(), OW_NAMESPACE::CMPIInstanceProviderProxy::deleteInstance(), OW_NAMESPACE::CIMRepository2::deleteInstance(), OW_NAMESPACE::CIMRepository::deleteInstance(), OW_NAMESPACE::IndicationServerImplThread::deleteSubscription(), OW_NAMESPACE::WQLProcessor::filterInstancesOnPropertyValue(), OW_NAMESPACE::InstanceRepository::getCIMInstance(), OW_NAMESPACE::CMPIInstanceProviderProxy::getInstance(), OW_NAMESPACE::CIMXMLCIMOMHandle::getInstance(), OW_NAMESPACE::AssocDb2::hasAssocEntries(), OW_NAMESPACE::AssocDbHandle::hasAssocEntries(), OW_NAMESPACE::PerlMethodProviderProxy::invokeMethod(), OW_NAMESPACE::NPIMethodProviderProxy::invokeMethod(), OW_NAMESPACE::CMPIMethodProviderProxy::invokeMethod(), OW_NAMESPACE::NPIIndicationProviderProxy::mustPoll(), OW_NAMESPACE::CMPIIndicationProviderProxy::mustPoll(), OW_NAMESPACE::CMPIAssociatorProviderProxy::referenceNames(), and OW_NAMESPACE::CMPIAssociatorProviderProxy::references().

void CIMObjectPath::setNull  )  [virtual]
 

Set this to a null object.

Implements OW_NAMESPACE::CIMBase.

Definition at line 138 of file OW_CIMObjectPath.cpp.

CIMObjectPath & CIMObjectPath::setObjectName const CIMName className  ) 
 

Assign a class name to this object path.

This function is deprecated in favor of setClassName()

Parameters:
className The name of the class to assign to this object path.
Returns:
a reference to *this

Definition at line 308 of file OW_CIMObjectPath.cpp.

References className.

CIMObjectPath & CIMObjectPath::syncWithClass const CIMClass theClass  ) 
 

Synchronize this object path with the given class.

This will ensure that all keys found on the class exist. All CIMValue types will be cast to the proper type, this is helpful because CIM-XML does not preserve the detailed type information of key-value pairs.

Parameters:
cc The class to synchronize with.
Returns:
a reference to *this

Definition at line 745 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::CIMClass::getKeys(), OW_NAMESPACE::CIMClass::getProperty(), OW_NAMESPACE::Array< T >::remove(), OW_NAMESPACE::Array< T >::size(), and theClass.

Referenced by OW_NAMESPACE::CIMServer::_commonAssociators(), and OW_NAMESPACE::CIMServer::_commonReferences().

String CIMObjectPath::toMOF  )  const [virtual]
 

Returns:
The MOF representation of this CIMObjectPath as an String

Implements OW_NAMESPACE::CIMBase.

Definition at line 439 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::StringBuffer::releaseString(), and OW_NAMESPACE::toString().

String CIMObjectPath::toString  )  const [virtual]
 

Returns:
The string representation of this CIMObjectPath.

Implements OW_NAMESPACE::CIMBase.

Definition at line 402 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::CIMUrl::isLocal(), and OW_NAMESPACE::StringBuffer::length().

Referenced by OW_NAMESPACE::IndicationServerImplThread::_processIndicationRange(), OW_NAMESPACE::CIMRepository2::_staticReferencesClass(), OW_NAMESPACE::CIMRepository::_staticReferencesClass(), OW_NAMESPACE::CIMServer::associatorNames(), OW_NAMESPACE::CIMServer::associators(), OW_NAMESPACE::CIMServer::associatorsClasses(), OW_NAMESPACE::MOF::CIMOMVisitor::CIMOMprocessInstance(), OW_NAMESPACE::CIMRepository::createInstance(), OW_NAMESPACE::InstanceRepository::deleteInstance(), OW_NAMESPACE::CIMServer::deleteInstance(), OW_NAMESPACE::CIMRepository2::deleteInstance(), OW_NAMESPACE::CIMRepository::deleteInstance(), OW_NAMESPACE::IndicationServerImplThread::deleteSubscription(), OW_NAMESPACE::WQLProcessor::filterInstancesOnPropertyValue(), OW_NAMESPACE::InstanceRepository::getCIMInstance(), OW_NAMESPACE::CppSimpleInstanceProviderIFC::getInstance(), OW_NAMESPACE::CIMServer::getInstance(), OW_NAMESPACE::AssocDb2::hasAssocEntries(), OW_NAMESPACE::AssocDbHandle::hasAssocEntries(), OW_NAMESPACE::OpenWBEM_ObjectManagerInstProv::initialize(), OW_NAMESPACE::CIMServer::invokeMethod(), OW_NAMESPACE::AssocDbEntry2::makeKey(), OW_NAMESPACE::AssocDbEntry::makeKey(), OW_NAMESPACE::StringBuffer::operator+=(), OW_NAMESPACE::operator<<(), OW_NAMESPACE::CIMServer::referenceNames(), OW_NAMESPACE::CIMServer::references(), OW_NAMESPACE::CIMServer::referencesClasses(), OW_NAMESPACE::String::String(), and OW_NAMESPACE::toString().

String CIMObjectPath::unEscape const String inString  )  [static]
 

Unescapes quotes and '/'.

Parameters:
inString The string in an escaped form
Returns:
The string with escape sequences removed

Definition at line 699 of file OW_CIMObjectPath.cpp.

References OW_NAMESPACE::String::c_str(), OW_NAMESPACE::String::length(), and OW_NAMESPACE::StringBuffer::releaseString().

Referenced by OW_NAMESPACE::WQLProcessor::filterInstancesOnPropertyValue().

virtual void OW_NAMESPACE::CIMObjectPath::writeObject std::ostream &  ostrm  )  const [virtual]
 

Write this object to an output stream.

Parameters:
ostrm The output stream to write this object to.

Implements OW_NAMESPACE::SerializableIFC.


Friends And Related Function Documentation

OW_COMMON_API bool operator< const CIMObjectPath lhs,
const CIMObjectPath rhs
[friend]
 

Definition at line 729 of file OW_CIMObjectPath.cpp.

bool operator< const CIMObjectPath::OPData x,
const CIMObjectPath::OPData y
[friend]
 

Definition at line 71 of file OW_CIMObjectPath.cpp.


Member Data Documentation

COWIntrusiveReference<OPData> OW_NAMESPACE::CIMObjectPath::m_pdata [private]
 

Definition at line 340 of file OW_CIMObjectPath.hpp.

Referenced by CIMObjectPath(), equals(), operator safe_bool(), OW_NAMESPACE::operator<(), and operator=().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:12:33 2006 for openwbem by  doxygen 1.4.6