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
}
19 \wxheading{Include files
}
25 \helpref{wxBufferedInputStream
}{wxbufferedinputstream
},
\helpref{wxFFileOutputStream
}{wxffileoutputstream
},
\helpref{wxFileOutputStream
}{wxfileoutputstream
}
30 \latexignore{\rtfignore{\wxheading{Members
}}}
32 \membersection{wxFFileInputStream::wxFFileInputStream
}\label{wxffileinputstreamctor
}
34 \func{}{wxFFileInputStream
}{\param{const wxString\&
}{ filename
},
\param{const wxString\&
}{ mode = "rb"
}}
36 Opens the specified file using its
{\it filename
} name using the specified mode.
38 \func{}{wxFFileInputStream
}{\param{wxFFile\&
}{ file
}}
40 Initializes a file stream in read-only mode using the file I/O object
{\it file
}.
42 \func{}{wxFFileInputStream
}{\param{FILE *
}{ fp
}}
44 Initializes a file stream in read-only mode using the specified file pointer
{\it fp
}.
46 \membersection{wxFFileInputStream::
\destruct{wxFFileInputStream
}}\label{wxffileinputstreamdtor
}
48 \func{}{\destruct{wxFFileInputStream
}}{\void}
52 \membersection{wxFFileInputStream::IsOk
}\label{wxffileinputstreamisok
}
54 \constfunc{bool
}{IsOk
}{\void}
56 Returns true if the stream is initialized and ready.
58 % -----------------------------------------------------------------------------
60 % -----------------------------------------------------------------------------
61 \section{\class{wxFFileOutputStream
}}\label{wxffileoutputstream
}
63 This class represents data written to a file. There are actually
64 two such groups of classes: this one is based on
\helpref{wxFFile
}{wxffile
}
65 whereas
\helpref{wxFileInputStream
}{wxffileinputstream
} is based in
66 the
\helpref{wxFile
}{wxfile
} class.
68 Note that
\helpref{SeekO()
}{wxoutputstreamseeko
}
69 can seek beyond the end of the stream (file) and will thus not return
70 {\it wxInvalidOffset
} for that.
72 \wxheading{Derived from
}
74 \helpref{wxOutputStream
}{wxoutputstream
}
76 \wxheading{Include files
}
82 \helpref{wxBufferedOutputStream
}{wxbufferedoutputstream
},
\helpref{wxFFileInputStream
}{wxffileinputstream
},
\helpref{wxFileInputStream
}{wxfileinputstream
}
87 \latexignore{\rtfignore{\wxheading{Members
}}}
89 \membersection{wxFFileOutputStream::wxFFileOutputStream
}\label{wxffileoutputstreamctor
}
91 \func{}{wxFFileOutputStream
}{\param{const wxString\&
}{ filename
},
\param{const wxString\&
}{ mode="w+b"
}}
93 Opens the file with the given
{\it filename
} name in the specified mode.
95 \func{}{wxFFileOutputStream
}{\param{wxFFile\&
}{ file
}}
97 Initializes a file stream in write-only mode using the file I/O object
{\it file
}.
99 \func{}{wxFFileOutputStream
}{\param{FILE *
}{ fp
}}
101 Initializes a file stream in write-only mode using the file descriptor
{\it fp
}.
103 \membersection{wxFFileOutputStream::
\destruct{wxFFileOutputStream
}}\label{wxffileoutputstreamdtor
}
105 \func{}{\destruct{wxFFileOutputStream
}}{\void}
109 \membersection{wxFFileOutputStream::IsOk
}\label{wxffileoutputstreamisok
}
111 \constfunc{bool
}{IsOk
}{\void}
113 Returns true if the stream is initialized and ready.
115 % -----------------------------------------------------------------------------
117 % -----------------------------------------------------------------------------
118 \section{\class{wxFFileStream
}}\label{wxffilestream
}
120 \wxheading{Derived from
}
122 \helpref{wxFFileOutputStream
}{wxffileoutputstream
},
\helpref{wxFFileInputStream
}{wxffileinputstream
}
124 \wxheading{Include files
}
130 \helpref{wxStreamBuffer
}{wxstreambuffer
}
132 \latexignore{\rtfignore{\wxheading{Members
}}}
134 \membersection{wxFFileStream::wxFFileStream
}\label{wxffilestreamctor
}
136 \func{}{wxFFileStream
}{\param{const wxString\&
}{ iofileName
}}
138 Initializes a new file stream in read-write mode using the specified
139 {\it iofilename
} name.