(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.11 and 1.16

version 1.11, 2009/03/02 14:19:15 version 1.16, 2014/08/27 23:10:10
Line 47 
Line 47 
 //  use we added a number of traces to help diagnostics. //  use we added a number of traces to help diagnostics.
 /////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
  
   
 #include "InteropProvider.h" #include "InteropProvider.h"
 #include "InteropProviderUtils.h" #include "InteropProviderUtils.h"
 #include "InteropConstants.h" #include "InteropConstants.h"
   #include <Pegasus/Common/ArrayIterator.h>
   #include <Pegasus/Common/Pegasus_inl.h>
  
 PEGASUS_USING_STD; PEGASUS_USING_STD;
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
Line 86 
Line 89 
         (const char *)resultRole.getCString(),         (const char *)resultRole.getCString(),
                       boolToString(includeQualifiers),                       boolToString(includeQualifiers),
                       boolToString(includeClassOrigin),                       boolToString(includeClassOrigin),
         (const char *)propertyListToString(propertyList).getCString()));          (const char *)propertyList.toString().getCString()));
  
     handler.processing();     handler.processing();
     String originRole = role;     String originRole = role;
Line 116 
Line 119 
             targetRole,             targetRole,
             CIMPropertyList(),             CIMPropertyList(),
             resultClass);             resultClass);
         for (Uint32 j = 0, n = refs.size(); j < n; ++j)  
           if( refs.size() )
         {         {
             CIMInstance & currentRef = refs[j];              Array<CIMInstance> refObjs =
             // Retrieve the "other side" of the association                  getReferencedInstances(refs,targetRole,context,propertyList);
             CIMObjectPath currentTarget = getRequiredValue<CIMObjectPath>(              ConstArrayIterator<CIMInstance> refsIterator(refObjs);
                 currentRef,              for(Uint32 i = 0; i < refsIterator.size(); i++)
                 targetRole);              {
             CIMInstance tmpInstance = localGetInstance(                  handler.deliver(refsIterator[i]);
                 context,  
                 currentTarget,  
                 propertyList);  
             tmpInstance.setPath(currentTarget);  
             handler.deliver(tmpInstance);  
         }         }
           }
   
         if (numIterations == 2)         if (numIterations == 2)
         {         {
             originRole = String("Dependent");             originRole = String("Dependent");
Line 242 
Line 243 
         (const char *)role.getCString(),         (const char *)role.getCString(),
                       boolToString(includeQualifiers),                       boolToString(includeQualifiers),
                       boolToString(includeClassOrigin),                       boolToString(includeClassOrigin),
         (const char *)propertyListToString(propertyList).getCString()));          (const char *)propertyList.toString().getCString()));
  
     handler.processing();     handler.processing();
     String tmpRole = role;     String tmpRole = role;
Line 271 
Line 272 
             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.11  
changed lines
  Added in v.1.16

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2