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:
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: