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{wxBase
}{librarieslist
}
29 \helpref{wxBufferedInputStream
}{wxbufferedinputstream
},
\helpref{wxFFileOutputStream
}{wxffileoutputstream
},
\helpref{wxFileOutputStream
}{wxfileoutputstream
}
34 \latexignore{\rtfignore{\wxheading{Members
}}}
36 \membersection{wxFFileInputStream::wxFFileInputStream
}\label{wxffileinputstreamctor
}
38 \func{}{wxFFileInputStream
}{\param{const wxString\&
}{ filename
},
\param{const wxString\&
}{ mode = "rb"
}}
40 Opens the specified file using its
{\it filename
} name using the specified mode.
42 \func{}{wxFFileInputStream
}{\param{wxFFile\&
}{ file
}}
44 Initializes a file stream in read-only mode using the file I/O object
{\it file
}.
46 \func{}{wxFFileInputStream
}{\param{FILE *
}{ fp
}}
48 Initializes a file stream in read-only mode using the specified file pointer
{\it fp
}.
50 \membersection{wxFFileInputStream::
\destruct{wxFFileInputStream
}}\label{wxffileinputstreamdtor
}
52 \func{}{\destruct{wxFFileInputStream
}}{\void}
56 \membersection{wxFFileInputStream::IsOk
}\label{wxffileinputstreamisok
}
58 \constfunc{bool
}{IsOk
}{\void}
60 Returns true if the stream is initialized and ready.
62 % -----------------------------------------------------------------------------
64 % -----------------------------------------------------------------------------
65 \section{\class{wxFFileOutputStream
}}\label{wxffileoutputstream
}
67 This class represents data written to a file. There are actually
68 two such groups of classes: this one is based on
\helpref{wxFFile
}{wxffile
}
69 whereas
\helpref{wxFileInputStream
}{wxffileinputstream
} is based in
70 the
\helpref{wxFile
}{wxfile
} class.
72 Note that
\helpref{SeekO()
}{wxoutputstreamseeko
}
73 can seek beyond the end of the stream (file) and will thus not return
74 {\it wxInvalidOffset
} for that.
76 \wxheading{Derived from
}
78 \helpref{wxOutputStream
}{wxoutputstream
}
80 \wxheading{Include files
}
86 \helpref{wxBase
}{librarieslist
}
90 \helpref{wxBufferedOutputStream
}{wxbufferedoutputstream
},
\helpref{wxFFileInputStream
}{wxffileinputstream
},
\helpref{wxFileInputStream
}{wxfileinputstream
}
95 \latexignore{\rtfignore{\wxheading{Members
}}}
97 \membersection{wxFFileOutputStream::wxFFileOutputStream
}\label{wxffileoutputstreamctor
}
99 \func{}{wxFFileOutputStream
}{\param{const wxString\&
}{ filename
},
\param{const wxString\&
}{ mode="w+b"
}}
101 Opens the file with the given
{\it filename
} name in the specified mode.
103 \func{}{wxFFileOutputStream
}{\param{wxFFile\&
}{ file
}}
105 Initializes a file stream in write-only mode using the file I/O object
{\it file
}.
107 \func{}{wxFFileOutputStream
}{\param{FILE *
}{ fp
}}
109 Initializes a file stream in write-only mode using the file descriptor
{\it fp
}.
111 \membersection{wxFFileOutputStream::
\destruct{wxFFileOutputStream
}}\label{wxffileoutputstreamdtor
}
113 \func{}{\destruct{wxFFileOutputStream
}}{\void}
117 \membersection{wxFFileOutputStream::IsOk
}\label{wxffileoutputstreamisok
}
119 \constfunc{bool
}{IsOk
}{\void}
121 Returns true if the stream is initialized and ready.
123 % -----------------------------------------------------------------------------
125 % -----------------------------------------------------------------------------
126 \section{\class{wxFFileStream
}}\label{wxffilestream
}
128 \wxheading{Derived from
}
130 \helpref{wxFFileOutputStream
}{wxffileoutputstream
},
\helpref{wxFFileInputStream
}{wxffileinputstream
}
132 \wxheading{Include files
}
138 \helpref{wxBase
}{librarieslist
}
142 \helpref{wxStreamBuffer
}{wxstreambuffer
}
144 \latexignore{\rtfignore{\wxheading{Members
}}}
146 \membersection{wxFFileStream::wxFFileStream
}\label{wxffilestreamctor
}
148 \func{}{wxFFileStream
}{\param{const wxString\&
}{ iofileName
}}
150 Initializes a new file stream in read-write mode using the specified
151 {\it iofilename
} name.