Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

some cool consts

Location:
branches/qt_gui/src/lib/util
Files:
2 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__
  • branches/qt_gui/src/lib/util/file.h

    r7618 r7620  
    3434  const std::string& name() const { return this->_name; };
    3535
    36   bool exists();
    37   bool isLink();      // only on UNIX
    38   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;
    4343
    4444
Note: See TracChangeset for help on using the changeset viewer.