version 1.46.2.2, 2005/09/30 20:35:55
|
version 1.48, 2005/11/07 23:15:59
|
|
|
#include "XmlWriter.h" | #include "XmlWriter.h" |
#include "MofWriter.h" | #include "MofWriter.h" |
#include <Pegasus/Common/MessageLoader.h> //l10n | #include <Pegasus/Common/MessageLoader.h> //l10n |
|
#include "StrLit.h" |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
| |
void CIMMethodRep::toXml(Buffer& out) const | void CIMMethodRep::toXml(Buffer& out) const |
{ | { |
out << LIT("<METHOD"); |
out << STRLIT("<METHOD NAME=\"") << _name; |
out << LIT(" NAME=\"") << _name; |
|
out.append('"'); | out.append('"'); |
| |
out << LIT(" TYPE=\"") << cimTypeToString (_type); |
out << STRLIT(" TYPE=\"") << cimTypeToString(_type); |
out.append('"'); | out.append('"'); |
| |
if (!_classOrigin.isNull()) | if (!_classOrigin.isNull()) |
{ | { |
out << LIT(" CLASSORIGIN=\"") << _classOrigin; |
out << STRLIT(" CLASSORIGIN=\"") << _classOrigin; |
out.append('"'); | out.append('"'); |
} | } |
| |
if (_propagated != false) | if (_propagated != false) |
{ | { |
out << LIT(" PROPAGATED=\"") << _toString(_propagated); |
out << STRLIT(" PROPAGATED=\"") << _toString(_propagated); |
out.append('"'); | out.append('"'); |
} | } |
| |
out << LIT(">\n"); |
out << STRLIT(">\n"); |
| |
_qualifiers.toXml(out); | _qualifiers.toXml(out); |
| |
for (Uint32 i = 0, n = _parameters.size(); i < n; i++) | for (Uint32 i = 0, n = _parameters.size(); i < n; i++) |
XmlWriter::appendParameterElement(out, _parameters[i]); | XmlWriter::appendParameterElement(out, _parameters[i]); |
| |
out << LIT("</METHOD>\n"); |
out << STRLIT("</METHOD>\n"); |
} | } |
| |
/** | /** |
|
|
{ | { |
// If not first, output comma separator | // If not first, output comma separator |
if (i) | if (i) |
out << LIT(", "); |
out << STRLIT(", "); |
| |
MofWriter::appendParameterElement(out, _parameters[i]); | MofWriter::appendParameterElement(out, _parameters[i]); |
} | } |
| |
// output the parameterlist and method terminator | // output the parameterlist and method terminator |
out << LIT(");"); |
out << STRLIT(");"); |
} | } |
| |
| |