version 1.18, 2002/05/14 03:27:25
|
version 1.22, 2002/05/15 23:14:19
|
|
|
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) | // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
|
// Karl Schopmeyer, (k.schopmeyer@opengroup.org) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
| |
} | } |
| |
const CIMReference& CIMInstance::getPath() const |
const CIMObjectPath& CIMInstance::getPath() const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getPath(); | return _rep->getPath(); |
|
|
return _rep->existsProperty(name); | return _rep->existsProperty(name); |
} | } |
| |
CIMProperty CIMInstance::getProperty(Uint32 pos) |
CIMProperty CIMInstance::getProperty(Uint32 pos) throw(OutOfBounds) |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getProperty(pos); | return _rep->getProperty(pos); |
} | } |
| |
CIMConstProperty CIMInstance::getProperty(Uint32 pos) const |
CIMConstProperty CIMInstance::getProperty(Uint32 pos) const throw(OutOfBounds) |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getProperty(pos); | return _rep->getProperty(pos); |
} | } |
| |
void CIMInstance::removeProperty(Uint32 pos) |
void CIMInstance::removeProperty(Uint32 pos) throw(OutOfBounds) |
{ | { |
_checkRep(); | _checkRep(); |
_rep->removeProperty(pos); | _rep->removeProperty(pos); |
|
|
_rep->resolve(declContext, nameSpace, cimClassOut, propagateQualifiers); | _rep->resolve(declContext, nameSpace, cimClassOut, propagateQualifiers); |
} | } |
| |
void CIMInstance::toXml(Array<Sint8>& out) const |
|
{ |
|
_checkRep(); |
|
_rep->toXml(out); |
|
} |
|
|
|
void CIMInstance::print(PEGASUS_STD(ostream)& o) const |
|
{ |
|
_checkRep(); |
|
_rep->print(o); |
|
} |
|
|
|
void CIMInstance::toMof(Array<Sint8>& out) const |
|
{ |
|
_checkRep(); |
|
_rep->toMof(out); |
|
} |
|
|
|
CIMInstance CIMInstance::clone() const | CIMInstance CIMInstance::clone() const |
{ | { |
return CIMInstance((CIMInstanceRep*)(_rep->clone())); | return CIMInstance((CIMInstanceRep*)(_rep->clone())); |
} | } |
| |
CIMReference CIMInstance::getInstanceName(const CIMConstClass& cimClass) const |
CIMObjectPath CIMInstance::getInstanceName(const CIMConstClass& cimClass) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getInstanceName(cimClass); | return _rep->getInstanceName(cimClass); |
|
|
return _rep->equalClassName(classname); | return _rep->equalClassName(classname); |
} | } |
| |
const CIMReference& CIMConstInstance::getPath() const |
const CIMObjectPath& CIMConstInstance::getPath() const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getPath(); | return _rep->getPath(); |
|
|
return (_rep == 0)? true : false; | return (_rep == 0)? true : false; |
} | } |
| |
void CIMConstInstance::toXml(Array<Sint8>& out) const |
|
{ |
|
_checkRep(); |
|
_rep->toXml(out); |
|
} |
|
|
|
void CIMConstInstance::print(PEGASUS_STD(ostream)& o) const |
|
{ |
|
_checkRep(); |
|
_rep->print(o); |
|
} |
|
|
|
Boolean CIMConstInstance::identical(const CIMConstInstance& x) const | Boolean CIMConstInstance::identical(const CIMConstInstance& x) const |
{ | { |
x._checkRep(); | x._checkRep(); |
|
|
return CIMInstance((CIMInstanceRep*)(_rep->clone())); | return CIMInstance((CIMInstanceRep*)(_rep->clone())); |
} | } |
| |
CIMReference CIMConstInstance::getInstanceName(const CIMConstClass& cimClass) const |
CIMObjectPath CIMConstInstance::getInstanceName(const CIMConstClass& cimClass) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getInstanceName(cimClass); | return _rep->getInstanceName(cimClass); |