version 1.28.4.10, 2009/10/27 18:38:12
|
version 1.28.4.11, 2009/10/30 13:04:14
|
|
|
// Since we make no difference between ObjectPath and Instance, | // Since we make no difference between ObjectPath and Instance, |
// we simply clone using the ObjectPathOnly option. | // we simply clone using the ObjectPathOnly option. |
SCMOInstance* nRef = new SCMOInstance(ref->clone(true)); | SCMOInstance* nRef = new SCMOInstance(ref->clone(true)); |
|
CMPI_Object* obj = |
|
new CMPI_Object(nRef,CMPI_Object::ObjectTypeObjectPath); |
|
obj->unlink(); |
CMPIObjectPath* cmpiObjPath = | CMPIObjectPath* cmpiObjPath = |
reinterpret_cast<CMPIObjectPath *> |
reinterpret_cast<CMPIObjectPath *>(obj); |
(new CMPI_Object(nRef,CMPI_Object::ObjectTypeObjectPath)); |
|
CMSetStatus(rc,CMPI_RC_OK); | CMSetStatus(rc,CMPI_RC_OK); |
return cmpiObjPath; | return cmpiObjPath; |
} | } |
|
|
CMPIObjectPathFT *CMPI_ObjectPathOnStack_Ftab = &objectPathOnStack_FT; | CMPIObjectPathFT *CMPI_ObjectPathOnStack_Ftab = &objectPathOnStack_FT; |
| |
| |
|
CMPI_ObjectPathOnStack::CMPI_ObjectPathOnStack(const SCMOInstance* cop) |
|
{ |
|
hdl = (void*)cop; |
|
ft = CMPI_ObjectPathOnStack_Ftab; |
|
} |
|
|
CMPI_ObjectPathOnStack::CMPI_ObjectPathOnStack(const SCMOInstance& cop) | CMPI_ObjectPathOnStack::CMPI_ObjectPathOnStack(const SCMOInstance& cop) |
{ | { |
hdl = (void*)&cop; |
hdl = (void*) new SCMOInstance(cop); |
ft = CMPI_ObjectPathOnStack_Ftab; | ft = CMPI_ObjectPathOnStack_Ftab; |
} | } |
| |
|
CMPI_ObjectPathOnStack::~CMPI_ObjectPathOnStack() |
|
{ |
|
if (hdl) |
|
{ |
|
delete((SCMOInstance*)hdl); |
|
} |
|
} |
|
|
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |