1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
<HTML>
<head><title>wxOutputStream</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxoutputstream"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx159.htm#wxobjectrefdata"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx161.htm#wxpagesetupdata"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxOutputStream</H2>
<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx222.htm#wxstreambase">wxStreamBase</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
<wx/stream.h><P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx223.htm#wxstreambuffer">wxStreamBuffer</A><P>
<A HREF="#topic620">wxOutputStream::wxOutputStream</A><BR>
<A HREF="#topic621">wxOutputStream::~wxOutputStream</A><BR>
<A HREF="#topic622">wxOutputStream::OutputStreamBuffer</A><BR>
<A HREF="#topic623">wxOutputStream::LastWrite</A><BR>
<A HREF="#topic624">wxOutputStream::PutC</A><BR>
<A HREF="#topic625">wxOutputStream::SeekO</A><BR>
<A HREF="#topic626">wxOutputStream::TellO</A><BR>
<A HREF="#topic627">wxOutputStream::Write</A><BR>
<P>
<HR>
<A NAME="topic620"></A>
<H3>wxOutputStream::wxOutputStream</H3>
<P>
<B></B> <B>wxOutputStream</B>()<P>
Creates a dummy wxOutputStream object.<P>
<B></B> <B>wxOutputStream</B>(<B>wxStreamBuffer*</B><I> sbuf</I>)<P>
Creates an input stream using the specified stream buffer <I>sbuf</I>. This
stream buffer can point to another stream.<P>
<HR>
<A NAME="topic621"></A>
<H3>wxOutputStream::~wxOutputStream</H3>
<P>
<B></B> <B>~wxOutputStream</B>()<P>
Destructor.<P>
<HR>
<A NAME="topic622"></A>
<H3>wxOutputStream::OutputStreamBuffer</H3>
<P>
<B>wxStreamBuffer *</B> <B>OutputStreamBuffer</B>()<P>
Returns the stream buffer associated with the output stream.<P>
<HR>
<A NAME="topic623"></A>
<H3>wxOutputStream::LastWrite</H3>
<P>
<B>size_t</B> <B>LastWrite</B>() <B>const</B><P>
<HR>
<A NAME="topic624"></A>
<H3>wxOutputStream::PutC</H3>
<P>
<B>void</B> <B>PutC</B>(<B>char</B><I> c</I>)<P>
Puts the specified character in the output queue and increments the
stream position.<P>
<HR>
<A NAME="topic625"></A>
<H3>wxOutputStream::SeekO</H3>
<P>
<B>off_t</B> <B>SeekO</B>(<B>off_t</B><I> pos</I>, <B>wxSeekMode</B><I> mode</I>)<P>
Changes the stream current position.<P>
<HR>
<A NAME="topic626"></A>
<H3>wxOutputStream::TellO</H3>
<P>
<B>off_t</B> <B>TellO</B>() <B>const</B><P>
Returns the current stream position.<P>
<HR>
<A NAME="topic627"></A>
<H3>wxOutputStream::Write</H3>
<P>
<B>wxOutputStream&</B> <B>Write</B>(<B>const void *</B><I>buffer</I>, <B>size_t</B><I> size</I>)<P>
Writes the specified amount of bytes using the data of <I>buffer</I>.
<I>WARNING!</I> The buffer absolutely needs to have at least the specified size.<P>
This function returns a reference on the current object, so the user can test
any states of the stream right away.<P>
<B>wxOutputStream&</B> <B>Write</B>(<B>wxInputStream&</B><I> stream_in</I>)<P>
Reads data from the specified input stream and stores them
in the current stream. The data is read until an error is raised
by one of the two streams.<P>
</BODY></HTML>
|