version 1.37, 2001/07/01 21:40:39
|
version 1.38, 2001/07/02 01:50:10
|
|
|
Boolean includeClassOrigin, | Boolean includeClassOrigin, |
const Array<String>& propertyList) | const Array<String>& propertyList) |
{ | { |
|
PEGASUS_TRACE; |
Array<CIMReference> names = associatorNames( | Array<CIMReference> names = associatorNames( |
nameSpace, | nameSpace, |
objectName, | objectName, |
|
|
role, | role, |
resultRole); | resultRole); |
| |
|
PEGASUS_OUT(names.size()); |
|
PEGASUS_TRACE; |
Array<CIMObjectWithPath> result; | Array<CIMObjectWithPath> result; |
| |
for (Uint32 i = 0, n = names.size(); i < n; i++) | for (Uint32 i = 0, n = names.size(); i < n; i++) |
{ | { |
|
PEGASUS_TRACE; |
String tmpNameSpace = names[i].getNameSpace(); | String tmpNameSpace = names[i].getNameSpace(); |
| |
if (tmpNameSpace.size() == 0) | if (tmpNameSpace.size() == 0) |
|
|
String assocFileName = _MakeAssocPath(nameSpace, _repositoryRoot); | String assocFileName = _MakeAssocPath(nameSpace, _repositoryRoot); |
Array<String> associatorNames; | Array<String> associatorNames; |
| |
if (!AssocTable::getAssociatorNames( |
// The return value of this function is ignored since it is okay for |
|
// the given object not to have any associators (in this case we just |
|
// return a zero-sized array of associators. |
|
|
|
AssocTable::getAssociatorNames( |
assocFileName, | assocFileName, |
objectName.toString(), | objectName.toString(), |
assocClass, | assocClass, |
resultClass, | resultClass, |
role, | role, |
resultRole, | resultRole, |
associatorNames)) |
associatorNames); |
{ |
|
throw PEGASUS_CIM_EXCEPTION(FAILED, "associators not found for: " |
|
+ objectName.toString()); |
|
} |
|
| |
Array<CIMReference> result; | Array<CIMReference> result; |
|
|
for (Uint32 i = 0, n = associatorNames.size(); i < n; i++) | for (Uint32 i = 0, n = associatorNames.size(); i < n; i++) |
result.append(associatorNames[i]); | result.append(associatorNames[i]); |
| |