version 1.42, 2007/10/19 18:22:02
|
version 1.44, 2008/04/10 07:59:58
|
|
|
| |
String CIMObject::toString() const | String CIMObject::toString() const |
{ | { |
|
CheckRep(_rep); |
Buffer out; | Buffer out; |
| |
CheckRep(_rep); |
XmlWriter::appendObjectElement(out, *this); |
_rep->toXml(out); |
|
| |
return out.getData(); | return out.getData(); |
} | } |
| |
Boolean CIMObject::isClass() const | Boolean CIMObject::isClass() const |
{ | { |
try |
return Boolean(dynamic_cast<CIMClassRep*>(this->_rep)); |
{ |
|
const CIMClass c(*this); |
|
return true; |
|
} |
|
catch (DynamicCastFailedException&) |
|
{ |
|
return false; |
|
} |
|
} | } |
| |
Boolean CIMObject::isInstance() const | Boolean CIMObject::isInstance() const |
{ | { |
try |
return Boolean(dynamic_cast<CIMInstanceRep*>(this->_rep)); |
{ |
|
const CIMInstance i(*this); |
|
return true; |
|
} |
|
catch (DynamicCastFailedException&) |
|
{ |
|
return false; |
|
} |
|
} | } |
| |
Boolean CIMObject::identical(const CIMConstObject& x) const | Boolean CIMObject::identical(const CIMConstObject& x) const |
|
|
| |
String CIMConstObject::toString() const | String CIMConstObject::toString() const |
{ | { |
|
CheckRep(_rep); |
Buffer out; | Buffer out; |
| |
CheckRep(_rep); |
XmlWriter::appendObjectElement(out, *this); |
_rep->toXml(out); |
|
| |
return out.getData(); | return out.getData(); |
} | } |
| |
Boolean CIMConstObject::isClass() const | Boolean CIMConstObject::isClass() const |
{ | { |
try |
return Boolean(dynamic_cast<CIMClassRep*>(this->_rep)); |
{ |
|
const CIMConstClass c(*this); |
|
return true; |
|
} |
|
catch (DynamicCastFailedException&) |
|
{ |
|
return false; |
|
} |
|
} | } |
| |
Boolean CIMConstObject::isInstance() const | Boolean CIMConstObject::isInstance() const |
{ | { |
try |
return Boolean(dynamic_cast<CIMInstanceRep*>(this->_rep)); |
{ |
|
const CIMConstInstance i(*this); |
|
return true; |
|
} |
|
catch (DynamicCastFailedException&) |
|
{ |
|
return false; |
|
} |
|
} | } |
| |
Boolean CIMConstObject::identical(const CIMConstObject& x) const | Boolean CIMConstObject::identical(const CIMConstObject& x) const |