wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); }
- virtual bool IsOk() const ;
+ virtual bool IsOk() const;
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
{
public:
wxFFileStream(const wxString& fileName);
+ virtual bool IsOk() const;
private:
DECLARE_NO_COPY_CLASS(wxFFileStream)
bool wxFileInputStream::IsOk() const
{
- return wxStreamBase::IsOk() && m_file->IsOpened();
+ return wxInputStream::IsOk() && m_file->IsOpened();
}
// ----------------------------------------------------------------------------
bool wxFileOutputStream::IsOk() const
{
- return wxStreamBase::IsOk() && m_file->IsOpened();
+ return wxOutputStream::IsOk() && m_file->IsOpened();
}
// ----------------------------------------------------------------------------
bool wxFileStream::IsOk() const
{
- return wxFileOutputStream::IsOk() && wxFileInputStream::m_file->IsOpened();
+ return wxFileOutputStream::IsOk() && wxFileInputStream::IsOk();
}
-#endif //wxUSE_FILE
+#endif // wxUSE_FILE
#if wxUSE_FFILE
wxFFileOutputStream::m_file = wxFFileInputStream::m_file;
}
+bool wxFFileStream::IsOk() const
+{
+ return wxFFileOutputStream::IsOk() && wxFFileInputStream::IsOk();
+}
+
#endif //wxUSE_FFILE
#endif // wxUSE_STREAMS