(file) Return to CIMPropertyList.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/CIMPropertyList.cpp between version 1.21 and 1.22

version 1.21, 2011/02/17 14:22:42 version 1.22, 2011/03/29 05:15:47
Line 180 
Line 180 
 { {
     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


Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2