version 1.30, 2008/01/30 18:56:21
|
version 1.31, 2008/03/05 21:31:45
|
|
|
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <cstdio> | #include <cstdio> |
#include "XmlWriter.h" |
|
#include "CIMParamValueRep.h" | #include "CIMParamValueRep.h" |
#include "StrLit.h" | #include "StrLit.h" |
| |
|
|
{ | { |
} | } |
| |
//------------------------------------------------------------------------------ |
|
// |
|
// <!ELEMENT PARAMVALUE (VALUE|VALUE.REFERENCE|VALUE.ARRAY|VALUE.REFARRAY)?> |
|
// <!ATTLIST PARAMVALUE |
|
// %CIMName; |
|
// %EmbeddedObject; #IMPLIED |
|
// %ParamType;> |
|
// |
|
//------------------------------------------------------------------------------ |
|
void CIMParamValueRep::toXml(Buffer& out) const |
|
{ |
|
out << STRLIT("<PARAMVALUE NAME=\"") << _parameterName; |
|
out.append('"'); |
|
|
|
CIMType type = _value.getType(); |
|
|
|
if (_isTyped) |
|
{ |
|
XmlWriter::appendParamTypeAndEmbeddedObjAttrib(out, type); |
|
} |
|
|
|
out << STRLIT(">\n"); |
|
XmlWriter::appendValueElement(out, _value); |
|
|
|
out << STRLIT("</PARAMVALUE>\n"); |
|
} |
|
|
|
CIMParamValueRep::CIMParamValueRep(const CIMParamValueRep& x) : | CIMParamValueRep::CIMParamValueRep(const CIMParamValueRep& x) : |
Sharable(), | Sharable(), |
_parameterName(x._parameterName), | _parameterName(x._parameterName), |