version 1.10.2.1, 2009/08/18 17:01:57
|
version 1.11, 2009/03/02 14:19:15
|
|
|
#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 |
|
|
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"); |
|
|
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) |