#include "wx/defs.h"
-#if wxUSE_STREAMS && wxUSE_FILE
+#if wxUSE_STREAMS
#include "wx/object.h"
#include "wx/string.h"
#include "wx/file.h"
#include "wx/ffile.h"
+#if wxUSE_FILE
+
// ----------------------------------------------------------------------------
// wxFileStream using wxFile
// ----------------------------------------------------------------------------
wxFileOffset GetLength() const;
bool Ok() const { return m_file->IsOpened(); }
- bool IsSeekable() const { return m_file->GetFileType() == wxFILE_TYPE_DISK; }
+ bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
wxFileInputStream();
wxFileOffset GetLength() const;
bool Ok() const { return m_file->IsOpened(); }
- bool IsSeekable() const { return m_file->GetFileType() == wxFILE_TYPE_DISK; }
+ bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
wxFileOutputStream();
DECLARE_NO_COPY_CLASS(wxFileStream)
};
+#endif //wxUSE_FILE
+
+#if wxUSE_FFILE
+
// ----------------------------------------------------------------------------
// wxFFileStream using wxFFile
// ----------------------------------------------------------------------------
wxFileOffset GetLength() const;
bool Ok() const { return m_file->IsOpened(); }
- bool IsSeekable() const { return m_file->GetFileType() == wxFILE_TYPE_DISK; }
+ bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
wxFFileInputStream();
wxFileOffset GetLength() const;
bool Ok() const { return m_file->IsOpened(); }
- bool IsSeekable() const { return m_file->GetFileType() == wxFILE_TYPE_DISK; }
+ bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
wxFFileOutputStream();
DECLARE_NO_COPY_CLASS(wxFFileStream)
};
-#endif // wxUSE_STREAMS && wxUSE_FILE
+#endif //wxUSE_FFILE
+
+#endif // wxUSE_STREAMS
#endif // _WX_WXFSTREAM_H__