Changeset 7616 in orxonox.OLD for branches/qt_gui/src/lib/util/file.h
- Timestamp:
- May 15, 2006, 2:41:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/util/file.h
r7612 r7616 9 9 10 10 #include <string> 11 typedef struct stat; 11 12 12 13 class File … … 22 23 23 24 public: 24 File();25 25 File(const std::string& fileName); 26 26 File(const File& file); … … 30 30 virtual bool close(); 31 31 int handle(); 32 33 /** @returns the FileName of this File */ 34 const std::string& name() const { return this->_name; }; 32 35 33 36 bool exists(); … … 50 53 51 54 private: 55 void init(); 56 bool statFile; 52 57 void homeDirCheck(std::string& fileName); 53 58 54 59 private: 55 60 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. 57 63 58 64 static std::string _cwd; //!< The currend Working directory. 65 59 66 }; 60 67
Note: See TracChangeset
for help on using the changeset viewer.