git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44013
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); }
wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); }
- virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); }
+ virtual bool IsOk() const;
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); }
wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); }
- virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); }
+ virtual bool IsOk() const;
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); }
wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); }
- virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); }
+ virtual bool IsOk() const;
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); }
wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); }
- virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); }
+ virtual bool IsOk() const ;
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
+bool wxFileInputStream::IsOk() const
+{
+ return (wxStreamBase::IsOk() && m_file->IsOpened());
+}
+
// ----------------------------------------------------------------------------
// wxFileOutputStream
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxFileOutputStream
// ----------------------------------------------------------------------------
return m_file->Length();
}
return m_file->Length();
}
+bool wxFileOutputStream::IsOk() const
+{
+ return (wxStreamBase::IsOk() && m_file->IsOpened());
+}
+
// ----------------------------------------------------------------------------
// wxTempFileOutputStream
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxTempFileOutputStream
// ----------------------------------------------------------------------------
+bool wxFFileInputStream::IsOk() const
+{
+ return (wxStreamBase::IsOk() && m_file->IsOpened());
+}
+
// ----------------------------------------------------------------------------
// wxFFileOutputStream
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxFFileOutputStream
// ----------------------------------------------------------------------------
return m_file->Length();
}
return m_file->Length();
}
+bool wxFFileOutputStream::IsOk() const
+{
+ return (wxStreamBase::IsOk() && m_file->IsOpened());
+}
+
// ----------------------------------------------------------------------------
// wxFFileStream
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxFFileStream
// ----------------------------------------------------------------------------