Logo Search packages:      
Sourcecode: lame version File versions  Download package

std::ostream& operator<< ( std::ostream &  out,
const TiXmlNode base 
) [friend, inherited]

An output stream operator, for every class. Note that this outputs without any newlines or formatting, as opposed to Print(), which includes tabs and new lines.

The operator<< and operator>> are not completely symmetric. Writing a node to a stream is very well defined. You'll get a nice stream of output, without any extra whitespace or newlines.

But reading is not as well defined. (As it always is.) If you create a TiXmlElement (for example) and read that from an input stream, the text needs to define an element or junk will result. This is true of all input streams, but it's worth keeping in mind.

A TiXmlDocument will read nodes until it reads a root element.

Definition at line 229 of file tinyxml.h.

            base.StreamOut( &out );
            return out;

Generated by  Doxygen 1.6.0   Back to index