version 1.29, 2007/10/23 17:42:56
|
version 1.30, 2008/01/30 18:56:21
|
|
|
| |
if (_isTyped) | if (_isTyped) |
{ | { |
// If the property type is CIMObject, then |
XmlWriter::appendParamTypeAndEmbeddedObjAttrib(out, type); |
// encode the property in CIM-XML as a string with the EMBEDDEDOBJECT |
|
// attribute (there is not currently a CIM-XML "object" datatype) |
|
// else |
|
// output the real type |
|
if (type == CIMTYPE_OBJECT) |
|
{ |
|
out << STRLIT(" PARAMTYPE=\"string\" EMBEDDEDOBJECT=\"object\""); |
|
} |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
else if (type == CIMTYPE_INSTANCE) |
|
{ |
|
out << STRLIT(" PARAMTYPE=\"string\""); |
|
out << STRLIT(" EMBEDDEDOBJECT=\"instance\""); |
|
} |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
else |
|
{ |
|
out << STRLIT(" PARAMTYPE=\"") << cimTypeToString (type); |
|
out.append('"'); |
|
} |
|
} | } |
| |
out << STRLIT(">\n"); | out << STRLIT(">\n"); |