]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/sostream.tex
Added AdvanceSelection, ShowWindowMenu and keyboard handling
[wxWidgets.git] / docs / latex / wx / sostream.tex
CommitLineData
121fa06a
VZ
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%% Name: sostream.tex
3%% Purpose: wxStringOutputStream docs
4%% Author: Vadim Zeitlin
5%% Modified by:
6%% Created: 2004-09-19
7%% RCS-ID: $Id$
8%% Copyright: (c) 2004 Vadim Zeitlin
8795498c 9%% License: wxWindows licence
121fa06a
VZ
10%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11
12\section{\class{wxStringOutputStream}}\label{wxstringoutputstream}
13
14This class implements an output stream which writes data either to a
15user-provided or internally allocated string. Note that currently this stream
a5ea75bc 16does not support seeking but can tell its current position.
121fa06a
VZ
17
18\wxheading{Derived from}
19
7376079d
VZ
20\helpref{wxOutputStream}{wxoutputstream}\\
21\helpref{wxStreamBase}{wxstreambase}
121fa06a
VZ
22
23\wxheading{Include files}
24
a08f2b59 25<wx/sstream.h>
121fa06a 26
a7af285d
VZ
27\wxheading{Library}
28
29\helpref{wxBase}{librarieslist}
30
121fa06a
VZ
31
32\latexignore{\rtfignore{\wxheading{Members}}}
33
08f1d438 34\membersection{wxStringOutputStream::wxStringOutputStream}\label{wxstringoutputstreamctor}
121fa06a
VZ
35
36\func{}{wxStringOutputStream}{\param{wxString}{ *str = \texttt{NULL}}}
37
38If the provided pointer is non-\texttt{NULL}, data will be written to it.
39Otherwise, an internal string is used for the data written to this stream, use
40\helpref{GetString()}{wxstringoutputstreamgetstring} to get access to it.
41
a5ea75bc
VZ
42If \arg{str} is used, data written to the stream is appended to the current
43contents of it, i.e. the string is not cleared here. However if it is not
44empty, the positions returned by \helpref{TellO}{wxoutputstreamtello} will be
45offset by the initial string length, i.e. initial stream position will be the
46initial length of the string and not $0$.
47
121fa06a
VZ
48
49\membersection{wxStringOutputStream::GetString}\label{wxstringoutputstreamgetstring}
50
51\constfunc{const wxString\&}{GetString}{\void}
52
53Returns the string containing all the data written to the stream so far.
54