git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@503
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#pragma interface "file.h"
#endif
#pragma interface "file.h"
#endif
-#include "wx/string.h"
-#include "wx/filefn.h"
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+ #include "wx/filefn.h"
+#endif
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
// constants
public:
// more file constants
// -------------------
public:
// more file constants
// -------------------
// opening mode
enum OpenMode { read, write, read_write, write_append };
// standard values for file descriptor
// opening mode
enum OpenMode { read, write, read_write, write_append };
// standard values for file descriptor
// static functions
// ----------------
// static functions
// ----------------
- static bool Exists(const char *sz); // also checks it's a regular file
+ // check whether a regular file by this name exists
+ static bool Exists(const char *name);
+ // check whetther we can access the given file in given mode
+ // (only read and write make sense here)
+ static bool Access(const char *name, OpenMode mode);