version 1.31, 2002/02/23 03:47:22
|
version 1.32, 2002/02/25 19:01:32
|
|
|
// Get VALUE.ARRAY open tag: | // Get VALUE.ARRAY open tag: |
| |
XmlEntry entry; | XmlEntry entry; |
|
Array<const char*> stringArray; |
| |
if (!testStartTagOrEmptyTag(parser, entry, "VALUE.ARRAY")) | if (!testStartTagOrEmptyTag(parser, entry, "VALUE.ARRAY")) |
return false; | return false; |
| |
if (entry.type == XmlEntry::EMPTY_TAG) |
if (entry.type != XmlEntry::EMPTY_TAG) |
return true; |
{ |
|
|
// For each VALUE element: | // For each VALUE element: |
| |
Array<const char*> stringArray; |
|
|
|
while (testStartTagOrEmptyTag(parser, entry, "VALUE")) | while (testStartTagOrEmptyTag(parser, entry, "VALUE")) |
{ | { |
if (entry.type == XmlEntry::EMPTY_TAG) | if (entry.type == XmlEntry::EMPTY_TAG) |
|
|
} | } |
| |
expectEndTag(parser, "VALUE.ARRAY"); | expectEndTag(parser, "VALUE.ARRAY"); |
|
} |
| |
value = stringArrayToValue(parser.getLine(), stringArray, type); | value = stringArrayToValue(parser.getLine(), stringArray, type); |
return true; | return true; |
|
|
CIMValue& value) | CIMValue& value) |
{ | { |
XmlEntry entry; | XmlEntry entry; |
|
Array<CIMReference> referenceArray; |
|
CIMReference reference; |
| |
value.clear(); | value.clear(); |
| |
|
|
if (!testStartTagOrEmptyTag(parser, entry, "VALUE.REFARRAY")) | if (!testStartTagOrEmptyTag(parser, entry, "VALUE.REFARRAY")) |
return false; | return false; |
| |
if (entry.type == XmlEntry::EMPTY_TAG) |
if (entry.type != XmlEntry::EMPTY_TAG) |
// ATTN-RK-P3-20020220: Should the type and array size get set in |
{ |
// the value even though it is null? (See also getValueArrayElement.) |
|
return true; |
|
|
|
// For each VALUE.REFERENCE element: | // For each VALUE.REFERENCE element: |
| |
Array<CIMReference> referenceArray; |
|
CIMReference reference; |
|
|
|
while (getValueReferenceElement(parser, reference)) | while (getValueReferenceElement(parser, reference)) |
{ | { |
referenceArray.append(reference); | referenceArray.append(reference); |
} | } |
| |
expectEndTag(parser, "VALUE.REFARRAY"); | expectEndTag(parser, "VALUE.REFARRAY"); |
|
} |
| |
value.set(referenceArray); | value.set(referenceArray); |
return true; | return true; |