Changeset 7620 in orxonox.OLD for branches/qt_gui/src/lib
- Timestamp:
- May 15, 2006, 3:07:58 PM (19 years ago)
- Location:
- branches/qt_gui/src/lib/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/util/file.cc
r7619 r7620 92 92 } 93 93 94 bool File::exists() 95 { 96 return (this->_status != NULL); 97 } 98 99 bool File::isLink() 94 bool File::exists() const 95 { 96 return (this->_status != NULL); 97 } 98 99 bool File::isLink() const 100 100 { 101 101 #ifndef __WIN32__ … … 107 107 // only on UNIX 108 108 109 bool File::isFile() 109 bool File::isFile() const 110 110 { 111 111 return (this->_status != NULL && this->_status->st_mode & (S_IFREG)); … … 117 117 * @returns true if it is a directory/symlink false otherwise 118 118 */ 119 bool File::isDirectory() 119 bool File::isDirectory() const 120 120 { 121 121 // checking for the termination of the string given. If there is a "/" at the end cut it away … … 130 130 131 131 /// FIXME NEXT THREE FUNCTIONS 132 bool File::isReadeable() 132 bool File::isReadeable() const 133 133 { 134 134 #ifndef __WIN32__ … … 139 139 } 140 140 141 bool File::isWriteable() 141 bool File::isWriteable() const 142 142 { 143 143 #ifndef __WIN32__ … … 147 147 #endif 148 148 } 149 bool File::isExecutable() 149 bool File::isExecutable() const 150 150 { 151 151 #ifndef __WIN32__ -
branches/qt_gui/src/lib/util/file.h
r7618 r7620 34 34 const std::string& name() const { return this->_name; }; 35 35 36 bool exists() ;37 bool isLink() ; // only on UNIX38 bool isFile() ;39 bool isDirectory() ;40 bool isReadeable() ;41 bool isWriteable() ;42 bool isExecutable() ;36 bool exists() const; 37 bool isLink() const; 38 bool isFile() const ; 39 bool isDirectory() const; 40 bool isReadeable() const; 41 bool isWriteable() const; 42 bool isExecutable() const; 43 43 44 44
Note: See TracChangeset
for help on using the changeset viewer.