version 1.22, 2002/05/15 23:14:19
|
version 1.27, 2002/05/31 04:02:09
|
|
|
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) | // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
|
// Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
*/ | */ |
const String& getClassName() const; | const String& getClassName() const; |
| |
/** equalClassName Compares ClassName with a String. This test performs |
|
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 CIMObjectPath& getPath() const; | const CIMObjectPath& getPath() const; |
| |
|
/** |
|
Sets the object path for the object |
|
@param path CIMObjectPath containing the object path |
|
*/ |
|
void setPath (const CIMObjectPath & path); |
|
|
/** 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 |
@param CIMQualifier object to add to instance | @param CIMQualifier object to add to instance |
|
|
#endif | #endif |
}; | }; |
| |
|
#define PEGASUS_ARRAY_T CIMObject |
|
# include <Pegasus/Common/ArrayInter.h> |
|
#undef PEGASUS_ARRAY_T |
|
|
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// |
// | // |
// CIMConstObject | // CIMConstObject |
|
|
#endif | #endif |
}; | }; |
| |
/** The CIMObjectWithPath encapsulates a CIMObjectPath and CIMObject. |
|
Accessors are provided for getting the two parts. Constructors are |
|
provided for initializing it from a CIMObject. |
|
*/ |
|
class PEGASUS_COMMON_LINKAGE CIMObjectWithPath |
|
{ |
|
public: |
|
|
|
/** Constructor |
|
*/ |
|
CIMObjectWithPath(); |
|
|
|
/** constructor |
|
*/ |
|
CIMObjectWithPath(const CIMObjectPath& reference, const CIMObject& object); |
|
|
|
/** Constructor - Constructs a CIMObjectWithPath Object from |
|
another CimObjectWithPath |
|
@param - ATTN |
|
*/ |
|
CIMObjectWithPath(const CIMObjectWithPath& x); |
|
|
|
~CIMObjectWithPath(); |
|
|
|
CIMObjectWithPath& operator=(const CIMObjectWithPath& x); |
|
|
|
/** set - |
|
*/ |
|
void set(const CIMObjectPath& reference, const CIMObject& object); |
|
|
|
/** |
|
*/ |
|
const CIMObjectPath& getReference() const; |
|
|
|
/** |
|
*/ |
|
const CIMObject& getObject() const; |
|
|
|
/** |
|
*/ |
|
CIMObjectPath& getReference(); |
|
|
|
/** |
|
*/ |
|
CIMObject& getObject(); |
|
|
|
private: |
|
|
|
CIMObjectPath _reference; |
|
CIMObject _object; |
|
}; |
|
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
#endif /* Pegasus_Object_h */ | #endif /* Pegasus_Object_h */ |