added wxStringStream classes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-09-19 21:26:45 +00:00
parent 95561814d9
commit 121fa06ab6
8 changed files with 291 additions and 0 deletions

View File

@@ -491,6 +491,8 @@ libraries, and to provide enhanced functionality.
\twocolitem{\helpref{wxFileOutputStream}{wxfileoutputstream}}{File output stream class}
\twocolitem{\helpref{wxFFileInputStream}{wxffileinputstream}}{Another file input stream class}
\twocolitem{\helpref{wxFFileOutputStream}{wxffileoutputstream}}{Another file output stream class}
\twocolitem{\helpref{wxStringInputStream}{wxstringinputstream}}{String input stream class}
\twocolitem{\helpref{wxStringOutputStream}{wxstringoutputstream}}{String output stream class}
\twocolitem{\helpref{wxZlibInputStream}{wxzlibinputstream}}{Zlib (compression) input stream class}
\twocolitem{\helpref{wxZlibOutputStream}{wxzliboutputstream}}{Zlib (compression) output stream class}
\twocolitem{\helpref{wxZipInputStream}{wxzipinputstream}}{Input stream for reading from ZIP archives}

View File

@@ -296,7 +296,9 @@
\input strtotxt.tex
\input wxstring.tex
\input strcldat.tex
\input sistream.tex
\input strlist.tex
\input sostream.tex
\input tokenizr.tex
\input sysclevt.tex
\input sysopt.tex

View File

@@ -0,0 +1,35 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Name: sistream.tex
%% Purpose: wxStringInputStream docs
%% Author: Vadim Zeitlin
%% Modified by:
%% Created: 2004-09-19
%% RCS-ID: $Id$
%% Copyright: (c) 2004 Vadim Zeitlin
%% License: wxWidgets licence
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{\class{wxStringInputStream}}\label{wxstringinputstream}
This class implements an input stream which reads data from a string. It
supports seeking.
\wxheading{Derived from}
\helpref{wxInputStream}{wxinputstream}
\wxheading{Include files}
<wx/sckstrm.h>
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxStringInputStream::wxStringInputStream}
\func{}{wxStringInputStream}{\param{const wxString\&}{ s}}
Creates a new read-only stream using the specified string. Note that the string
is copied by the stream so if the original string is modified after using this
constructor, changes to it are not reflected when reading from stream.

View File

@@ -0,0 +1,43 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Name: sostream.tex
%% Purpose: wxStringOutputStream docs
%% Author: Vadim Zeitlin
%% Modified by:
%% Created: 2004-09-19
%% RCS-ID: $Id$
%% Copyright: (c) 2004 Vadim Zeitlin
%% License: wxWidgets licence
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{\class{wxStringOutputStream}}\label{wxstringoutputstream}
This class implements an output stream which writes data either to a
user-provided or internally allocated string. Note that currently this stream
does not support seeking.
\wxheading{Derived from}
\helpref{wxOutputStream}{wxoutputstream}
\wxheading{Include files}
<wx/sckstrm.h>
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxStringOutputStream::wxStringOutputStream}
\func{}{wxStringOutputStream}{\param{wxString}{ *str = \texttt{NULL}}}
If the provided pointer is non-\texttt{NULL}, data will be written to it.
Otherwise, an internal string is used for the data written to this stream, use
\helpref{GetString()}{wxstringoutputstreamgetstring} to get access to it.
\membersection{wxStringOutputStream::GetString}\label{wxstringoutputstreamgetstring}
\constfunc{const wxString\&}{GetString}{\void}
Returns the string containing all the data written to the stream so far.