version 1.64, 2002/08/08 18:30:00
|
version 1.65, 2002/08/14 22:32:23
|
|
|
CIMScope XmlReader::getOptionalScope(XmlParser& parser) | CIMScope XmlReader::getOptionalScope(XmlParser& parser) |
{ | { |
XmlEntry entry; | XmlEntry entry; |
|
CIMScope scope; |
| |
if (!parser.next(entry)) | if (!parser.next(entry)) |
return false; |
return scope; // No SCOPE element found; return the empty scope |
| |
Boolean isEmptyTag = entry.type == XmlEntry::EMPTY_TAG; | Boolean isEmptyTag = entry.type == XmlEntry::EMPTY_TAG; |
| |
|
|
entry.type != XmlEntry::START_TAG) || | entry.type != XmlEntry::START_TAG) || |
strcmp(entry.text, "SCOPE") != 0) | strcmp(entry.text, "SCOPE") != 0) |
{ | { |
|
// No SCOPE element found; return the empty scope |
parser.putBack(entry); | parser.putBack(entry); |
return 0; |
return scope; |
} | } |
| |
Uint32 line = parser.getLine(); | Uint32 line = parser.getLine(); |
CIMScope scope = CIMScope (); |
|
| |
if (getCimBooleanAttribute(line, entry, "SCOPE", "CLASS", false, false)) | if (getCimBooleanAttribute(line, entry, "SCOPE", "CLASS", false, false)) |
scope.addScope (CIMScope::CLASS); | scope.addScope (CIMScope::CLASS); |