version 1.1.2.10, 2009/10/21 13:13:40
|
version 1.1.2.11, 2009/10/21 15:12:50
|
|
|
// instance starts | // instance starts |
const char* clsbase = scmoInstance.inst.hdr->theClass->cls.base; | const char* clsbase = scmoInstance.inst.hdr->theClass->cls.base; |
| |
SCMO_RC rc = scmoInstance.getPropertyAt( |
scmoInstance._getPropertyAt( |
pos, | pos, |
&propertyValue, | &propertyValue, |
&propertyValueBase, | &propertyValueBase, |
|
|
| |
propertyType = propertyValue->valueType; | propertyType = propertyValue->valueType; |
| |
|
|
if (propertyValue->flags.isArray) | if (propertyValue->flags.isArray) |
{ | { |
Uint32 arraySize=propertyValue->valueArraySize; | Uint32 arraySize=propertyValue->valueArraySize; |
|
|
// encode the property in CIM-XML as a string array with the | // encode the property in CIM-XML as a string array with the |
// EmbeddedObject attribute (there is not currently a CIM-XML | // EmbeddedObject attribute (there is not currently a CIM-XML |
// "object" datatype) | // "object" datatype) |
|
|
out << STRLIT(" TYPE=\"string\""); | out << STRLIT(" TYPE=\"string\""); |
// If the Embedded Object is an instance, always add the | // If the Embedded Object is an instance, always add the |
// EmbeddedObject attribute. | // EmbeddedObject attribute. |
|
|
clsbase); | clsbase); |
} | } |
} | } |
|
|
SCMOXmlWriter::appendValueElement(out,*propertyValue,propertyValueBase); | SCMOXmlWriter::appendValueElement(out,*propertyValue,propertyValueBase); |
|
|
out << STRLIT("</PROPERTY.ARRAY>\n"); | out << STRLIT("</PROPERTY.ARRAY>\n"); |
} | } |
else if (propertyType == CIMTYPE_REFERENCE) | else if (propertyType == CIMTYPE_REFERENCE) |