version 1.55, 2002/05/30 15:55:19
|
version 1.56, 2002/05/30 21:45:18
|
|
|
CIMType type = getCimTypeAttribute(parser.getLine(), entry, "PROPERTY"); | CIMType type = getCimTypeAttribute(parser.getLine(), entry, "PROPERTY"); |
| |
// Create property: Sets type and !isarray | // Create property: Sets type and !isarray |
// ATTN: KS P1 change to use the correct constructor |
|
| |
CIMValue value; |
CIMValue value(type, false); |
value.setNullValue(type, false); |
property = CIMProperty(name, value, 0, String(), classOrigin, propagated); |
property = CIMProperty( |
|
name, value, 0, String(), classOrigin, propagated); |
|
| |
if (!empty) | if (!empty) |
{ | { |
|
|
| |
// Create property: | // Create property: |
| |
// ATTN: KS P1 4 March 2002 Change to use correct constructor. |
CIMValue value(type, true, arraySize); |
// ATTN: KS P3 4 March 2002. Why create extra value. Use same one. |
|
|
|
CIMValue nullValue; |
|
nullValue.setNullValue(type, true, arraySize); |
|
property = CIMProperty( | property = CIMProperty( |
name, nullValue, arraySize, String(), classOrigin, propagated); |
name, value, arraySize, String(), classOrigin, propagated); |
| |
if (!empty) | if (!empty) |
{ | { |
|
|
| |
// Get value: | // Get value: |
| |
// ATTN: KS P1 4 March 2002. Does not set array type into value. |
|
// ATTN: Thus, if it returns false, the CIMValue is nothing. |
|
CIMValue value; |
|
|
|
if (getValueArrayElement(parser, type, value)) | if (getValueArrayElement(parser, type, value)) |
{ | { |
if (arraySize && arraySize != value.getArraySize()) | if (arraySize && arraySize != value.getArraySize()) |