version 1.4.2.8, 2013/10/17 14:33:37
|
version 1.9, 2014/08/27 23:10:08
|
|
|
} | } |
//EXP_PULL_END | //EXP_PULL_END |
| |
// 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, |
|
|
if (SCMO_OK == smrc) | if (SCMO_OK == smrc) |
{ | { |
SCMOInstance * ref = kbValue->extRefPtr; | SCMOInstance * ref = kbValue->extRefPtr; |
appendValueReferenceElement(out, *ref, true); |
appendValueReferenceElement(out, *ref); |
} | } |
} | } |
else | else |
|
|
SCMOInstance * ref = value.value.extRefPtr; | SCMOInstance * ref = value.value.extRefPtr; |
if (ref) | if (ref) |
{ | { |
appendValueReferenceElement(out, *ref, true); |
appendValueReferenceElement(out, *ref); |
} | } |
} | } |
else | else |
|
|
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
void SCMOXmlWriter::appendValueReferenceElement( | void SCMOXmlWriter::appendValueReferenceElement( |
Buffer& out, | Buffer& out, |
const SCMOInstance& ref, |
const SCMOInstance& ref) |
Boolean putValueWrapper) |
|
{ |
|
if (putValueWrapper) |
|
{ | { |
out << STRLIT("<VALUE.REFERENCE>\n"); | out << STRLIT("<VALUE.REFERENCE>\n"); |
|
|
|
appendClassOrInstancePathElement(out, ref); |
|
|
|
out << STRLIT("</VALUE.REFERENCE>\n"); |
} | } |
| |
|
// Append either a class or instance Path Element |
|
void SCMOXmlWriter::appendClassOrInstancePathElement( |
|
Buffer& out, |
|
const SCMOInstance& ref) |
|
{ |
// See if it is a class or instance reference (instance references have | // See if it is a class or instance reference (instance references have |
// key-bindings; class references do not). | // key-bindings; class references do not). |
| |
|
|
appendInstanceNameElement(out, ref); | appendInstanceNameElement(out, ref); |
} | } |
} | } |
if (putValueWrapper) |
|
{ |
|
out << STRLIT("</VALUE.REFERENCE>\n"); |
|
} |
|
} | } |
| |
// appendLocalInstancePathElement() | // appendLocalInstancePathElement() |
|
|
{ | { |
out << STRLIT("<VALUE.OBJECTWITHPATH>\n"); | out << STRLIT("<VALUE.OBJECTWITHPATH>\n"); |
| |
appendValueReferenceElement(out, objectWithPath, false); |
appendClassOrInstancePathElement(out, objectWithPath); |
appendObjectElement(out, objectWithPath,filtered,nodes); | appendObjectElement(out, objectWithPath,filtered,nodes); |
| |
out << STRLIT("</VALUE.OBJECTWITHPATH>\n"); | out << STRLIT("</VALUE.OBJECTWITHPATH>\n"); |
|
|
SCMOInstance * ref = arr->extRefPtr; | SCMOInstance * ref = arr->extRefPtr; |
if (ref) | if (ref) |
{ | { |
appendValueReferenceElement(out, *ref, true); |
appendValueReferenceElement(out, *ref); |
} | } |
arr++; | arr++; |
} | } |