version 1.21, 2011/02/17 14:22:42
|
version 1.22, 2011/03/29 05:15:47
|
|
|
{ | { |
return _rep->propertyNames; | return _rep->propertyNames; |
} | } |
void CIMPropertyList::fillCIMNameTags() |
|
|
Uint32 CIMPropertyList::getCIMNameTag(Uint32 index) const |
|
{ |
|
return _rep->cimNameTags[index]; |
|
} |
|
void CIMPropertyList::append(Array<String> & propertyListArray) |
{ | { |
_rep = _copyOnWriteCIMPropertyListRep(_rep); | _rep = _copyOnWriteCIMPropertyListRep(_rep); |
|
Array<Uint32> cimNameTags; |
if((!_rep->isNull) && (!_rep->isCimNameTagsUpdated)) |
Array<CIMName> cimNameArray; |
|
for (Uint32 i = 0; i < propertyListArray.size(); i++) |
|
{ |
|
CIMName name(propertyListArray[i]); |
|
Uint32 tag = generateCIMNameTag(name); |
|
Boolean dupFound=false; |
|
for(Uint32 j=0;j<cimNameTags.size();j++) |
{ | { |
for(Uint32 i=0;i<_rep->propertyNames.size();i++) |
if ((tag == cimNameTags[j]) && (name == cimNameArray[j])) |
{ | { |
_rep->cimNameTags.append( |
dupFound = true; |
generateCIMNameTag(_rep->propertyNames[i])); |
break; |
} | } |
|
} |
|
if(!dupFound) |
|
{ |
|
cimNameTags.append(tag); |
|
cimNameArray.append(name); |
|
} |
|
} |
|
if(cimNameTags.size() != 0 ) |
|
{ |
|
_rep->cimNameTags.appendArray(cimNameTags); |
|
_rep->propertyNames = cimNameArray; |
_rep->isCimNameTagsUpdated = true; | _rep->isCimNameTagsUpdated = true; |
} | } |
|
_rep->isNull = false; |
} | } |
Uint32 CIMPropertyList::getCIMNameTag(Uint32 index) const |
|
|
void CIMPropertyList::appendCIMNameTag(Uint32 nameTag) |
{ | { |
return _rep->cimNameTags[index]; |
_rep = _copyOnWriteCIMPropertyListRep(_rep); |
|
_rep->cimNameTags.append(nameTag); |
} | } |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |