]> git.saurik.com Git - wxWidgets.git/commitdiff
File/DirExists() are const now
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 25 Jan 2003 12:01:57 +0000 (12:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 25 Jan 2003 12:01:57 +0000 (12:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/filename.tex
include/wx/filename.h
src/common/filename.cpp

index 444f29025e9032bcf1445abb1ab260ecacb9d00d..a93a18c7ef96beb53aa9ea50b68213f677556b7a 100644 (file)
@@ -257,9 +257,9 @@ The full temporary file name or an empty string on error.
 
 \membersection{wxFileName::DirExists}\label{wxfilenamedirexists}
 
-\func{bool}{DirExists}{\void}
+\constfunc{bool}{DirExists}{\void}
 
-\func{bool}{DirExists}{\param{const wxString\& }{dir}}
+\func{static bool}{DirExists}{\param{const wxString\& }{dir}}
 
 Returns true if the directory with this name exists.
 
@@ -271,12 +271,16 @@ Returns the directory name.
 
 \membersection{wxFileName::FileExists}\label{wxfilenamefileexists}
 
-\func{bool}{FileExists}{\void}
+\constfunc{bool}{FileExists}{\void}
 
-\func{bool}{FileExists}{\param{const wxString\& }{file}}
+\func{static bool}{FileExists}{\param{const wxString\& }{file}}
 
 Returns true if the file with this name exists.
 
+\wxheading{See also}
+
+\helpref{DirExists}{wxfilenamedirexists}
+
 \membersection{wxFileName::FileName}\label{wxfilenamefilename}
 
 \func{wxFileName}{FileName}{\param{const wxString\& }{file}}
index 363ef728795ef506bfd97ea68584456b5f877310..7e9ee03a7bc8300e84496a1ea85af7d1b0e0fa5d 100644 (file)
@@ -175,11 +175,11 @@ public:
     bool IsOk() const { return !m_dirs.IsEmpty() || !m_name.IsEmpty(); }
 
         // does the file with this name exists?
-    bool FileExists();
+    bool FileExists() const;
     static bool FileExists( const wxString &file );
 
         // does the directory with this name exists?
-    bool DirExists();
+    bool DirExists() const;
     static bool DirExists( const wxString &dir );
 
         // VZ: also need: IsDirWritable(), IsFileExecutable() &c (TODO)
index f56ec3d5ef0829e639c9c7eb11275c2497773473..c9a32ea66988b7a1054347ad5db7b9d38bdab126 100644 (file)
@@ -461,7 +461,7 @@ wxFileName wxFileName::DirName(const wxString& dir)
 // existence tests
 // ----------------------------------------------------------------------------
 
-bool wxFileName::FileExists()
+bool wxFileName::FileExists() const
 {
     return wxFileName::FileExists( GetFullPath() );
 }
@@ -471,7 +471,7 @@ bool wxFileName::FileExists( const wxString &file )
     return ::wxFileExists( file );
 }
 
-bool wxFileName::DirExists()
+bool wxFileName::DirExists() const
 {
     return wxFileName::DirExists( GetFullPath() );
 }