1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxFFileInputStream
}}\label{wxffileinputstream
}
6 This class represents data read in from a file. There are actually
7 two such groups of classes: this one is based on
\helpref{wxFFile
}{wxffile
}
8 whereas
\helpref{wxFileInputStream
}{wxfileinputstream
} is based in
9 the
\helpref{wxFile
}{wxfile
} class.
11 Note that
\helpref{SeekI()
}{wxinputstreamseeki
}
12 can seek beyond the end of the stream (file) and will thus not return
13 {\it wxInvalidOffset
} for that.
15 \wxheading{Derived from
}
17 \helpref{wxInputStream
}{wxinputstream
}\\
18 \helpref{wxStreamBase
}{wxstreambase
}
20 \wxheading{Include files
}
26 \helpref{wxBase
}{librarieslist
}
30 \helpref{wxBufferedInputStream
}{wxbufferedinputstream
},
\helpref{wxFFileOutputStream
}{wxffileoutputstream
},
\helpref{wxFileOutputStream
}{wxfileoutputstream
}
35 \latexignore{\rtfignore{\wxheading{Members
}}}
37 \membersection{wxFFileInputStream::wxFFileInputStream
}\label{wxffileinputstreamctor
}
39 \func{}{wxFFileInputStream
}{\param{const wxString\&
}{ filename
},
\param{const wxString\&
}{ mode = "rb"
}}
41 Opens the specified file using its
{\it filename
} name using the specified mode.
43 \func{}{wxFFileInputStream
}{\param{wxFFile\&
}{ file
}}
45 Initializes a file stream in read-only mode using the file I/O object
{\it file
}.
47 \func{}{wxFFileInputStream
}{\param{FILE *
}{ fp
}}
49 Initializes a file stream in read-only mode using the specified file pointer
{\it fp
}.
51 \membersection{wxFFileInputStream::
\destruct{wxFFileInputStream
}}\label{wxffileinputstreamdtor
}
53 \func{}{\destruct{wxFFileInputStream
}}{\void}
57 \membersection{wxFFileInputStream::IsOk
}\label{wxffileinputstreamisok
}
59 \constfunc{bool
}{IsOk
}{\void}
61 Returns true if the stream is initialized and ready.
63 % -----------------------------------------------------------------------------
65 % -----------------------------------------------------------------------------
66 \section{\class{wxFFileOutputStream
}}\label{wxffileoutputstream
}
68 This class represents data written to a file. There are actually
69 two such groups of classes: this one is based on
\helpref{wxFFile
}{wxffile
}
70 whereas
\helpref{wxFileInputStream
}{wxffileinputstream
} is based in
71 the
\helpref{wxFile
}{wxfile
} class.
73 Note that
\helpref{SeekO()
}{wxoutputstreamseeko
}
74 can seek beyond the end of the stream (file) and will thus not return
75 {\it wxInvalidOffset
} for that.
77 \wxheading{Derived from
}
79 \helpref{wxOutputStream
}{wxoutputstream
}\\
80 \helpref{wxStreamBase
}{wxstreambase
}
82 \wxheading{Include files
}
88 \helpref{wxBase
}{librarieslist
}
92 \helpref{wxBufferedOutputStream
}{wxbufferedoutputstream
},
\helpref{wxFFileInputStream
}{wxffileinputstream
},
\helpref{wxFileInputStream
}{wxfileinputstream
}
97 \latexignore{\rtfignore{\wxheading{Members
}}}
99 \membersection{wxFFileOutputStream::wxFFileOutputStream
}\label{wxffileoutputstreamctor
}
101 \func{}{wxFFileOutputStream
}{\param{const wxString\&
}{ filename
},
\param{const wxString\&
}{ mode="w+b"
}}
103 Opens the file with the given
{\it filename
} name in the specified mode.
105 \func{}{wxFFileOutputStream
}{\param{wxFFile\&
}{ file
}}
107 Initializes a file stream in write-only mode using the file I/O object
{\it file
}.
109 \func{}{wxFFileOutputStream
}{\param{FILE *
}{ fp
}}
111 Initializes a file stream in write-only mode using the file descriptor
{\it fp
}.
113 \membersection{wxFFileOutputStream::
\destruct{wxFFileOutputStream
}}\label{wxffileoutputstreamdtor
}
115 \func{}{\destruct{wxFFileOutputStream
}}{\void}
119 \membersection{wxFFileOutputStream::IsOk
}\label{wxffileoutputstreamisok
}
121 \constfunc{bool
}{IsOk
}{\void}
123 Returns true if the stream is initialized and ready.
125 % -----------------------------------------------------------------------------
127 % -----------------------------------------------------------------------------
128 \section{\class{wxFFileStream
}}\label{wxffilestream
}
130 \wxheading{Derived from
}
132 \helpref{wxFFileOutputStream
}{wxffileoutputstream
}\\
133 \helpref{wxOutputStream
}{wxoutputstream
}\\
134 \helpref{wxStreamBase
}{wxstreambase
}
136 \wxheading{Include files
}
142 \helpref{wxBase
}{librarieslist
}
146 \helpref{wxStreamBuffer
}{wxstreambuffer
}
148 \latexignore{\rtfignore{\wxheading{Members
}}}
150 \membersection{wxFFileStream::wxFFileStream
}\label{wxffilestreamctor
}
152 \func{}{wxFFileStream
}{\param{const wxString\&
}{ iofileName
}}
154 Initializes a new file stream in read-write mode using the specified
155 {\it iofilename
} name.