version 1.26, 2001/12/13 14:53:49
|
version 1.27, 2001/12/22 02:15:15
|
|
|
#define Pegasus_CIMClass_h | #define Pegasus_CIMClass_h |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
|
#include <Pegasus/Common/CIMObject.h> |
#include <Pegasus/Common/CIMClassRep.h> | #include <Pegasus/Common/CIMClassRep.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
class CIMConstClass; | class CIMConstClass; |
class CIMObject; | class CIMObject; |
|
class CIMConstObject; |
| |
/** The CIMClass class is used to represent CIM classes in Pegasus. In CIM, | /** The CIMClass class is used to represent CIM classes in Pegasus. In CIM, |
a class object may be a class or an associator. A CIM class must contain a | a class object may be a class or an associator. A CIM class must contain a |
|
|
instances, all of which support a common type (for example, a set of | instances, all of which support a common type (for example, a set of |
properties, methods, and associations). | properties, methods, and associations). |
*/ | */ |
|
|
class PEGASUS_COMMON_LINKAGE CIMClass | class PEGASUS_COMMON_LINKAGE CIMClass |
{ | { |
public: | public: |
|
|
Inc(_rep = x._rep); | Inc(_rep = x._rep); |
} | } |
| |
/// Operator = Assigns the CIM Class constructor. |
PEGASUS_EXPLICIT CIMClass(const CIMObject& x); |
|
|
|
PEGASUS_EXPLICIT CIMClass(const CIMObject& x, NoThrow&); |
|
|
|
/** Assignment operator. |
|
*/ |
CIMClass& operator=(const CIMClass& x) | CIMClass& operator=(const CIMClass& x) |
{ | { |
if (x._rep != _rep) | if (x._rep != _rep) |
|
|
/** Makes a deep copy (clone) of the given object. */ | /** Makes a deep copy (clone) of the given object. */ |
CIMClass clone() const | CIMClass clone() const |
{ | { |
return CIMClass(_rep->clone()); |
return CIMClass((CIMClassRep*)(_rep->clone())); |
} | } |
| |
/** Get names of all keys of this class. */ | /** Get names of all keys of this class. */ |
|
|
CIMClassRep* _rep; | CIMClassRep* _rep; |
friend class CIMConstClass; | friend class CIMConstClass; |
friend class CIMObject; | friend class CIMObject; |
|
friend class CIMConstObject; |
}; | }; |
| |
#define PEGASUS_ARRAY_T CIMClass | #define PEGASUS_ARRAY_T CIMClass |
|
|
Inc(_rep = x._rep); | Inc(_rep = x._rep); |
} | } |
| |
|
PEGASUS_EXPLICIT CIMConstClass(const CIMObject& x); |
|
|
|
PEGASUS_EXPLICIT CIMConstClass(const CIMConstObject& x); |
|
|
|
PEGASUS_EXPLICIT CIMConstClass(const CIMObject& x, NoThrow&); |
|
|
|
PEGASUS_EXPLICIT CIMConstClass(const CIMConstObject& x, NoThrow&); |
|
|
CIMConstClass& operator=(const CIMConstClass& x) | CIMConstClass& operator=(const CIMConstClass& x) |
{ | { |
if (x._rep != _rep) | if (x._rep != _rep) |
|
|
| |
CIMClass clone() const | CIMClass clone() const |
{ | { |
return CIMClass(_rep->clone()); |
return CIMClass((CIMClassRep*)(_rep->clone())); |
} | } |
| |
void getKeyNames(Array<String>& keyNames) const | void getKeyNames(Array<String>& keyNames) const |
|
|
friend class CIMClassRep; | friend class CIMClassRep; |
friend class CIMClass; | friend class CIMClass; |
friend class CIMInstanceRep; | friend class CIMInstanceRep; |
|
friend class CIMObject; |
|
friend class CIMConstObject; |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |