version 1.34, 2006/11/30 04:29:37
|
version 1.34.4.2, 2007/10/29 06:59:52
|
|
|
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
//NOCHKSRC |
|
|
#include "CMPI_Version.h" | #include "CMPI_Version.h" |
| |
#include "CMPI_Broker.h" | #include "CMPI_Broker.h" |
|
|
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
static const CMPIUint32 MB_CAPABILITIES = |
|
# ifdef CMPI_VER_200 |
|
CMPI_MB_Supports_Extended_Error | |
|
# endif |
|
CMPI_MB_BasicRead | CMPI_MB_BasicWrite | CMPI_MB_InstanceManipulation | |
|
CMPI_MB_AssociationTraversal | CMPI_MB_QueryNormalization | |
|
CMPI_MB_Indications | CMPI_MB_BasicQualifierSupport | |
|
CMPI_MB_OSEncapsulationSupport |
|
# ifndef PEGASUS_DISABLE_EXECQUERY |
|
| CMPI_MB_QueryExecution |
|
# endif |
|
; |
|
|
#define DDD(X) if (_cmpi_trace) X; | #define DDD(X) if (_cmpi_trace) X; |
| |
extern int _cmpi_trace; | extern int _cmpi_trace; |
|
|
String(query), | String(query), |
String(lang)); | String(lang)); |
if (rc) CMSetStatus(rc,CMPI_RC_OK); | if (rc) CMSetStatus(rc,CMPI_RC_OK); |
CMPI_Object *obj = |
return reinterpret_cast<CMPIEnumeration*> (new CMPI_Object( |
new CMPI_Object(new CMPI_ObjEnumeration(new Array<CIMObject>(en))); |
new CMPI_ObjEnumeration(new Array<CIMObject>(en)))); |
return (CMPI_ObjEnumeration *)obj->getHdl(); |
|
| |
} | } |
catch (const CIMException &e) { | catch (const CIMException &e) { |
|
|
(*aInst)[index].setPath(orgCop); | (*aInst)[index].setPath(orgCop); |
} | } |
| |
CMPI_Object *obj = new CMPI_Object(new CMPI_InstEnumeration(aInst)); |
return reinterpret_cast<CMPIEnumeration*> |
|
(new CMPI_Object(new CMPI_InstEnumeration(aInst))); |
/*CMPI_Object *obj = |
|
new CMPI_Object(new CMPI_InstEnumeration(new Array<CIMInstance>(en)));*/ |
|
// End of workaround for bugzilla 4677 |
|
|
|
return (CMPI_InstEnumeration*)obj->getHdl(); |
|
| |
} | } |
catch (const CIMException &e) { | catch (const CIMException &e) { |
|
|
(*aObj)[index].setNameSpace(CM_ObjectPath(cop)->getNameSpace()); | (*aObj)[index].setNameSpace(CM_ObjectPath(cop)->getNameSpace()); |
} | } |
| |
CMPI_Object *obj = new CMPI_Object(new CMPI_OpEnumeration(aObj)); |
return reinterpret_cast<CMPIEnumeration*> |
|
(new CMPI_Object(new CMPI_OpEnumeration(aObj))); |
return (CMPI_OpEnumeration *)obj->getHdl(); |
|
| |
} | } |
catch (const CIMException &e) { | catch (const CIMException &e) { |
|
|
(*aInst)[index].setPath(orgCop); | (*aInst)[index].setPath(orgCop); |
} | } |
| |
CMPI_Object *obj = new CMPI_Object(new CMPI_ObjEnumeration(aInst)); |
return reinterpret_cast<CMPIEnumeration*> |
|
(new CMPI_Object(new CMPI_ObjEnumeration(aInst))); |
/*CMPI_Object *obj = |
|
new CMPI_Object(new CMPI_ObjEnumeration(new Array<CIMObject>(en)));*/ |
|
// End of workaround for bugzilla 4677 |
|
|
|
return (CMPI_ObjEnumeration *)obj->getHdl(); |
|
| |
} | } |
catch (const CIMException &e) { | catch (const CIMException &e) { |
|
|
{ | { |
(*aObj)[index].setNameSpace(CM_ObjectPath(cop)->getNameSpace()); | (*aObj)[index].setNameSpace(CM_ObjectPath(cop)->getNameSpace()); |
} | } |
|
return reinterpret_cast<CMPIEnumeration*> |
CMPI_Object *obj = new CMPI_Object(new CMPI_OpEnumeration(aObj)); |
(new CMPI_Object(new CMPI_OpEnumeration(aObj))); |
|
|
return (CMPI_OpEnumeration *)obj->getHdl(); |
|
} | } |
catch (const CIMException &e) { | catch (const CIMException &e) { |
DDD(cout<<"### exception: mbAssociatorsNames - code: "<<e.getCode()<<" msg: "<<e.getMessage()<<endl); | DDD(cout<<"### exception: mbAssociatorsNames - code: "<<e.getCode()<<" msg: "<<e.getMessage()<<endl); |
|
|
(*aInst)[index].setPath(orgCop); | (*aInst)[index].setPath(orgCop); |
} | } |
| |
CMPI_Object *obj = new CMPI_Object(new CMPI_ObjEnumeration(aInst)); |
return reinterpret_cast<CMPIEnumeration*> |
|
(new CMPI_Object(new CMPI_ObjEnumeration(aInst))); |
/*CMPI_Object *obj = |
|
new CMPI_Object(new CMPI_ObjEnumeration(new Array<CIMObject>(en)));*/ |
|
// End of workaround for bugzilla 4677 |
|
|
|
return (CMPI_ObjEnumeration *)obj->getHdl(); |
|
} | } |
catch (const CIMException &e) { | catch (const CIMException &e) { |
DDD(cout<<"### exception: mbReferences - code: "<<e.getCode()<<" msg: "<<e.getMessage()<<endl); | DDD(cout<<"### exception: mbReferences - code: "<<e.getCode()<<" msg: "<<e.getMessage()<<endl); |
|
|
{ | { |
(*aObj)[index].setNameSpace(CM_ObjectPath(cop)->getNameSpace()); | (*aObj)[index].setNameSpace(CM_ObjectPath(cop)->getNameSpace()); |
} | } |
|
return reinterpret_cast<CMPIEnumeration*> |
CMPI_Object *obj = new CMPI_Object(new CMPI_OpEnumeration(aObj)); |
(new CMPI_Object(new CMPI_OpEnumeration(aObj))); |
|
|
return (CMPI_OpEnumeration *)obj->getHdl(); |
|
} | } |
catch (const CIMException &e) { | catch (const CIMException &e) { |
DDD(cout<<"### exception: mbReferencesNames - code: "<<e.getCode()<<" msg: "<<e.getMessage()<<endl); | DDD(cout<<"### exception: mbReferencesNames - code: "<<e.getCode()<<" msg: "<<e.getMessage()<<endl); |
|
|
} | } |
| |
static CMPIBrokerFT broker_FT={ | static CMPIBrokerFT broker_FT={ |
0, // brokerClassification; |
MB_CAPABILITIES, // brokerClassification; |
CMPICurrentVersion, | CMPICurrentVersion, |
"Pegasus", | "Pegasus", |
mbPrepareAttachThread, | mbPrepareAttachThread, |