Changeset 7623 in orxonox.OLD for branches/qt_gui/src/lib
- Timestamp:
- May 15, 2006, 6:46:33 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/util/file.cc
r7622 r7623 33 33 #include <cassert> 34 34 35 /** 36 * @brief default constructor. 37 */ 35 38 File::File() 36 39 { … … 38 41 } 39 42 43 /** 44 * @brief A File will be constructed and stated from a given FileName. 45 * @param fileName the FileName to load and stat. 46 */ 40 47 File::File(const std::string& fileName) 41 48 { … … 44 51 } 45 52 53 /** 54 * @brief A File will be constructed and stated from a given other File. 55 * @param file the File to get the Name from. 56 */ 46 57 File::File(const File& file) 47 58 { … … 124 135 return (this->_name == file.name()); 125 136 } 126 127 137 128 138 … … 233 243 bool File::copy(const File& destination) 234 244 { 245 if (*this == destination) 246 { 247 std::cout << "files are the Same '" << this->_name << "'\n"; 248 return false; 249 } 235 250 char ch; 236 251 std::ifstream iFile(this->_name.c_str()); … … 286 301 bool File::remove() 287 302 { 303 this->close(); 288 304 unlink(this->_name.c_str()); 289 305 delete this->_status; 290 306 this->_status = NULL; 291 /// FIXME HANDLE292 307 } 293 308
Note: See TracChangeset
for help on using the changeset viewer.