static wxFile::Access() added (access() isn't ANSI neither...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
654c1d6b7b
commit
d4a00e065b
@ -17,8 +17,10 @@
|
|||||||
#pragma interface "file.h"
|
#pragma interface "file.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/string.h"
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/filefn.h"
|
#include "wx/string.h"
|
||||||
|
#include "wx/filefn.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// constants
|
// constants
|
||||||
@ -53,7 +55,6 @@ class WXDLLEXPORT wxFile
|
|||||||
public:
|
public:
|
||||||
// more file constants
|
// more file constants
|
||||||
// -------------------
|
// -------------------
|
||||||
|
|
||||||
// opening mode
|
// opening mode
|
||||||
enum OpenMode { read, write, read_write, write_append };
|
enum OpenMode { read, write, read_write, write_append };
|
||||||
// standard values for file descriptor
|
// standard values for file descriptor
|
||||||
@ -61,7 +62,11 @@ public:
|
|||||||
|
|
||||||
// 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);
|
||||||
|
|
||||||
// ctors
|
// ctors
|
||||||
// -----
|
// -----
|
||||||
|
Loading…
Reference in New Issue
Block a user