version 1.26, 2002/08/15 15:52:29
|
version 1.27, 2002/08/20 17:39:37
|
|
|
const CIMClass c (*this); | const CIMClass c (*this); |
return true; | return true; |
} | } |
catch (DynamicCastFailed) |
catch (DynamicCastFailedException) |
{ | { |
return false; | return false; |
} | } |
|
|
const CIMInstance i (*this); | const CIMInstance i (*this); |
return true; | return true; |
} | } |
catch (DynamicCastFailed) |
catch (DynamicCastFailedException) |
{ | { |
return false; | return false; |
} | } |
|
|
void CIMObject::_checkRep() const | void CIMObject::_checkRep() const |
{ | { |
if (!_rep) | if (!_rep) |
throw UninitializedObject (); |
throw UninitializedObjectException(); |
} | } |
| |
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// |
|
|
return (_rep == 0)? true : false; | return (_rep == 0)? true : false; |
} | } |
| |
|
Boolean CIMConstObject::isClass() const |
|
{ |
|
try |
|
{ |
|
const CIMConstClass c(*this); |
|
return true; |
|
} |
|
catch (DynamicCastFailedException) |
|
{ |
|
return false; |
|
} |
|
} |
|
|
|
Boolean CIMConstObject::isInstance() const |
|
{ |
|
try |
|
{ |
|
const CIMConstInstance i(*this); |
|
return true; |
|
} |
|
catch (DynamicCastFailedException) |
|
{ |
|
return false; |
|
} |
|
} |
|
|
Boolean CIMConstObject::identical(const CIMConstObject& x) const | Boolean CIMConstObject::identical(const CIMConstObject& x) const |
{ | { |
x._checkRep(); | x._checkRep(); |
|
|
void CIMConstObject::_checkRep() const | void CIMConstObject::_checkRep() const |
{ | { |
if (!_rep) | if (!_rep) |
throw UninitializedObject (); |
throw UninitializedObjectException(); |
} | } |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |