version 1.28, 2002/08/27 23:38:44
|
version 1.34, 2005/02/05 22:59:23
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2005//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// The Open Group, Tivoli Systems |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) | // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
// Carol Ann Krug Graves, Hewlett-Packard Company | // Carol Ann Krug Graves, Hewlett-Packard Company |
// (carolann_graves@hp.com) | // (carolann_graves@hp.com) |
|
// Dave Sudlik, IBM (dsudlik@us.ibm.com) |
|
// David Dillard, VERITAS Software Corp. |
|
// (david.dillard@veritas.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
return (_rep == 0)? true : false; | return (_rep == 0)? true : false; |
} | } |
| |
|
String CIMObject::toString () const |
|
{ |
|
Array<char> out; |
|
|
|
_checkRep(); |
|
_rep->toXml(out); |
|
|
|
return out.getData(); |
|
} |
|
|
Boolean CIMObject::isClass () const | Boolean CIMObject::isClass () const |
{ | { |
try | try |
|
|
const CIMClass c (*this); | const CIMClass c (*this); |
return true; | return true; |
} | } |
catch (DynamicCastFailedException) |
catch (DynamicCastFailedException&) |
{ | { |
return false; | return false; |
} | } |
|
|
const CIMInstance i (*this); | const CIMInstance i (*this); |
return true; | return true; |
} | } |
catch (DynamicCastFailedException) |
catch (DynamicCastFailedException&) |
{ | { |
return false; | return false; |
} | } |
|
|
return (_rep == 0)? true : false; | return (_rep == 0)? true : false; |
} | } |
| |
|
String CIMConstObject::toString () const |
|
{ |
|
Array<char> out; |
|
|
|
_checkRep(); |
|
_rep->toXml(out); |
|
|
|
return out.getData(); |
|
} |
|
|
Boolean CIMConstObject::isClass() const | Boolean CIMConstObject::isClass() const |
{ | { |
try | try |
|
|
const CIMConstClass c(*this); | const CIMConstClass c(*this); |
return true; | return true; |
} | } |
catch (DynamicCastFailedException) |
catch (DynamicCastFailedException&) |
{ | { |
return false; | return false; |
} | } |
|
|
const CIMConstInstance i(*this); | const CIMConstInstance i(*this); |
return true; | return true; |
} | } |
catch (DynamicCastFailedException) |
catch (DynamicCastFailedException&) |
{ | { |
return false; | return false; |
} | } |