1999-01-31 11:56:04 -05:00
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxFileInputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
\section{\class{wxFileInputStream}}\label{wxfileinputstream}
|
|
|
|
|
1999-11-01 15:36:43 -05:00
|
|
|
This class represents data read in from a file. There are actually
|
1999-08-22 12:12:48 -04:00
|
|
|
two such groups of classes: those documented here, and another group called
|
|
|
|
wxFFileInputStream, wxFFileOutputStream and wxFFileStream which are not
|
|
|
|
based on file descriptors (and their wxWindows equivalent wxFile) but the
|
|
|
|
FILE* type (and wxFFile). Apart from the different constructor ("FILE *file"
|
|
|
|
instead if "int fd") their interface is identical.
|
|
|
|
|
1999-01-31 11:56:04 -05:00
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxInputStream}{wxinputstream}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/wfstream.h>
|
|
|
|
|
1999-01-31 11:56:04 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
1999-11-01 15:36:43 -05:00
|
|
|
\helpref{wxStreamBuffer}{wxstreamBuffer}, \helpref{wxFileOutputStream}{wxfileoutputstream}
|
1999-01-31 11:56:04 -05:00
|
|
|
|
|
|
|
% ----------
|
|
|
|
% Members
|
|
|
|
% ----------
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxFileInputStream::wxFileInputStream}
|
|
|
|
|
1999-02-03 05:01:34 -05:00
|
|
|
\func{}{wxFileInputStream}{\param{const wxString\&}{ ifileName}}
|
1999-01-31 11:56:04 -05:00
|
|
|
|
|
|
|
Opens the specified file using its \it{ifilename} name in read-only mode.
|
|
|
|
|
1999-02-03 05:01:34 -05:00
|
|
|
\func{}{wxFileInputStream}{\param{wxFile\&}{ file}}
|
1999-01-31 11:56:04 -05:00
|
|
|
|
|
|
|
Initializes a file stream in read-only mode using the file I/O object \it{file}.
|
|
|
|
|
1999-02-03 05:01:34 -05:00
|
|
|
\func{}{wxFileInputStream}{\param{int}{ fd}}
|
1999-01-31 11:56:04 -05:00
|
|
|
|
|
|
|
Initializes a file stream in read-only mode using the specified file descriptor.
|
|
|
|
|
|
|
|
\membersection{wxFileInputStream::\destruct{wxFileInputStream}}
|
1999-02-03 05:01:34 -05:00
|
|
|
|
|
|
|
\func{}{\destruct{wxFileInputStream}}{\void}
|
1999-01-31 11:56:04 -05:00
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
|
|
|
\membersection{wxFileInputStream::Ok}
|
1999-02-03 05:01:34 -05:00
|
|
|
|
1999-01-31 11:56:04 -05:00
|
|
|
\constfunc{bool}{Ok}{\void}
|
|
|
|
|
|
|
|
Returns TRUE if the stream is initialized and ready.
|
|
|
|
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxFileOutputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
\section{\class{wxFileOutputStream}}\label{wxfileoutputstream}
|
|
|
|
|
1999-11-01 15:36:43 -05:00
|
|
|
This class represents data written to a file. There are actually
|
|
|
|
two such groups of classes: those documented here, and another group called
|
|
|
|
wxFFileInputStream, wxFFileOutputStream and wxFFileStream which are not
|
|
|
|
based on file descriptors (and their wxWindows equivalent wxFile) but the
|
|
|
|
FILE* type (and wxFFile). Apart from the different constructor ("FILE *file"
|
|
|
|
instead if "int fd") their interface is identical.
|
|
|
|
|
1999-01-31 11:56:04 -05:00
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxOutputStream}{wxoutputstream}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/wfstream.h>
|
|
|
|
|
1999-01-31 11:56:04 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
1999-11-01 15:36:43 -05:00
|
|
|
\helpref{wxStreamBuffer}{wxstreamBuffer}, \helpref{wxFileInputStream}{wxfileinputstream}
|
1999-01-31 11:56:04 -05:00
|
|
|
|
|
|
|
% ----------
|
|
|
|
% Members
|
|
|
|
% ----------
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxFileOutputStream::wxFileOutputStream}
|
|
|
|
|
1999-02-03 05:01:34 -05:00
|
|
|
\func{}{wxFileOutputStream}{\param{const wxString\&}{ ofileName}}
|
1999-01-31 11:56:04 -05:00
|
|
|
|
|
|
|
Creates a new file with \it{ofilename} name and initializes the stream in
|
|
|
|
write-only mode.
|
|
|
|
|
1999-03-13 15:14:37 -05:00
|
|
|
\func{}{wxFileOutputStream}{\param{wxFile\&}{ file}}
|
1999-02-03 05:01:34 -05:00
|
|
|
|
1999-01-31 11:56:04 -05:00
|
|
|
Initializes a file stream in write-only mode using the file I/O object \it{file}.
|
|
|
|
|
|
|
|
\func{}{wxFileOutputStream}{\param{int}{ fd}}
|
1999-02-03 05:01:34 -05:00
|
|
|
|
1999-01-31 11:56:04 -05:00
|
|
|
Initializes a file stream in write-only mode using the file descriptor \it{fd}.
|
|
|
|
|
|
|
|
\membersection{wxFileOutputStream::\destruct{wxFileOutputStream}}
|
1999-02-03 05:01:34 -05:00
|
|
|
|
|
|
|
\func{}{\destruct{wxFileOutputStream}}{\void}
|
1999-01-31 11:56:04 -05:00
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
|
|
|
\membersection{wxFileOutputStream::Ok}
|
1999-02-03 05:01:34 -05:00
|
|
|
|
1999-01-31 11:56:04 -05:00
|
|
|
\constfunc{bool}{Ok}{\void}
|
|
|
|
|
|
|
|
Returns TRUE if the stream is initialized and ready.
|
|
|
|
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxFileStream
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
\section{\class{wxFileStream}}
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxFileOutputStream}{wxFileOutputStream}, \helpref{wxFileInputStream}{wxfileinputstream}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/wfstream.h>
|
|
|
|
|
1999-01-31 11:56:04 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxStreamBuffer}{wxstreamBuffer}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxFileStream::wxFileStream}
|
|
|
|
|
1999-02-03 05:01:34 -05:00
|
|
|
\func{}{wxFileStream}{\param{const wxString\&}{ iofileName}}
|
1999-01-31 11:56:04 -05:00
|
|
|
|
1999-02-03 05:01:34 -05:00
|
|
|
Initializes a new file stream in read-write mode using the specified
|
1999-01-31 11:56:04 -05:00
|
|
|
\it{iofilename} name.
|
|
|
|
|