1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxOutputStream
}}\label{wxoutputstream
}
6 wxOutputStream is an abstract base class which may not be used directly.
8 \wxheading{Derived from
}
10 \helpref{wxStreamBase
}{wxstreambase
}
12 \wxheading{Include files
}
16 \latexignore{\rtfignore{\wxheading{Members
}}}
21 \membersection{wxOutputStream::wxOutputStream
}
23 \func{}{wxOutputStream
}{\void}
25 Creates a dummy wxOutputStream object.
27 \membersection{wxOutputStream::
\destruct{wxOutputStream
}}
29 \func{}{\destruct{wxOutputStream
}}{\void}
33 \membersection{wxOutputStream::LastWrite
}
35 \constfunc{size
\_t}{LastWrite
}{\void}
37 Returns the number of bytes written during the last Write().
39 \membersection{wxOutputStream::PutC
}
41 \func{void
}{PutC
}{\param{char
}{ c
}}
43 Puts the specified character in the output queue and increments the
46 \membersection{wxOutputStream::SeekO
}\label{wxoutputstreamseeko
}
48 \func{off
\_t}{SeekO
}{\param{off
\_t}{ pos
},
\param{wxSeekMode
}{ mode = wxFromStart
}}
50 Changes the stream current position.
52 \wxheading{Parameters
}
54 \docparam{pos
}{Offset to seek to.
}
56 \docparam{mode
}{One of
{\bf wxFromStart
},
{\bf wxFromEnd
},
{\bf wxFromCurrent
}.
}
58 \wxheading{Return value
}
60 The new stream position or wxInvalidOffset on error.
62 \membersection{wxOutputStream::TellO
}
64 \constfunc{off
\_t}{TellO
}{\void}
66 Returns the current stream position.
68 \membersection{wxOutputStream::Write
}
70 \func{wxOutputStream\&
}{Write
}{\param{const void *
}{buffer
},
\param{size
\_t}{ size
}}
72 Writes the specified amount of bytes using the data of
{\it buffer
}.
73 {\it WARNING!
} The buffer absolutely needs to have at least the specified size.
75 This function returns a reference on the current object, so the user can test
76 any states of the stream right away.
78 \func{wxOutputStream\&
}{Write
}{\param{wxInputStream\&
}{ stream
\_in}}
80 Reads data from the specified input stream and stores them
81 in the current stream. The data is read until an error is raised
82 by one of the two streams.