version 1.107, 2009/12/15 11:39:32
|
version 1.108, 2011/02/17 14:23:33
|
|
|
p.setClassName(cls); | p.setClassName(cls); |
| |
} | } |
|
#ifdef PEGASUS_ENABLE_PROTOCOL_BINARY |
|
CIMClientRep * rep = static_cast<CIMClientRep*>(_rep); |
|
if (rep->_binaryResponse) |
|
{ |
|
inst.instanceFilter(includeQualifiers,includeClassOrigin,propertyList); |
|
} |
|
#endif |
| |
return inst; | return inst; |
} | } |
|
|
Boolean includeClassOrigin, | Boolean includeClassOrigin, |
const CIMPropertyList& propertyList) | const CIMPropertyList& propertyList) |
{ | { |
|
#ifndef PEGASUS_ENABLE_PROTOCOL_BINARY |
Array<CIMInstance> a = _rep->enumerateInstances( | Array<CIMInstance> a = _rep->enumerateInstances( |
nameSpace, | nameSpace, |
className, | className, |
|
|
includeQualifiers, | includeQualifiers, |
includeClassOrigin, | includeClassOrigin, |
propertyList).getInstances(); | propertyList).getInstances(); |
|
#else |
|
CIMResponseData respData = _rep->enumerateInstances( |
|
nameSpace, |
|
className, |
|
deepInheritance, |
|
localOnly, |
|
includeQualifiers, |
|
includeClassOrigin, |
|
propertyList); |
|
|
|
Array<CIMInstance> a = respData.getInstances(); |
|
CIMClientRep * rep = static_cast<CIMClientRep*>(_rep); |
| |
|
if (rep->_binaryResponse) |
|
{ |
|
CIMPropertyList returnedPropList = respData.getPropertyList(); |
|
for (Uint32 i = 0, n = a.size(); i < n ; i++) |
|
{ |
|
CIMInstance & inst = a[i]; |
|
inst.instanceFilter( |
|
includeQualifiers, |
|
includeClassOrigin, |
|
returnedPropList); |
|
} |
|
} |
|
#endif |
// remove name space and host name to be instance names | // remove name space and host name to be instance names |
for (Uint32 i = 0, n = a.size(); i < n ; i++) | for (Uint32 i = 0, n = a.size(); i < n ; i++) |
{ | { |
|
|
} | } |
} | } |
| |
|
|
return a; | return a; |
} | } |
| |
|
|
Boolean includeClassOrigin, | Boolean includeClassOrigin, |
const CIMPropertyList& propertyList) | const CIMPropertyList& propertyList) |
{ | { |
return _rep->associators( |
CIMResponseData respData = _rep->associators( |
nameSpace, | nameSpace, |
objectName, | objectName, |
assocClass, | assocClass, |
|
|
resultRole, | resultRole, |
includeQualifiers, | includeQualifiers, |
includeClassOrigin, | includeClassOrigin, |
propertyList).getObjects(); |
propertyList); |
|
|
|
Array<CIMObject> a = respData.getObjects(); |
|
#ifdef PEGASUS_ENABLE_PROTOCOL_BINARY |
|
CIMClientRep * rep = static_cast<CIMClientRep*>(_rep); |
|
if (rep->_binaryResponse) |
|
{ |
|
CIMPropertyList returnedPropList = respData.getPropertyList(); |
|
if ((a.size() > 0) && (a[0].isInstance())) |
|
{ |
|
for (Uint32 i = 0, n = a.size(); i < n ; i++) |
|
{ |
|
CIMObject & obj = a[i]; |
|
obj.instanceFilter( |
|
includeQualifiers, |
|
includeClassOrigin, |
|
propertyList); |
|
} |
|
} |
|
} |
|
#endif |
|
return a; |
} | } |
| |
Array<CIMObjectPath> CIMClient::associatorNames( | Array<CIMObjectPath> CIMClient::associatorNames( |
|
|
Boolean includeClassOrigin, | Boolean includeClassOrigin, |
const CIMPropertyList& propertyList) | const CIMPropertyList& propertyList) |
{ | { |
return _rep->references( |
CIMResponseData respData = _rep->references( |
nameSpace, | nameSpace, |
objectName, | objectName, |
resultClass, | resultClass, |
role, | role, |
includeQualifiers, | includeQualifiers, |
includeClassOrigin, | includeClassOrigin, |
propertyList).getObjects(); |
propertyList); |
|
Array<CIMObject> a = respData.getObjects(); |
|
|
|
#ifdef PEGASUS_ENABLE_PROTOCOL_BINARY |
|
CIMClientRep * rep = static_cast<CIMClientRep*>(_rep); |
|
if (rep->_binaryResponse) |
|
{ |
|
CIMPropertyList returnedPropList = respData.getPropertyList(); |
|
if ((a.size() > 0) && (a[0].isInstance())) |
|
{ |
|
for (Uint32 i = 0, n = a.size(); i < n ; i++) |
|
{ |
|
CIMObject & obj = a[i]; |
|
obj.instanceFilter( |
|
includeQualifiers, |
|
includeClassOrigin, |
|
propertyList); |
|
} |
|
} |
|
} |
|
#endif |
|
return a; |
} | } |
| |
Array<CIMObjectPath> CIMClient::referenceNames( | Array<CIMObjectPath> CIMClient::referenceNames( |