version 1.23, 2005/10/31 17:39:11
|
version 1.24, 2005/11/07 23:15:59
|
|
|
#include <cstdio> | #include <cstdio> |
#include "XmlWriter.h" | #include "XmlWriter.h" |
#include "CIMParamValueRep.h" | #include "CIMParamValueRep.h" |
|
#include "StrLit.h" |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
void CIMParamValueRep::toXml(Buffer& out) const | void CIMParamValueRep::toXml(Buffer& out) const |
{ | { |
out << "<PARAMVALUE NAME=\"" << _parameterName << "\""; |
out << STRLIT("<PARAMVALUE NAME=\"") << _parameterName; |
|
out.append('"'); |
| |
CIMType type = _value.getType(); | CIMType type = _value.getType(); |
| |
|
|
// output the real type | // output the real type |
if (type == CIMTYPE_OBJECT) | if (type == CIMTYPE_OBJECT) |
{ | { |
out << " PARAMTYPE=\"string\""; |
out << STRLIT(" PARAMTYPE=\"string\" EMBEDDEDOBJECT=\"object\""); |
out << " EMBEDDEDOBJECT=\"object\""; |
|
} | } |
else | else |
{ | { |
out << " PARAMTYPE=\"" << cimTypeToString (type) << "\""; |
out << STRLIT(" PARAMTYPE=\"") << cimTypeToString (type); |
|
out.append('"'); |
} | } |
} | } |
| |
out << ">\n"; |
out << STRLIT(">\n"); |
XmlWriter::appendValueElement(out, _value); | XmlWriter::appendValueElement(out, _value); |
| |
out << "</PARAMVALUE>\n"; |
out << STRLIT("</PARAMVALUE>\n"); |
} | } |
| |
CIMParamValueRep::CIMParamValueRep() | CIMParamValueRep::CIMParamValueRep() |