+
+ DECLARE_NO_COPY_CLASS(wxFileOutputStream)
+};
+
+class WXDLLIMPEXP_BASE wxFileStream : public wxFileInputStream,
+ public wxFileOutputStream
+{
+public:
+ wxFileStream(const wxString& fileName);
+
+private:
+ DECLARE_NO_COPY_CLASS(wxFileStream)
+};
+
+// ----------------------------------------------------------------------------
+// wxFFileStream using wxFFile
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_BASE wxFFileInputStream: public wxInputStream {
+ public:
+ wxFFileInputStream(const wxString& ifileName);
+ wxFFileInputStream(wxFFile& file);
+ wxFFileInputStream(FILE *file);
+ ~wxFFileInputStream();
+
+ size_t GetSize() const;
+
+ bool Ok() const { return m_file->IsOpened(); }
+
+ protected:
+ wxFFileInputStream();
+
+ size_t OnSysRead(void *buffer, size_t size);
+ off_t OnSysSeek(off_t pos, wxSeekMode mode);
+ off_t OnSysTell() const;
+
+ protected:
+ wxFFile *m_file;
+ bool m_file_destroy;
+
+ DECLARE_NO_COPY_CLASS(wxFFileInputStream)