version 1.2, 2009/12/15 11:39:33
|
version 1.3, 2011/01/25 11:24:24
|
|
|
| |
void CIMInternalXmlEncoder::_putXMLInstance( | void CIMInternalXmlEncoder::_putXMLInstance( |
CIMBuffer& out, | CIMBuffer& out, |
const CIMInstance& ci) |
const CIMInstance& ci, |
|
Boolean includeQualifiers, |
|
Boolean includeClassOrigin, |
|
const CIMPropertyList& propertyList) |
{ | { |
if (ci.isUninitialized()) | if (ci.isUninitialized()) |
{ | { |
|
|
| |
// Serialize instance as XML. | // Serialize instance as XML. |
{ | { |
XmlWriter::appendInstanceElement(buf, ci); |
XmlWriter::appendInstanceElement( |
|
buf, |
|
ci, |
|
includeQualifiers, |
|
includeClassOrigin, |
|
propertyList); |
buf.append('\0'); | buf.append('\0'); |
| |
out.putUint32(buf.size()); | out.putUint32(buf.size()); |
|
|
| |
void CIMInternalXmlEncoder::_putXMLNamedInstance( | void CIMInternalXmlEncoder::_putXMLNamedInstance( |
CIMBuffer& out, | CIMBuffer& out, |
const CIMInstance& ci) |
const CIMInstance& ci, |
|
Boolean includeQualifiers, |
|
Boolean includeClassOrigin, |
|
const CIMPropertyList& propertyList) |
{ | { |
if (ci.isUninitialized()) | if (ci.isUninitialized()) |
{ | { |
|
|
| |
// Serialize instance as XML. | // Serialize instance as XML. |
{ | { |
XmlWriter::appendInstanceElement(buf, ci); |
XmlWriter::appendInstanceElement( |
|
buf, |
|
ci, |
|
includeQualifiers, |
|
includeClassOrigin, |
|
propertyList); |
buf.append('\0'); | buf.append('\0'); |
| |
out.putUint32(buf.size()); | out.putUint32(buf.size()); |
|
|
| |
void CIMInternalXmlEncoder::_putXMLObject( | void CIMInternalXmlEncoder::_putXMLObject( |
CIMBuffer& out, | CIMBuffer& out, |
const CIMObject& co) |
const CIMObject& co, |
|
Boolean includeQualifiers, |
|
Boolean includeClassOrigin, |
|
const CIMPropertyList& propertyList) |
{ | { |
if (co.isUninitialized()) | if (co.isUninitialized()) |
{ | { |
|
|
| |
// Serialize instance as XML. | // Serialize instance as XML. |
{ | { |
XmlWriter::appendObjectElement(buf, co); |
XmlWriter::appendObjectElement( |
|
buf, |
|
co, |
|
includeQualifiers, |
|
includeClassOrigin, |
|
propertyList); |
buf.append('\0'); | buf.append('\0'); |
| |
out.putUint32(buf.size()); | out.putUint32(buf.size()); |