#include <OW_CIMObjectPath.hpp>
Inheritance diagram for OW_NAMESPACE::CIMObjectPath:
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. | |
CIMObjectPath & | operator= (const CIMObjectPath &arg) |
Assignment operator. | |
CIMObjectPath & | addKey (const CIMName &keyname, const CIMValue &value) OW_DEPRECATED |
This function is too error prone. | |
CIMObjectPath & | addKey (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. | |
CIMObjectPath & | setKeys (const CIMPropertyArray &newKeys) |
Set the keys of this object path. | |
CIMObjectPath & | setKeys (const CIMInstance &instance) |
Set the keys of this object path from the key properties of an instance. | |
CIMObjectPath & | setKeyValue (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 |
CIMObjectPath & | setHost (const String &host) |
Set the host name on the name space for this object path. | |
CIMObjectPath & | setNameSpace (const String &ns) |
Set the namespace for this object path. | |
CIMObjectPath & | setObjectName (const CIMName &className) OW_DEPRECATED |
Assign a class name to this object path. | |
CIMObjectPath & | setClassName (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. | |
CIMObjectPath & | syncWithClass (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< OPData > | m_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 |
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.
|
Definition at line 259 of file OW_CIMObjectPath.hpp. |
|
Create a new CIMObjectPath object.
Definition at line 79 of file OW_CIMObjectPath.cpp. |
|
Create a NULL CIMObjectPath object.
Definition at line 84 of file OW_CIMObjectPath.cpp. |
|
Create an CIMObjectPath to access the specified object.
Definition at line 95 of file OW_CIMObjectPath.cpp. References m_pdata. |
|
Create an CIMObjectPath to access the specified object.
Definition at line 89 of file OW_CIMObjectPath.cpp. References m_pdata. |
|
Create an CIMObjectPath to access the specified object (a qualifier or a class) in a particular namespace.
Definition at line 101 of file OW_CIMObjectPath.cpp. References m_pdata. |
|
Create an CIMObjectPath for an instance.
Definition at line 109 of file OW_CIMObjectPath.cpp. |
|
Create an CIMObjectPath for an instance and namespace.
Definition at line 119 of file OW_CIMObjectPath.cpp. References OW_NAMESPACE::CIMInstance::getClassName(), OW_NAMESPACE::CIMInstance::getKeyValuePairs(), inst, m_pdata, ns, and setKeys(). |
|
Create a new CIMObject path from another.
Definition at line 128 of file OW_CIMObjectPath.cpp. |
|
Destroy this CIMObjectPath object.
Definition at line 133 of file OW_CIMObjectPath.cpp. |
|
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. |
|
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(). |
|
Compare this object path with another.
Definition at line 321 of file OW_CIMObjectPath.cpp. Referenced by OW_NAMESPACE::IndicationServerImplThread::deleteSubscription(), OW_NAMESPACE::IndicationServerImplThread::modifySubscription(), and OW_NAMESPACE::operator==(). |
|
Escapes quotes and '/'.
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(). |
|
|
Definition at line 369 of file OW_CIMObjectPath.cpp. Referenced by OW_NAMESPACE::CIMInstancePathtoXML(), OW_NAMESPACE::CIMLocalInstancePathtoXML(), and OW_NAMESPACE::valueToXML(). |
|
Definition at line 276 of file OW_CIMObjectPath.cpp. |
|
Get a key from this ObjectPath.
Definition at line 180 of file OW_CIMObjectPath.cpp. References i. Referenced by OW_NAMESPACE::NameSpaceProvider::getInstance(). |
|
Get 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(). |
|
Get a key from this ObjectPath.
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(). |
|
Gets a key's value.
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(). |
|
|
Definition at line 656 of file OW_CIMObjectPath.cpp. Referenced by OW_NAMESPACE::objectPathAsKeyString(). |
|
This function is deprecated in favor of getClassName().
Definition at line 282 of file OW_CIMObjectPath.cpp. References OW_NAMESPACE::getClassName(). |
|
|
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(). |
|
Test whether a key exists and has a non-NULL value.
Definition at line 215 of file OW_CIMObjectPath.cpp. References OW_NAMESPACE::CIMProperty::getValue(), and name. |
|
Definition at line 375 of file OW_CIMObjectPath.cpp. References i. Referenced by OW_NAMESPACE::BinaryCIMOMHandle::invokeMethod(). |
|
Definition at line 263 of file OW_CIMObjectPath.hpp. References m_pdata. |
|
Definition at line 265 of file OW_CIMObjectPath.hpp. |
|
Not Equal operator.
Definition at line 282 of file OW_CIMObjectPath.hpp. |
|
Assignment operator.
Definition at line 144 of file OW_CIMObjectPath.cpp. References m_pdata. |
|
Equality operator.
Definition at line 272 of file OW_CIMObjectPath.hpp. |
|
Convert a string representation of an object path to an CIMObjectPath.
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(). |
|
Read this object from an input stream.
Implements OW_NAMESPACE::SerializableIFC. |
|
|
Set the host name on the name space for this object path.
Definition at line 294 of file OW_CIMObjectPath.cpp. |
|
Set the keys of this object path from the key properties of an instance.
Definition at line 245 of file OW_CIMObjectPath.cpp. References OW_NAMESPACE::CIMInstance::getKeyValuePairs(), and OW_ASSERT. |
|
Set the keys of this object path.
Definition at line 234 of file OW_CIMObjectPath.cpp. References i. Referenced by OW_NAMESPACE::AssocDb2::addOrDeleteEntries(), OW_NAMESPACE::AssocDbHandle::addOrDeleteEntries(), and CIMObjectPath(). |
|
Set a key value. This will update an existing key, or add a new key if one with name doesn't already exist.
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(). |
|
Set the namespace for this object path.
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(). |
|
Set this to a null object.
Implements OW_NAMESPACE::CIMBase. Definition at line 138 of file OW_CIMObjectPath.cpp. |
|
Assign a class name to this object path. This function is deprecated in favor of setClassName()
Definition at line 308 of file OW_CIMObjectPath.cpp. References className. |
|
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.
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(). |
|
Implements OW_NAMESPACE::CIMBase. Definition at line 439 of file OW_CIMObjectPath.cpp. References OW_NAMESPACE::StringBuffer::releaseString(), and OW_NAMESPACE::toString(). |
|
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(). |
|
Unescapes quotes and '/'.
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(). |
|
Write this object to an output stream.
Implements OW_NAMESPACE::SerializableIFC. |
|
Definition at line 729 of file OW_CIMObjectPath.cpp. |
|
Definition at line 71 of file OW_CIMObjectPath.cpp. |
|
Definition at line 340 of file OW_CIMObjectPath.hpp. Referenced by CIMObjectPath(), equals(), operator safe_bool(), OW_NAMESPACE::operator<(), and operator=(). |