version 1.11, 2009/03/02 14:19:15
|
version 1.16, 2014/08/27 23:10:10
|
|
|
// 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 |
|
|
(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; |
|
|
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"); |
|
|
(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; |
|
|
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) |