version 1.13, 2008/10/17 12:47:16
|
version 1.14, 2008/10/30 17:28:51
|
|
|
// | // |
CIMClass omClass; | CIMClass omClass; |
instance = buildInstanceSkeleton(PEGASUS_NAMESPACENAME_INTEROP, | instance = buildInstanceSkeleton(PEGASUS_NAMESPACENAME_INTEROP, |
PEGASUS_CLASSNAME_PG_OBJECTMANAGER, omClass); |
PEGASUS_CLASSNAME_PG_OBJECTMANAGER, false, omClass); |
| |
// Set the common key properties | // Set the common key properties |
setCommonKeys(instance); | setCommonKeys(instance); |
|
|
// write instance to the repository | // write instance to the repository |
CIMObjectPath instancePath = repository->createInstance( | CIMObjectPath instancePath = repository->createInstance( |
PEGASUS_NAMESPACENAME_INTEROP, instance); | PEGASUS_NAMESPACENAME_INTEROP, instance); |
|
// Get an updated copy of the instance that was saved |
|
instance = repository->getInstance( |
|
PEGASUS_NAMESPACENAME_INTEROP, instancePath, false); |
instance.setPath(instancePath); | instance.setPath(instancePath); |
} | } |
| |
|
|
CIMClass targetClass; | CIMClass targetClass; |
CIMInstance instanceskel = buildInstanceSkeleton( | CIMInstance instanceskel = buildInstanceSkeleton( |
PEGASUS_NAMESPACENAME_INTEROP, | PEGASUS_NAMESPACENAME_INTEROP, |
PEGASUS_CLASSNAME_PG_COMMMECHANISMFORMANAGER, targetClass); |
PEGASUS_CLASSNAME_PG_COMMMECHANISMFORMANAGER, true, targetClass); |
for (Uint32 i = 0, n = commInstances.size(); i < n; ++i) | for (Uint32 i = 0, n = commInstances.size(); i < n; ++i) |
{ | { |
CIMInstance instance = instanceskel.clone(); | CIMInstance instance = instanceskel.clone(); |