projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Native wxStaticText. Cleaning of wxRadioBox code before native implementation. Events...
[wxWidgets.git]
/
include
/
wx
/
ffile.h
diff --git
a/include/wx/ffile.h
b/include/wx/ffile.h
index fcc212c96ac1dfe6ccab64858942e2661e9d5e72..0236e154bfc6d3aac06b3b5b3c3f87f6a57ac4ec 100644
(file)
--- a/
include/wx/ffile.h
+++ b/
include/wx/ffile.h
@@
-6,13
+6,13
@@
// Created: 14.07.99
// RCS-ID: $Id$
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Created: 14.07.99
// RCS-ID: $Id$
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence: wxWindows licen
s
e
+// Licence: wxWindows licen
c
e
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_FFILE_H_
#define _WX_FFILE_H_
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_FFILE_H_
#define _WX_FFILE_H_
-#if defined(__GNUG__) && !defined(
__APPLE__
)
+#if defined(__GNUG__) && !defined(
NO_GCC_PRAGMA
)
#pragma interface "ffile.h"
#endif
#pragma interface "ffile.h"
#endif
@@
-34,7
+34,7
@@
// dtor which is _not_ virtual, so it shouldn't be used as a base class.
// ----------------------------------------------------------------------------
// dtor which is _not_ virtual, so it shouldn't be used as a base class.
// ----------------------------------------------------------------------------
-class WXDLL
EXPORT
wxFFile
+class WXDLL
IMPEXP_BASE
wxFFile
{
public:
// ctors
{
public:
// ctors
@@
-53,7
+53,7
@@
public:
bool Close();
// assign an existing file descriptor and get it back from wxFFile object
bool Close();
// assign an existing file descriptor and get it back from wxFFile object
- void Attach(FILE *fp, const wxString& name = wx
T("")
)
+ void Attach(FILE *fp, const wxString& name = wx
EmptyString
)
{ Close(); m_fp = fp; m_name = name; }
void Detach() { m_fp = NULL; }
FILE *fp() const { return m_fp; }
{ Close(); m_fp = fp; m_name = name; }
void Detach() { m_fp = NULL; }
FILE *fp() const { return m_fp; }
@@
-78,15
+78,16
@@
public:
// file pointer operations (return ofsInvalid on failure)
// move ptr ofs bytes related to start/current pos/end of file
// file pointer operations (return ofsInvalid on failure)
// move ptr ofs bytes related to start/current pos/end of file
- bool Seek(
long
ofs, wxSeekMode mode = wxFromStart);
+ bool Seek(
wxFileOffset
ofs, wxSeekMode mode = wxFromStart);
// move ptr to ofs bytes before the end
// move ptr to ofs bytes before the end
- bool SeekEnd(
long
ofs = 0) { return Seek(ofs, wxFromEnd); }
+ bool SeekEnd(
wxFileOffset
ofs = 0) { return Seek(ofs, wxFromEnd); }
// get current position in the file
// get current position in the file
-
size_
t Tell() const;
+
wxFileOffse
t Tell() const;
// get current file length
// get current file length
-
size_
t Length() const;
+
wxFileOffse
t Length() const;
- // simple accessors
+ // simple accessors: note that Eof() and Error() may only be called if
+ // IsOpened()!
// is file opened?
bool IsOpened() const { return m_fp != NULL; }
// is end of file reached?
// is file opened?
bool IsOpened() const { return m_fp != NULL; }
// is end of file reached?