version 1.54, 2002/05/15 23:14:21
|
version 1.55, 2002/05/30 15:55:19
|
|
|
#include "CIMClass.h" | #include "CIMClass.h" |
#include "CIMInstance.h" | #include "CIMInstance.h" |
#include "CIMObject.h" | #include "CIMObject.h" |
#include "CIMNamedInstance.h" |
|
#include "CIMParamValue.h" | #include "CIMParamValue.h" |
| |
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
|
|
| |
Boolean XmlReader::getNamedInstanceElement( | Boolean XmlReader::getNamedInstanceElement( |
XmlParser& parser, | XmlParser& parser, |
CIMNamedInstance& namedInstance) |
CIMInstance& namedInstance) |
{ | { |
XmlEntry entry; | XmlEntry entry; |
| |
|
|
"expected INSTANCENAME element"); | "expected INSTANCENAME element"); |
} | } |
| |
CIMInstance instance; |
|
|
|
// Get INSTANCE elements: | // Get INSTANCE elements: |
| |
if (!getInstanceElement(parser, instance)) |
if (!getInstanceElement(parser, namedInstance)) |
{ | { |
throw XmlValidationError(parser.getLine(), | throw XmlValidationError(parser.getLine(), |
"expected INSTANCE element"); | "expected INSTANCE element"); |
|
|
| |
expectEndTag(parser, "VALUE.NAMEDINSTANCE"); | expectEndTag(parser, "VALUE.NAMEDINSTANCE"); |
| |
namedInstance.set(instanceName, instance); |
namedInstance.setPath (instanceName); |
| |
return true; | return true; |
} | } |