version 1.1.2.11, 2009/10/21 15:12:50
|
version 1.1.2.12, 2009/10/26 11:04:02
|
|
|
Uint64 len; | Uint64 len; |
const char * className = scmoInstance.getClassName_l(len); | const char * className = scmoInstance.getClassName_l(len); |
out.append(className,len); | out.append(className,len); |
out << STRLIT("\">\n"); |
// TODO: check performance impact |
|
out.append('"','>','\n'); |
| |
for (Uint32 i = 0, n = scmoInstance.getKeyBindingCount(); i < n; i++) | for (Uint32 i = 0, n = scmoInstance.getKeyBindingCount(); i < n; i++) |
{ | { |
|
|
| |
out << STRLIT("<KEYBINDING NAME=\""); | out << STRLIT("<KEYBINDING NAME=\""); |
out.append(kbName,kbNameLen-1); | out.append(kbName,kbNameLen-1); |
out << STRLIT("\">\n"); |
out.append('"','>','\n'); |
| |
if (kbType == CIMTYPE_REFERENCE) | if (kbType == CIMTYPE_REFERENCE) |
{ | { |
|
|
{ | { |
out << STRLIT("<KEYVALUE VALUETYPE=\""); | out << STRLIT("<KEYVALUE VALUETYPE=\""); |
out << xmlWriterKeyTypeStrings(kbType); | out << xmlWriterKeyTypeStrings(kbType); |
out << STRLIT("\">"); |
out.append('"','>'); |
| |
if (SCMO_OK == smrc) | if (SCMO_OK == smrc) |
{ | { |
|
|
Uint64 len; | Uint64 len; |
const char * className = scmoInstance.getClassName_l(len); | const char * className = scmoInstance.getClassName_l(len); |
out.append(className,len); | out.append(className,len); |
out << STRLIT("\" >\n"); |
out.append('"',' ','>','\n'); |
|
//out << STRLIT("\" >\n"); |
| |
// Append Instance Qualifiers: | // Append Instance Qualifiers: |
if (scmoInstance.inst.hdr->flags.includeQualifiers) | if (scmoInstance.inst.hdr->flags.includeQualifiers) |
|
|
} | } |
| |
// Append Properties: | // Append Properties: |
|
// getPropertyCount() returns number of properties, only non-filtered ones |
for (Uint32 i=0,k=scmoInstance.getPropertyCount();i<k;i++) | for (Uint32 i=0,k=scmoInstance.getPropertyCount();i<k;i++) |
{ | { |
if (scmoInstance.inst.hdr->flags.isFiltered && |
// function _getPropertyAt() used by appendPropertyElement |
!scmoInstance._isPropertyInFilter(i)) |
// translates the filter position of a property into the real one |
{ |
// for us |
// Property is filtered, ignore and go to next |
|
continue; |
|
} |
|
else |
|
{ |
|
SCMOXmlWriter::appendPropertyElement(out,scmoInstance,i); | SCMOXmlWriter::appendPropertyElement(out,scmoInstance,i); |
} | } |
} |
|
// Instance closing element: | // Instance closing element: |
out << STRLIT("</INSTANCE>\n"); | out << STRLIT("</INSTANCE>\n"); |
} | } |
|
|
{ | { |
out << SCMOClass::qualifierNameStrLit(theQualifier.name); | out << SCMOClass::qualifierNameStrLit(theQualifier.name); |
} | } |
|
out.append('"',' '); |
out << STRLIT("\" "); |
//out << STRLIT("\" "); |
| |
// Append type | // Append type |
out << xmlWriterTypeStrings(theQualifier.value.valueType); | out << xmlWriterTypeStrings(theQualifier.value.valueType); |
|
|
out, | out, |
CIMFlavor(theQualifier.flavor)); | CIMFlavor(theQualifier.flavor)); |
| |
out << STRLIT(">\n"); |
out.append('>','\n'); |
|
//out << STRLIT(">\n"); |
// append the value of the qualifier | // append the value of the qualifier |
SCMOXmlWriter::appendValueElement(out, theQualifier.value, base); | SCMOXmlWriter::appendValueElement(out, theQualifier.value, base); |
| |
|
|
&(clsbase[propertyDef->name.start]), | &(clsbase[propertyDef->name.start]), |
propertyDef->name.length-1); | propertyDef->name.length-1); |
| |
out << STRLIT("\" "); |
out.append('"',' '); |
|
//out << STRLIT("\" "); |
if (propertyType == CIMTYPE_OBJECT) | if (propertyType == CIMTYPE_OBJECT) |
{ | { |
// If the property array type is CIMObject, then | // If the property array type is CIMObject, then |
|
|
out << STRLIT(" PROPAGATED=\"true\""); | out << STRLIT(" PROPAGATED=\"true\""); |
} | } |
| |
out << STRLIT(">\n"); |
out.append('>','\n'); |
|
//out << STRLIT(">\n"); |
| |
// Append Instance Qualifiers: | // Append Instance Qualifiers: |
if (scmoInstance.inst.hdr->flags.includeQualifiers) | if (scmoInstance.inst.hdr->flags.includeQualifiers) |
|
|
out.append( | out.append( |
&(clsbase[propertyDef->name.start]), | &(clsbase[propertyDef->name.start]), |
propertyDef->name.length-1); | propertyDef->name.length-1); |
out << STRLIT("\" "); |
out.append('"',' '); |
|
//out << STRLIT("\" "); |
| |
if (0 != propertyDef->refClassName.start) | if (0 != propertyDef->refClassName.start) |
{ | { |
|
|
{ | { |
out << STRLIT(" PROPAGATED=\"true\""); | out << STRLIT(" PROPAGATED=\"true\""); |
} | } |
out << STRLIT(">\n"); |
out.append('>','\n'); |
|
//out << STRLIT(">\n"); |
// Append Instance Qualifiers: | // Append Instance Qualifiers: |
if (scmoInstance.inst.hdr->flags.includeQualifiers) | if (scmoInstance.inst.hdr->flags.includeQualifiers) |
{ | { |
|
|
&(clsbase[propertyDef->name.start]), | &(clsbase[propertyDef->name.start]), |
propertyDef->name.length-1); | propertyDef->name.length-1); |
| |
out << STRLIT("\" "); |
out.append('"',' '); |
|
//out << STRLIT("\" "); |
| |
if (scmoInstance.inst.hdr->flags.includeClassOrigin) | if (scmoInstance.inst.hdr->flags.includeClassOrigin) |
{ | { |
|
|
out.append(' '); | out.append(' '); |
out << xmlWriterTypeStrings(propertyType); | out << xmlWriterTypeStrings(propertyType); |
} | } |
out << STRLIT(">\n"); |
out.append('>','\n'); |
|
//out << STRLIT(">\n"); |
| |
// Append Instance Qualifiers: | // Append Instance Qualifiers: |
if (scmoInstance.inst.hdr->flags.includeQualifiers) | if (scmoInstance.inst.hdr->flags.includeQualifiers) |
|
|
&(clsBase[theClass->className.start]), | &(clsBase[theClass->className.start]), |
theClass->className.length-1); | theClass->className.length-1); |
| |
out << STRLIT("\" "); |
out.append('"',' '); |
if (0 != theClass->superClassName.start) | if (0 != theClass->superClassName.start) |
{ | { |
out << STRLIT(" SUPERCLASS=\""); | out << STRLIT(" SUPERCLASS=\""); |
out.append( | out.append( |
&(clsBase[theClass->superClassName.start]), | &(clsBase[theClass->superClassName.start]), |
theClass->superClassName.length-1); | theClass->superClassName.length-1); |
out << STRLIT("\" "); |
out.append('"',' '); |
} | } |
out << STRLIT(">\n"); |
out.append('>','\n'); |
| |
// Append class qualifiers | // Append class qualifiers |
SCMBQualifier *theArray = | SCMBQualifier *theArray = |