version 1.110, 2006/10/27 17:47:13
|
version 1.111, 2007/02/14 21:37:07
|
|
|
const Array<Uint16> & status, | const Array<Uint16> & status, |
CIMInstance & instance) | CIMInstance & instance) |
{ | { |
|
_repository->setProperty( |
|
PEGASUS_NAMESPACENAME_INTEROP, |
|
instance.getPath(), |
|
_PROPERTY_OPERATIONALSTATUS, |
|
status); |
|
|
Uint32 pos = instance.findProperty(_PROPERTY_OPERATIONALSTATUS); | Uint32 pos = instance.findProperty(_PROPERTY_OPERATIONALSTATUS); |
| |
if (pos != PEG_NOT_FOUND) |
if (pos == PEG_NOT_FOUND) |
|
{ |
|
instance.addProperty(CIMProperty(_PROPERTY_OPERATIONALSTATUS, status)); |
|
} |
|
else |
{ | { |
instance.getProperty(pos).setValue(CIMValue(status)); | instance.getProperty(pos).setValue(CIMValue(status)); |
|
|
_repository->modifyInstance( |
|
PEGASUS_NAMESPACENAME_INTEROP, |
|
instance, |
|
true, |
|
CIMPropertyList()); |
|
} | } |
} | } |
| |