Changeset 7621 in orxonox.OLD for branches/qt_gui/src/lib/util/file.h
- Timestamp:
- May 15, 2006, 6:35:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/util/file.h
r7620 r7621 23 23 24 24 public: 25 File(); 25 26 File(const std::string& fileName); 26 27 File(const File& file); 27 28 ~File(); 29 void setFileName(const std::string& fileName); 30 File& operator=(const std::string& fileName); 31 File& operator=(const File& file); 32 bool operator==(const std::string& fileName) const; 33 bool operator==(const File& file) const; 34 35 28 36 29 37 virtual bool open(OpenMode mode); 30 38 virtual bool close(); 31 int handle() ;39 int handle() const { return this->_handle; }; 32 40 33 41 /** @returns the FileName of this File */ … … 48 56 bool remove(); 49 57 50 static void relToAbs(std::string& fileName);51 static void absToRel(std::string& fileName);58 static void relToAbs(std::string& relFileName); 59 static void absToRel(std::string& absFileName); 52 60 static const std::string& cwd(); 53 61 54 62 private: 55 63 void init(); 56 boolstatFile();64 void statFile(); 57 65 void homeDirCheck(std::string& fileName); 58 66
Note: See TracChangeset
for help on using the changeset viewer.