version 1.18, 2002/05/03 05:16:16
|
version 1.23, 2002/05/16 18:25:49
|
|
|
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: |
// Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
*/ | */ |
const String& getClassName() const; | const String& getClassName() const; |
| |
/** equalClassName Compares ClassName with a String. This test performs |
const CIMObjectPath& getPath() const; |
a comparison of the classname component of the object |
|
with a String. Note that this function was included specifically |
|
because the equality compare is not just a straight comparison |
|
because classnames are case independent. |
|
@param classname String containing the name for comparison |
|
@return True if it is the same class name (equalNoCase compare passes) |
|
or false if not. |
|
*/ |
|
const Boolean equalClassName(const String& classname) const; |
|
|
|
const CIMReference& getPath() const; |
|
| |
/** addQualifier - Adds the CIMQualifier object to the instance. | /** addQualifier - Adds the CIMQualifier object to the instance. |
Thows an exception of the CIMQualifier already exists in the instance | Thows an exception of the CIMQualifier already exists in the instance |
|
|
Boolean identical(const CIMConstObject& x) const; | Boolean identical(const CIMConstObject& x) const; |
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
/** operator int() - ATTN: */ |
/** isNull() - ATTN: */ |
operator int() const; |
Boolean isNull() const; |
|
|
/** Convert object to XML format. |
|
*/ |
|
void toXml(Array<Sint8>& out) const; |
|
#endif | #endif |
| |
private: | private: |
|
|
| |
const String& getClassName() const; | const String& getClassName() const; |
| |
const CIMReference& getPath() const; |
const CIMObjectPath& getPath() const; |
| |
Uint32 findQualifier(const String& name) const; | Uint32 findQualifier(const String& name) const; |
| |
|
|
Boolean identical(const CIMConstObject& x) const; | Boolean identical(const CIMConstObject& x) const; |
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
operator int() const; |
Boolean isNull() const; |
|
|
void toXml(Array<Sint8>& out) const; |
|
|
|
void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const; |
|
#endif | #endif |
| |
private: | private: |
|
|
#endif | #endif |
}; | }; |
| |
/** The CIMObjectWithPath encapsulates a CIMReference and CIMObject. |
/** The CIMObjectWithPath encapsulates a CIMObjectPath and CIMObject. |
Accessors are provided for getting the two parts. Constructors are | Accessors are provided for getting the two parts. Constructors are |
provided for initializing it from a CIMObject. | provided for initializing it from a CIMObject. |
*/ | */ |
|
|
| |
/** constructor | /** constructor |
*/ | */ |
CIMObjectWithPath(const CIMReference& reference, const CIMObject& object); |
CIMObjectWithPath(const CIMObjectPath& reference, const CIMObject& object); |
| |
/** Constructor - Constructs a CIMObjectWithPath Object from | /** Constructor - Constructs a CIMObjectWithPath Object from |
another CimObjectWithPath | another CimObjectWithPath |
|
|
| |
/** set - | /** set - |
*/ | */ |
void set(const CIMReference& reference, const CIMObject& object); |
void set(const CIMObjectPath& reference, const CIMObject& object); |
| |
/** | /** |
*/ | */ |
const CIMReference& getReference() const; |
const CIMObjectPath& getReference() const; |
| |
/** | /** |
*/ | */ |
|
|
| |
/** | /** |
*/ | */ |
CIMReference& getReference(); |
CIMObjectPath& getReference(); |
| |
/** | /** |
*/ | */ |
CIMObject& getObject(); | CIMObject& getObject(); |
| |
#ifdef PEGASUS_INTERNALONLY |
|
/** |
|
*/ |
|
void toXml(Array<Sint8>& out) const; |
|
#endif |
|
|
|
private: | private: |
| |
CIMReference _reference; |
CIMObjectPath _reference; |
CIMObject _object; | CIMObject _object; |
}; | }; |
| |