Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7620 in orxonox.OLD for branches/qt_gui/src/lib/util/file.cc


Ignore:
Timestamp:
May 15, 2006, 3:07:58 PM (18 years ago)
Author:
bensch
Message:

some cool consts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/util/file.cc

    r7619 r7620  
    9292}
    9393
    94 bool File::exists()
    95 {
    96   return (this->_status != NULL);
    97 }
    98 
    99 bool File::isLink()
     94bool File::exists() const
     95{
     96  return (this->_status != NULL);
     97}
     98
     99bool File::isLink() const
    100100{
    101101#ifndef __WIN32__
     
    107107// only on UNIX
    108108
    109 bool File::isFile()
     109bool File::isFile() const
    110110{
    111111  return (this->_status != NULL && this->_status->st_mode & (S_IFREG));
     
    117117 * @returns true if it is a directory/symlink false otherwise
    118118 */
    119 bool File::isDirectory()
     119bool File::isDirectory() const
    120120{
    121121  // checking for the termination of the string given. If there is a "/" at the end cut it away
     
    130130
    131131/// FIXME NEXT THREE FUNCTIONS
    132 bool File::isReadeable()
     132bool File::isReadeable() const
    133133{
    134134#ifndef __WIN32__
     
    139139}
    140140
    141 bool File::isWriteable()
     141bool File::isWriteable() const
    142142{
    143143#ifndef __WIN32__
     
    147147#endif
    148148}
    149 bool File::isExecutable()
     149bool File::isExecutable() const
    150150{
    151151#ifndef __WIN32__
Note: See TracChangeset for help on using the changeset viewer.