version 1.11, 2001/07/10 22:31:08
|
version 1.12, 2001/12/22 02:15:15
|
|
|
# include "ArrayImpl.h" | # include "ArrayImpl.h" |
#undef PEGASUS_ARRAY_T | #undef PEGASUS_ARRAY_T |
| |
|
//////////////////////////////////////////////////////////////////////////////// |
|
// |
|
// CIMInstance |
|
// |
|
//////////////////////////////////////////////////////////////////////////////// |
|
|
|
CIMInstance::CIMInstance(const CIMObject& x) |
|
{ |
|
if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) |
|
throw DynamicCastFailed(); |
|
} |
|
|
|
CIMInstance::CIMInstance(const CIMObject& x, NoThrow&) |
|
{ |
|
_rep = dynamic_cast<CIMInstanceRep*>(x._rep); |
|
} |
|
|
Boolean CIMInstance::identical(const CIMConstInstance& x) const | Boolean CIMInstance::identical(const CIMConstInstance& x) const |
{ | { |
x._checkRep(); | x._checkRep(); |
|
|
_rep->resolve(declContext, nameSpace, cimClass); | _rep->resolve(declContext, nameSpace, cimClass); |
} | } |
| |
|
//////////////////////////////////////////////////////////////////////////////// |
|
// |
|
// CIMConstInstance |
|
// |
|
//////////////////////////////////////////////////////////////////////////////// |
|
|
|
CIMConstInstance::CIMConstInstance(const CIMObject& x) |
|
{ |
|
if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) |
|
throw DynamicCastFailed(); |
|
} |
|
|
|
CIMConstInstance::CIMConstInstance(const CIMConstObject& x) |
|
{ |
|
if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) |
|
throw DynamicCastFailed(); |
|
} |
|
|
|
CIMConstInstance::CIMConstInstance(const CIMObject& x, NoThrow&) |
|
{ |
|
_rep = dynamic_cast<CIMInstanceRep*>(x._rep); |
|
} |
|
|
|
CIMConstInstance::CIMConstInstance(const CIMConstObject& x, NoThrow&) |
|
{ |
|
_rep = dynamic_cast<CIMInstanceRep*>(x._rep); |
|
} |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |