version 1.33, 2002/08/27 23:38:44
|
version 1.34, 2002/08/28 01:16:48
|
|
|
Inc(_rep = x._rep); | Inc(_rep = x._rep); |
} | } |
| |
CIMInstance::CIMInstance(const CIMObject& x) throw(DynamicCastFailedException) |
CIMInstance::CIMInstance(const CIMObject& x) |
{ | { |
if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) | if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) |
throw DynamicCastFailedException(); | throw DynamicCastFailedException(); |
|
|
return _rep->findProperty(name); | return _rep->findProperty(name); |
} | } |
| |
CIMProperty CIMInstance::getProperty(Uint32 index) throw(IndexOutOfBoundsException) |
CIMProperty CIMInstance::getProperty(Uint32 index) |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getProperty(index); | return _rep->getProperty(index); |
} | } |
| |
CIMConstProperty CIMInstance::getProperty(Uint32 index) const throw(IndexOutOfBoundsException) |
CIMConstProperty CIMInstance::getProperty(Uint32 index) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getProperty(index); | return _rep->getProperty(index); |
} | } |
| |
void CIMInstance::removeProperty(Uint32 index) throw(IndexOutOfBoundsException) |
void CIMInstance::removeProperty(Uint32 index) |
{ | { |
_checkRep(); | _checkRep(); |
_rep->removeProperty(index); | _rep->removeProperty(index); |
|
|
Inc(_rep = x._rep); | Inc(_rep = x._rep); |
} | } |
| |
CIMConstInstance::CIMConstInstance(const CIMObject& x) throw(DynamicCastFailedException) |
CIMConstInstance::CIMConstInstance(const CIMObject& x) |
{ | { |
if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) | if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) |
throw DynamicCastFailedException(); | throw DynamicCastFailedException(); |
|
|
} | } |
| |
CIMConstInstance::CIMConstInstance(const CIMConstObject& x) | CIMConstInstance::CIMConstInstance(const CIMConstObject& x) |
throw(DynamicCastFailedException) |
|
{ | { |
if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) | if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) |
throw DynamicCastFailedException(); | throw DynamicCastFailedException(); |