version 1.30, 2006/11/07 21:30:36
|
version 1.31, 2006/11/10 18:14:57
|
|
|
{ | { |
if (name.equal(_properties[i].getName())) | if (name.equal(_properties[i].getName())) |
{ | { |
return(i); |
return i; |
} | } |
} | } |
| |
return(PEG_NOT_FOUND); |
return PEG_NOT_FOUND; |
} | } |
| |
CIMProperty CIMObjectRep::getProperty(Uint32 index) | CIMProperty CIMObjectRep::getProperty(Uint32 index) |
|
|
throw IndexOutOfBoundsException(); | throw IndexOutOfBoundsException(); |
} | } |
| |
return(_properties[index]); |
return _properties[index]; |
} | } |
| |
void CIMObjectRep::removeProperty(Uint32 index) | void CIMObjectRep::removeProperty(Uint32 index) |
|
|
| |
Uint32 CIMObjectRep::getPropertyCount() const | Uint32 CIMObjectRep::getPropertyCount() const |
{ | { |
return(_properties.size()); |
return _properties.size(); |
} | } |
| |
| |
|
|
{ | { |
if (!_reference.identical(x->_reference)) | if (!_reference.identical(x->_reference)) |
{ | { |
return(false); |
return false; |
} | } |
| |
if (!_qualifiers.identical(x->_qualifiers)) | if (!_qualifiers.identical(x->_qualifiers)) |
{ | { |
return(false); |
return false; |
} | } |
| |
// Compare properties: | // Compare properties: |
|
|
| |
if (tmp1.size() != tmp2.size()) | if (tmp1.size() != tmp2.size()) |
{ | { |
return(false); |
return false; |
} | } |
| |
for (Uint32 i = 0, n = tmp1.size(); i < n; i++) | for (Uint32 i = 0, n = tmp1.size(); i < n; i++) |
{ | { |
if (!tmp1[i].identical(tmp2[i])) | if (!tmp1[i].identical(tmp2[i])) |
{ | { |
return(false); |
return false; |
} | } |
} | } |
} | } |
| |
if (_resolved != x->_resolved) | if (_resolved != x->_resolved) |
{ | { |
return(false); |
return false; |
} | } |
| |
return(true); |
return true; |
} | } |
| |
void CIMObjectRep::setPath(const CIMObjectPath& path) | void CIMObjectRep::setPath(const CIMObjectPath& path) |