version 1.116, 2005/02/05 22:59:24
|
version 1.117, 2005/02/28 21:12:22
|
|
|
XmlWriter::appendValueReferenceElement(out, x, true); | XmlWriter::appendValueReferenceElement(out, x, true); |
} | } |
| |
// DJS -- temporary for testing until encode/decode issues resolved |
|
inline void _xmlWritter_appendValue(Array<char>& out, const CIMObject& x) | inline void _xmlWritter_appendValue(Array<char>& out, const CIMObject& x) |
{ | { |
out << x.toString(); | out << x.toString(); |
|
|
break; | break; |
} | } |
| |
// DJS -- temporary for testing until encode/decode issues resolved |
|
case CIMTYPE_OBJECT: | case CIMTYPE_OBJECT: |
{ | { |
Array<CIMObject> a; | Array<CIMObject> a; |
|
|
break; | break; |
} | } |
| |
// DJS -- temporary for testing until encode/decode issues resolved |
|
case CIMTYPE_OBJECT: | case CIMTYPE_OBJECT: |
{ | { |
CIMObject v; | CIMObject v; |
|
|
// | // |
// <!ELEMENT RETURNVALUE (VALUE|VALUE.REFERENCE)> | // <!ELEMENT RETURNVALUE (VALUE|VALUE.REFERENCE)> |
// <!ATTLIST RETURNVALUE | // <!ATTLIST RETURNVALUE |
|
// %EmbeddedObject; #IMPLIED |
// %ParamType;> | // %ParamType;> |
// | // |
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
|
|
out << "<RETURNVALUE"; | out << "<RETURNVALUE"; |
| |
CIMType type = value.getType(); | CIMType type = value.getType(); |
|
// If the property type is CIMObject, then |
|
// 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 << " PARAMTYPE=\"string\""; |
|
out << " EMBEDDEDOBJECT=\"object\""; |
|
} |
|
else |
|
{ |
out << " PARAMTYPE=\"" << cimTypeToString (type) << "\""; | out << " PARAMTYPE=\"" << cimTypeToString (type) << "\""; |
|
} |
| |
out << ">\n"; | out << ">\n"; |
| |