MCPcopy Create free account
hub / github.com/bruderstein/nppPluginManager / StreamOut

Method StreamOut

TinyXml/src/tinyxml.cpp:610–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608}
609
610void TiXmlElement::StreamOut( TIXML_OSTREAM * stream ) const
611{
612 (*stream) << TEXT("<") << value;
613
614 TiXmlAttribute* attrib;
615 for ( attrib = attributeSet.First(); attrib; attrib = attrib->Next() )
616 {
617 (*stream) << TEXT(" ");
618 attrib->StreamOut( stream );
619 }
620
621 // If this node has children, give it a closing tag. Else
622 // make it an empty tag.
623 TiXmlNode* node;
624 if ( firstChild )
625 {
626 (*stream) << TEXT(">");
627
628 for ( node = firstChild; node; node=node->NextSibling() )
629 {
630 node->StreamOut( stream );
631 }
632 (*stream) << TEXT("</") << value << TEXT(">");
633 }
634 else
635 {
636 (*stream) << TEXT(" />");
637 }
638}
639
640TiXmlNode* TiXmlElement::Clone() const
641{

Callers 1

tinyxml.cppFile · 0.80

Calls 6

FirstMethod · 0.80
NextMethod · 0.80
ToElementMethod · 0.80
NextSiblingMethod · 0.45
findMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected