Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7616 in orxonox.OLD for branches/qt_gui/src/lib/util/file.h


Ignore:
Timestamp:
May 15, 2006, 2:41:51 PM (18 years ago)
Author:
bensch
Message:

more file stuff in File-class

File:
1 edited

Legend:

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

    r7612 r7616  
    99
    1010#include <string>
     11typedef struct stat;
    1112
    1213class File
     
    2223
    2324public:
    24   File();
    2525  File(const std::string& fileName);
    2626  File(const File& file);
     
    3030  virtual bool close();
    3131  int handle();
     32
     33  /** @returns the FileName of this File */
     34  const std::string& name() const { return this->_name; };
    3235
    3336  bool exists();
     
    5053
    5154  private:
     55    void init();
     56    bool statFile;
    5257    void homeDirCheck(std::string& fileName);
    5358
    5459  private:
    5560    int                 _handle;          //!< The FileHandle (if set).
    56     std::string         _name;             //!< The Name of the File.
     61    std::string         _name;            //!< The Name of the File.
     62    stat*               _status;          //!< The Stat of the File.
    5763
    5864    static std::string  _cwd;             //!< The currend Working directory.
     65
    5966};
    6067
Note: See TracChangeset for help on using the changeset viewer.