version 1.26, 2002/08/15 15:52:29
|
version 1.31, 2004/10/17 20:39:16
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2004//////////////////////////////////////////////////////////////////////// |
// | // |
// 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. |
// | // |
// 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 |
|
|
return _rep->findQualifier(name); | return _rep->findQualifier(name); |
} | } |
| |
CIMQualifier CIMObject::getQualifier(Uint32 pos) |
CIMQualifier CIMObject::getQualifier(Uint32 index) |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getQualifier(pos); |
return _rep->getQualifier(index); |
} | } |
| |
CIMConstQualifier CIMObject::getQualifier(Uint32 pos) const |
CIMConstQualifier CIMObject::getQualifier(Uint32 index) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getQualifier(pos); |
return _rep->getQualifier(index); |
} | } |
| |
void CIMObject::removeQualifier(Uint32 pos) |
void CIMObject::removeQualifier(Uint32 index) |
{ | { |
_checkRep(); | _checkRep(); |
_rep->removeQualifier(pos); |
_rep->removeQualifier(index); |
} | } |
| |
Uint32 CIMObject::getQualifierCount() const | Uint32 CIMObject::getQualifierCount() const |
|
|
return _rep->findProperty(name); | return _rep->findProperty(name); |
} | } |
| |
CIMProperty CIMObject::getProperty(Uint32 pos) |
CIMProperty CIMObject::getProperty(Uint32 index) |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getProperty(pos); |
return _rep->getProperty(index); |
} | } |
| |
CIMConstProperty CIMObject::getProperty(Uint32 pos) const |
CIMConstProperty CIMObject::getProperty(Uint32 index) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getProperty(pos); |
return _rep->getProperty(index); |
} | } |
| |
void CIMObject::removeProperty(Uint32 pos) |
void CIMObject::removeProperty(Uint32 index) |
{ | { |
_checkRep(); | _checkRep(); |
_rep->removeProperty(pos); |
_rep->removeProperty(index); |
} | } |
| |
Uint32 CIMObject::getPropertyCount() const | Uint32 CIMObject::getPropertyCount() const |
|
|
const CIMClass c (*this); | const CIMClass c (*this); |
return true; | return true; |
} | } |
catch (DynamicCastFailed) |
catch (DynamicCastFailedException&) |
{ | { |
return false; | return false; |
} | } |
|
|
const CIMInstance i (*this); | const CIMInstance i (*this); |
return true; | return true; |
} | } |
catch (DynamicCastFailed) |
catch (DynamicCastFailedException&) |
{ | { |
return false; | return false; |
} | } |
|
|
void CIMObject::_checkRep() const | void CIMObject::_checkRep() const |
{ | { |
if (!_rep) | if (!_rep) |
throw UninitializedObject (); |
throw UninitializedObjectException(); |
} | } |
| |
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// |
|
|
return _rep->findQualifier(name); | return _rep->findQualifier(name); |
} | } |
| |
CIMConstQualifier CIMConstObject::getQualifier(Uint32 pos) const |
CIMConstQualifier CIMConstObject::getQualifier(Uint32 index) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getQualifier(pos); |
return _rep->getQualifier(index); |
} | } |
| |
Uint32 CIMConstObject::getQualifierCount() const | Uint32 CIMConstObject::getQualifierCount() const |
|
|
return _rep->findProperty(name); | return _rep->findProperty(name); |
} | } |
| |
CIMConstProperty CIMConstObject::getProperty(Uint32 pos) const |
CIMConstProperty CIMConstObject::getProperty(Uint32 index) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getProperty(pos); |
return _rep->getProperty(index); |
} | } |
| |
Uint32 CIMConstObject::getPropertyCount() const | Uint32 CIMConstObject::getPropertyCount() const |
|
|
return (_rep == 0)? true : false; | return (_rep == 0)? true : false; |
} | } |
| |
|
Boolean CIMConstObject::isClass() const |
|
{ |
|
try |
|
{ |
|
const CIMConstClass c(*this); |
|
return true; |
|
} |
|
catch (DynamicCastFailedException&) |
|
{ |
|
return false; |
|
} |
|
} |
|
|
|
Boolean CIMConstObject::isInstance() const |
|
{ |
|
try |
|
{ |
|
const CIMConstInstance i(*this); |
|
return true; |
|
} |
|
catch (DynamicCastFailedException&) |
|
{ |
|
return false; |
|
} |
|
} |
|
|
Boolean CIMConstObject::identical(const CIMConstObject& x) const | Boolean CIMConstObject::identical(const CIMConstObject& x) const |
{ | { |
x._checkRep(); | x._checkRep(); |
|
|
void CIMConstObject::_checkRep() const | void CIMConstObject::_checkRep() const |
{ | { |
if (!_rep) | if (!_rep) |
throw UninitializedObject (); |
throw UninitializedObjectException(); |
} | } |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |