#ifndef _WX_WXFSTREAM_H__
#define _WX_WXFSTREAM_H__
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface "wfstream.h"
-#endif
-
#include "wx/defs.h"
#if wxUSE_STREAMS
wxFileInputStream(const wxString& ifileName);
wxFileInputStream(wxFile& file);
wxFileInputStream(int fd);
- ~wxFileInputStream();
+ virtual ~wxFileInputStream();
wxFileOffset GetLength() const;
- bool Ok() const { return m_file->IsOpened(); }
+ bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); }
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
bool Close() { return m_file_destroy ? m_file->Close() : true; }
wxFileOffset GetLength() const;
- bool Ok() const { return m_file->IsOpened(); }
+ bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); }
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
wxFFileInputStream(const wxString& fileName, const wxChar *mode = _T("rb"));
wxFFileInputStream(wxFFile& file);
wxFFileInputStream(FILE *file);
- ~wxFFileInputStream();
+ virtual ~wxFFileInputStream();
wxFileOffset GetLength() const;
- bool Ok() const { return m_file->IsOpened(); }
+ bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); }
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
bool Close() { return m_file_destroy ? m_file->Close() : true; }
wxFileOffset GetLength() const;
- bool Ok() const { return m_file->IsOpened(); }
+ bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); }
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected: