version 1.14, 2002/05/03 05:16:16
|
version 1.15, 2002/05/03 18:23:02
|
|
|
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: |
// Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
| |
CIMInstance::CIMInstance(const CIMObject& x) | CIMInstance::CIMInstance(const CIMObject& x) |
{ | { |
// ATTN-RK-P1-20020502: Need to Inc(_rep)? |
|
if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) | if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) |
throw DynamicCastFailed(); | throw DynamicCastFailed(); |
|
Inc(_rep); |
} | } |
| |
CIMInstance::CIMInstance(const CIMObject& x, NoThrow&) | CIMInstance::CIMInstance(const CIMObject& x, NoThrow&) |
{ | { |
// ATTN-RK-P1-20020502: Need to Inc(_rep)? |
|
_rep = dynamic_cast<CIMInstanceRep*>(x._rep); | _rep = dynamic_cast<CIMInstanceRep*>(x._rep); |
|
Inc(_rep); |
} | } |
| |
CIMInstance::CIMInstance(const String& className) | CIMInstance::CIMInstance(const String& className) |
|
|
| |
CIMConstInstance::CIMConstInstance(const CIMObject& x) | CIMConstInstance::CIMConstInstance(const CIMObject& x) |
{ | { |
// ATTN-RK-P1-20020502: Need to Inc(_rep)? |
|
if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) | if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) |
throw DynamicCastFailed(); | throw DynamicCastFailed(); |
|
Inc(_rep); |
} | } |
| |
CIMConstInstance::CIMConstInstance(const CIMConstObject& x) | CIMConstInstance::CIMConstInstance(const CIMConstObject& x) |
{ | { |
// ATTN-RK-P1-20020502: Need to Inc(_rep)? |
|
if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) | if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep))) |
throw DynamicCastFailed(); | throw DynamicCastFailed(); |
|
Inc(_rep); |
} | } |
| |
CIMConstInstance::CIMConstInstance(const CIMObject& x, NoThrow&) | CIMConstInstance::CIMConstInstance(const CIMObject& x, NoThrow&) |
{ | { |
// ATTN-RK-P1-20020502: Need to Inc(_rep)? |
|
_rep = dynamic_cast<CIMInstanceRep*>(x._rep); | _rep = dynamic_cast<CIMInstanceRep*>(x._rep); |
|
Inc(_rep); |
} | } |
| |
CIMConstInstance::CIMConstInstance(const CIMConstObject& x, NoThrow&) | CIMConstInstance::CIMConstInstance(const CIMConstObject& x, NoThrow&) |
{ | { |
// ATTN-RK-P1-20020502: Need to Inc(_rep)? |
|
_rep = dynamic_cast<CIMInstanceRep*>(x._rep); | _rep = dynamic_cast<CIMInstanceRep*>(x._rep); |
|
Inc(_rep); |
} | } |
| |
CIMConstInstance::CIMConstInstance(const String& className) | CIMConstInstance::CIMConstInstance(const String& className) |