#include <OWBI1_CIMObjectPath.hpp>
Inheritance diagram for OWBI1::CIMObjectPath:
Public Types | |
typedef detail::CIMObjectPathRepRef 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 (const detail::CIMObjectPathRepRef &rep) | |
~CIMObjectPath () | |
Destroy this CIMObjectPath object. | |
virtual void | setNull () |
Set this to a null object. | |
CIMObjectPath & | operator= (const CIMObjectPath &arg) |
Assignment operator. | |
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 | 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 & | 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. | |
detail::CIMObjectPathRepRef | getRep () const |
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 | |
detail::CIMObjectPathRepRef | m_rep |
CIMObjectPath is a ref counted, copy on write object. It is possible to have a NULL CIMObjectPath.
Definition at line 53 of file OWBI1_CIMObjectPath.hpp.
|
Definition at line 233 of file OWBI1_CIMObjectPath.hpp. |
|
Create a new CIMObjectPath object.
Definition at line 61 of file OWBI1_CIMObjectPath.cpp. |
|
Create a NULL CIMObjectPath object.
Definition at line 66 of file OWBI1_CIMObjectPath.cpp. |
|
Create an CIMObjectPath to access the specified object.
Definition at line 76 of file OWBI1_CIMObjectPath.cpp. |
|
Create an CIMObjectPath to access the specified object.
Definition at line 71 of file OWBI1_CIMObjectPath.cpp. |
|
Create an CIMObjectPath to access the specified object (a qualifier or a class) in a particular namespace.
Definition at line 81 of file OWBI1_CIMObjectPath.cpp. |
|
Create an CIMObjectPath for an instance.
Definition at line 86 of file OWBI1_CIMObjectPath.cpp. |
|
Create an CIMObjectPath for an instance and namespace.
Definition at line 91 of file OWBI1_CIMObjectPath.cpp. |
|
Create a new CIMObject path from another.
Definition at line 96 of file OWBI1_CIMObjectPath.cpp. |
|
Definition at line 102 of file OWBI1_CIMObjectPath.cpp. |
|
Destroy this CIMObjectPath object.
Definition at line 108 of file OWBI1_CIMObjectPath.cpp. |
|
Compare this object path with another.
Definition at line 222 of file OWBI1_CIMObjectPath.cpp. References cop, and getNameSpace(). |
|
Escapes quotes and '/'.
Definition at line 560 of file OWBI1_CIMObjectPath.cpp. References OWBI1::String::c_str(), and OWBI1::String::length(). |
|
Definition at line 195 of file OWBI1_CIMObjectPath.cpp. References OWBI1::String::toString(). |
|
Definition at line 270 of file OWBI1_CIMObjectPath.cpp. |
|
Definition at line 189 of file OWBI1_CIMObjectPath.cpp. |
|
Get a key from this ObjectPath.
Definition at line 132 of file OWBI1_CIMObjectPath.cpp. References OWBI1::CIMName::getRep(). |
|
Get the keys for this object path.
Definition at line 126 of file OWBI1_CIMObjectPath.cpp. |
|
Get a key from this ObjectPath.
Definition at line 138 of file OWBI1_CIMObjectPath.cpp. References OWBI1::String::c_str(), OWBI1_THROW, and OWBI1::CIMName::toString(). |
|
Gets a key's value.
Definition at line 149 of file OWBI1_CIMObjectPath.cpp. References name. |
|
Definition at line 183 of file OWBI1_CIMObjectPath.cpp. Referenced by equals(). |
|
Definition at line 553 of file OWBI1_CIMObjectPath.cpp. |
|
Definition at line 716 of file OWBI1_CIMObjectPath.cpp. |
|
Definition at line 631 of file OWBI1_CIMObjectPath.cpp. |
|
Definition at line 636 of file OWBI1_CIMObjectPath.cpp. |
|
Test whether a key exists and has a non-NULL value.
Definition at line 155 of file OWBI1_CIMObjectPath.cpp. References name. |
|
Definition at line 276 of file OWBI1_CIMObjectPath.cpp. References i. |
|
Definition at line 702 of file OWBI1_CIMObjectPath.cpp. |
|
Definition at line 709 of file OWBI1_CIMObjectPath.cpp. |
|
Not Equal operator.
Definition at line 254 of file OWBI1_CIMObjectPath.hpp. |
|
Assignment operator.
Definition at line 119 of file OWBI1_CIMObjectPath.cpp. References m_rep. |
|
Equality operator.
Definition at line 244 of file OWBI1_CIMObjectPath.hpp. |
|
Convert a string representation of an object path to an CIMObjectPath.
Definition at line 374 of file OWBI1_CIMObjectPath.cpp. References OW_NAMESPACE::CIMNULL, OWBI1::String::empty(), and OWBI1::String::trim(). |
|
Read this object from an input stream.
Implements OWBI1::SerializableIFC. |
|
Assign a class name to this object path.
Definition at line 215 of file OWBI1_CIMObjectPath.cpp. References className. |
|
Set the host name on the name space for this object path.
Definition at line 201 of file OWBI1_CIMObjectPath.cpp. |
|
Set the keys of this object path from the key properties of an instance.
Definition at line 168 of file OWBI1_CIMObjectPath.cpp. References OWBI1::CIMInstance::getKeyValuePairs(), and OW_ASSERT. |
|
Set the keys of this object path.
Definition at line 161 of file OWBI1_CIMObjectPath.cpp. |
|
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 176 of file OWBI1_CIMObjectPath.cpp. References OWBI1::CIMValue::getRep(), and name. |
|
Set the namespace for this object path.
Definition at line 208 of file OWBI1_CIMObjectPath.cpp. References ns. |
|
Set this to a null object.
Implements OWBI1::CIMBase. Definition at line 113 of file OWBI1_CIMObjectPath.cpp. |
|
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 642 of file OWBI1_CIMObjectPath.cpp. References OWBI1::CIMClass::getKeys(), OWBI1::CIMClass::getProperty(), OWBI1::Array< T >::remove(), OWBI1::Array< T >::size(), and theClass. |
|
Implements OWBI1::CIMBase. Definition at line 340 of file OWBI1_CIMObjectPath.cpp. References OW_NAMESPACE::toString(). |
|
Implements OWBI1::CIMBase. Definition at line 303 of file OWBI1_CIMObjectPath.cpp. References OWBI1::CIMUrl::isLocal(), and OWBI1::StringBuffer::length(). Referenced by OWBI1::BI1SimpleInstanceProviderIFC::getInstance(). |
|
Unescapes quotes and '/'.
Definition at line 596 of file OWBI1_CIMObjectPath.cpp. References OWBI1::String::c_str(), OWBI1::String::length(), and OWBI1::StringBuffer::releaseString(). |
|
Write this object to an output stream.
Implements OWBI1::SerializableIFC. |
|
Definition at line 313 of file OWBI1_CIMObjectPath.hpp. Referenced by operator=(). |