(file) Return to InteropAssociationProvider.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ControlProviders / InteropProvider

Diff for /pegasus/src/Pegasus/ControlProviders/InteropProvider/InteropAssociationProvider.cpp between version 1.10.2.1 and 1.11

version 1.10.2.1, 2009/08/18 17:01:57 version 1.11, 2009/03/02 14:19:15
Line 50 
Line 50 
 #include "InteropProvider.h" #include "InteropProvider.h"
 #include "InteropProviderUtils.h" #include "InteropProviderUtils.h"
 #include "InteropConstants.h" #include "InteropConstants.h"
 #include <Pegasus/Common/ArrayIterator.h>  
  
 PEGASUS_USING_STD; PEGASUS_USING_STD;
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
Line 117 
Line 116 
             targetRole,             targetRole,
             CIMPropertyList(),             CIMPropertyList(),
             resultClass);             resultClass);
           for (Uint32 j = 0, n = refs.size(); j < n; ++j)
         if( refs.size() )  
         {  
             Array<CIMInstance> refObjs =  
                 getReferencedInstances(refs,targetRole,context,propertyList);  
             ConstArrayIterator<CIMInstance> refsIterator(refObjs);  
             for(Uint32 i = 0; i < refsIterator.size(); i++)  
             {             {
                 handler.deliver(refsIterator[i]);              CIMInstance & currentRef = refs[j];
             }              // Retrieve the "other side" of the association
               CIMObjectPath currentTarget = getRequiredValue<CIMObjectPath>(
                   currentRef,
                   targetRole);
               CIMInstance tmpInstance = localGetInstance(
                   context,
                   currentTarget,
                   propertyList);
               tmpInstance.setPath(currentTarget);
               handler.deliver(tmpInstance);
         }         }
   
         if (numIterations == 2)         if (numIterations == 2)
         {         {
             originRole = String("Dependent");             originRole = String("Dependent");
Line 270 
Line 271 
             tmpTarget);             tmpTarget);
         for (Uint32 j = 0, n = refs.size(); j < n; ++j)         for (Uint32 j = 0, n = refs.size(); j < n; ++j)
         {         {
               refs[j].filter(includeQualifiers, includeClassOrigin, propertyList);
             handler.deliver((CIMObject)refs[j]);             handler.deliver((CIMObject)refs[j]);
         }         }
         if (numIterations == 2)         if (numIterations == 2)


Legend:
Removed from v.1.10.2.1  
changed lines
  Added in v.1.11

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2