version 1.4.2.2, 2011/10/11 18:18:09
|
version 1.5, 2011/01/25 11:24:24
|
|
|
} | } |
} | } |
| |
void SCMOXmlWriter::appendValueSCMOInstanceWithPathElements( |
|
Buffer& out, |
|
const Array<SCMOInstance> & _scmoInstances, |
|
const CIMPropertyList & propertyList) |
|
{ |
|
if (propertyList.isNull()) |
|
{ |
|
Array<Uint32> emptyNodes; |
|
for (Uint32 i = 0, n = _scmoInstances.size(); i < n; i++) |
|
{ |
|
SCMOXmlWriter::appendValueSCMOInstanceWithPathElement( |
|
out, |
|
_scmoInstances[i], |
|
false, |
|
emptyNodes); |
|
} |
|
} |
|
else |
|
{ |
|
Array<propertyFilterNodesArray_t> propFilterNodesArrays; |
|
|
|
for (Uint32 i = 0, n = _scmoInstances.size(); i < n; i++) |
|
{ |
|
// This searches for an already created array of nodes, |
|
// if not found, creates it inside propFilterNodesArrays |
|
const Array<Uint32> & nodes= |
|
SCMOXmlWriter::getFilteredNodesArray( |
|
propFilterNodesArrays, |
|
_scmoInstances[i], |
|
propertyList); |
|
|
|
SCMOXmlWriter::appendValueSCMOInstanceWithPathElement( |
|
out, |
|
_scmoInstances[i], |
|
true, |
|
nodes); |
|
} |
|
} |
|
} |
|
|
|
// KS_TODO - Show the XML statement for this function |
|
void SCMOXmlWriter::appendValueSCMOInstanceElement( | void SCMOXmlWriter::appendValueSCMOInstanceElement( |
Buffer& out, | Buffer& out, |
const SCMOInstance& scmoInstance, | const SCMOInstance& scmoInstance, |
bool filtered, | bool filtered, |
const Array<Uint32> & nodes) | const Array<Uint32> & nodes) |
|
|
{ | { |
out << STRLIT("<VALUE.NAMEDINSTANCE>\n"); | out << STRLIT("<VALUE.NAMEDINSTANCE>\n"); |
| |
|
|
out << STRLIT("</VALUE.NAMEDINSTANCE>\n"); | out << STRLIT("</VALUE.NAMEDINSTANCE>\n"); |
} | } |
| |
//------------------------------------------------------------------------------ |
|
// |
|
// appendValueInstanceWithPathElement() -- Pull Operation support |
|
// |
|
// <!ELEMENT VALUE.INSTANCEWITHPATH (INSTANCEPATH,INSTANCE)> |
|
// |
|
//------------------------------------------------------------------------------ |
|
|
|
// KS_TODO - Double check to be sure this not duplication |
|
void SCMOXmlWriter::appendValueSCMOInstanceWithPathElement( |
|
Buffer& out, |
|
const SCMOInstance& scmoInstance, |
|
bool filtered, |
|
const Array<Uint32> & nodes) |
|
{ |
|
out << STRLIT("<VALUE.INSTANCEWITHPATH>\n"); |
|
|
|
appendInstancePathElement(out,scmoInstance); |
|
appendInstanceElement(out, scmoInstance, filtered, nodes); |
|
|
|
out << STRLIT("</VALUE.INSTANCEWITHPATH>\n"); |
|
} |
|
|
|
void SCMOXmlWriter::appendInstanceNameElement( | void SCMOXmlWriter::appendInstanceNameElement( |
Buffer& out, | Buffer& out, |
const SCMOInstance& scmoInstance) | const SCMOInstance& scmoInstance) |
|
|
} | } |
} | } |
| |
//------------------------------------------------------------------------------ |
|
// |
|
// appendValueInstanceWithPathElement() |
|
// |
|
// <!ELEMENT VALUE.INSTANCEWITHPATH (INSTANCEPATH,INSTANCE)> |
|
// |
|
//------------------------------------------------------------------------------ |
|
// EXP_PULL_TBD checkout the INSTANCEPATH vs NAMEDINSTANCE differences |
|
// Can we create something more common |
|
void SCMOXmlWriter::appendValueInstanceWithPathElement( |
|
Buffer& out, |
|
const SCMOInstance& namedInstance, |
|
bool filtered, |
|
const Array<Uint32> & nodes) |
|
{ |
|
out << STRLIT("<VALUE.INSTANCEWITHPATH>\n"); |
|
|
|
appendInstancePathElement(out, namedInstance); |
|
appendInstanceElement(out, namedInstance, filtered, nodes); |
|
|
|
out << STRLIT("</VALUE.INSTANCEWITHPATH>\n"); |
|
} |
|
|
|
// appendValueObjectWithPathElement() | // appendValueObjectWithPathElement() |
// <!ELEMENT VALUE.OBJECTWITHPATH | // <!ELEMENT VALUE.OBJECTWITHPATH |
// ((CLASSPATH,CLASS)|(INSTANCEPATH,INSTANCE))> | // ((CLASSPATH,CLASS)|(INSTANCEPATH,INSTANCE))> |
|
|
arr++; | arr++; |
} | } |
out << STRLIT("</VALUE.REFARRAY>\n"); | out << STRLIT("</VALUE.REFARRAY>\n"); |
break; |
|
} | } |
case CIMTYPE_OBJECT: | case CIMTYPE_OBJECT: |
case CIMTYPE_INSTANCE: | case CIMTYPE_INSTANCE: |