version 1.31, 2004/10/17 20:39:16
|
version 1.38, 2006/11/07 21:30:36
|
|
|
//%2004//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
// IBM Corp.; EMC Corporation, The Open Group. | // IBM Corp.; EMC Corporation, The Open Group. |
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; | // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | // 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. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec 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 |
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) |
|
// |
|
// Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
|
// Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#include "CIMClassRep.h" | #include "CIMClassRep.h" |
|
|
return (_rep == 0)? true : false; | return (_rep == 0)? true : false; |
} | } |
| |
|
String CIMObject::toString () const |
|
{ |
|
Buffer out; |
|
|
|
_checkRep(); |
|
_rep->toXml(out); |
|
out.append('\0'); |
|
|
|
return out.getData(); |
|
} |
|
|
Boolean CIMObject::isClass () const | Boolean CIMObject::isClass () const |
{ | { |
try | try |
|
|
return (_rep == 0)? true : false; | return (_rep == 0)? true : false; |
} | } |
| |
|
String CIMConstObject::toString () const |
|
{ |
|
Buffer out; |
|
|
|
_checkRep(); |
|
_rep->toXml(out); |
|
out.append('\0'); |
|
|
|
return out.getData(); |
|
} |
|
|
Boolean CIMConstObject::isClass() const | Boolean CIMConstObject::isClass() const |
{ | { |
try | try |