<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>pugixml: pugi::xml_writer_stream Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.4.6-NO --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li id="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul></div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div> <div class="nav"> <a class="el" href="namespacepugi.html">pugi</a>::<a class="el" href="classpugi_1_1xml__writer__stream.html">xml_writer_stream</a></div> <h1>pugi::xml_writer_stream Class Reference</h1><!-- doxytag: class="pugi::xml_writer_stream" --><!-- doxytag: inherits="pugi::xml_writer" -->Inheritance diagram for pugi::xml_writer_stream:<p><center><img src="classpugi_1_1xml__writer__stream__inherit__graph.png" border="0" usemap="#pugi_1_1xml__writer__stream__inherit__map" alt="Inheritance graph"></center> <map name="pugi_1_1xml__writer__stream__inherit__map"> <area href="classpugi_1_1xml__writer.html" shape="rect" coords="29,5,147,32" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for pugi::xml_writer_stream:<p><center><img src="classpugi_1_1xml__writer__stream__coll__graph.png" border="0" usemap="#pugi_1_1xml__writer__stream__coll__map" alt="Collaboration graph"></center> <map name="pugi_1_1xml__writer__stream__coll__map"> <area href="classpugi_1_1xml__writer.html" shape="rect" coords="5,5,123,32" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classpugi_1_1xml__writer__stream-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> <a class="el" href="classpugi_1_1xml__writer.html">xml_writer</a> implementation for streams <p> <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classpugi_1_1xml__writer.html">xml_writer</a> </dd></dl> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__writer__stream.html#214b2086050ab867e132d01e28f38b5a">xml_writer_stream</a> (std::ostream &stream)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct writer instance. <a href="#214b2086050ab867e132d01e28f38b5a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__writer__stream.html#7c3004898f1ee5aa10dbf48103143bb1">write</a> (const void *data, size_t size)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Write memory chunk into stream/file/whatever. <a href="#7c3004898f1ee5aa10dbf48103143bb1"></a><br></td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="214b2086050ab867e132d01e28f38b5a"></a><!-- doxytag: member="pugi::xml_writer_stream::xml_writer_stream" ref="214b2086050ab867e132d01e28f38b5a" args="(std::ostream &stream)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">pugi::xml_writer_stream::xml_writer_stream </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">std::ostream & </td> <td class="mdname1" valign="top" nowrap> <em>stream</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Construct writer instance. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stream</em> </td><td>- output stream object </td></tr> </table> </dl> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="7c3004898f1ee5aa10dbf48103143bb1"></a><!-- doxytag: member="pugi::xml_writer_stream::write" ref="7c3004898f1ee5aa10dbf48103143bb1" args="(const void *data, size_t size)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">virtual void pugi::xml_writer_stream::write </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const void * </td> <td class="mdname" nowrap> <em>data</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>size_t </td> <td class="mdname" nowrap> <em>size</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Write memory chunk into stream/file/whatever. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>- data pointer </td></tr> <tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>- data size </td></tr> </table> </dl> <p> Implements <a class="el" href="classpugi_1_1xml__writer.html#b7d3b6a8499ceef7799158370e1c2617">pugi::xml_writer</a>. </td> </tr> </table> <hr size="1"><address style="align: right;"><small>Generated on Tue Jan 5 20:02:11 2010 for pugixml by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address> </body> </html>