Changeset 7622 in orxonox.OLD for branches/qt_gui/src/lib
- Timestamp:
- May 15, 2006, 6:41:07 PM (19 years ago)
- Location:
- branches/qt_gui/src/lib/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/util/file.cc
r7621 r7622 83 83 } 84 84 85 85 /** 86 * @brief sets the file to the new File. 87 * @param fileName the FileName to set the File to. 88 * @returns this File. 89 */ 90 File& File::operator=(const std::string& fileName) 91 { 92 this->setFileName(fileName); 93 return *this; 94 } 95 96 /** 97 * @brief sets the file to the new File. 98 * @param file the File to set the File to. 99 * @returns this File. 100 */ 101 File& File::operator=(const File& file) 102 { 103 this->setFileName(file.name()); 104 return *this; 105 } 106 107 /** 108 * @brief compares two files. 109 * @param fileName the File to compare against the stored one. 110 * @returns true if the filenames match. 111 */ 112 bool File::operator==(const std::string& fileName) const 113 { 114 return (this->_name == fileName); 115 } 116 117 /** 118 * @brief compares two files. 119 * @param file the File to compare against the stored one. 120 * @returns true if the filenames match. 121 */ 122 bool File::operator==(const File& file) const 123 { 124 return (this->_name == file.name()); 125 } 126 127 128 129 /** 130 * @brief stats a File. 131 * Gathers information about the File, like permissions, and if it exists. 132 */ 86 133 void File::statFile() 87 134 { -
branches/qt_gui/src/lib/util/file.h
r7621 r7622 32 32 bool operator==(const std::string& fileName) const; 33 33 bool operator==(const File& file) const; 34 35 36 34 37 35 virtual bool open(OpenMode mode);
Note: See TracChangeset
for help on using the changeset viewer.