Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7615 in orxonox.OLD for branches/qt_gui/src/lib


Ignore:
Timestamp:
May 15, 2006, 11:08:33 AM (19 years ago)
Author:
bensch
Message:

orxonox/qt_gui: file works… till now

File:
1 edited

Legend:

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

    r7612 r7615  
    1515
    1616#include "file.h"
     17
     18#include <sys/types.h>
     19#include <sys/stat.h>
    1720
    1821#ifdef __unix__
     
    5053#warning implement
    5154}
     55
    5256bool File::close()
    5357{
    5458#warning implement
    5559}
     60
    5661int File::handle()
    5762{
     
    6368#warning implement
    6469}
     70
    6571bool File::isLink()
    6672{
    6773#warning implement
    68 }      // only on UNIX
     74}
     75// only on UNIX
    6976bool File::isFile()
    7077{
    7178#warning implement
    7279}
     80
    7381bool File::isDirectory()
    7482{
     
    7785
    7886  // checking for the termination of the string given. If there is a "/" at the end cut it away
    79   if (directoryName[directoryName.size()-1] == '/' ||
    80       directoryName[directoryName.size()-1] == '\\')
     87  if (this->_name[this->_name.size()-1] == '/' ||
     88      this->_name[this->_name.size()-1] == '\\')
    8189  {
    8290    tmpDirName.erase(tmpDirName.size()-1);
Note: See TracChangeset for help on using the changeset viewer.