Changeset 3613 for trunk/tools/common/kFile.cpp
- Timestamp:
- May 27, 2000, 4:14:21 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/common/kFile.cpp
r3592 r3613 1 /* $Id: kFile.cpp,v 1. 1 2000-05-23 18:23:05bird Exp $1 /* $Id: kFile.cpp,v 1.2 2000-05-27 02:14:20 bird Exp $ 2 2 * 3 3 * kFile - Simple (for the time being) file class. … … 47 47 48 48 49 50 49 /** 51 50 * Changes the real file position to match the virtual file position. … … 73 72 return TRUE; 74 73 } 75 76 74 77 75 … … 116 114 throw (rc); 117 115 118 if ( refreshFileStatus())116 if (!refreshFileStatus()) 119 117 throw (rc); 120 118 } 121 119 122 120 123 124 121 /** 125 122 * Closes the file. … … 129 126 DosClose(hFile); 130 127 } 131 132 128 133 129 … … 155 151 return FALSE; 156 152 } 157 158 153 159 154 … … 169 164 return set(off) && read(pvBuffer, cbBuffer); 170 165 } 171 172 166 173 167 … … 217 211 218 212 219 220 213 /** 221 214 * Seek relative to the current position. … … 298 291 299 292 300 301 293 /** 302 294 * Get the size of the file. … … 305 297 * @remark Will only throw error if refreshFileStatus failes. 306 298 */ 307 LONGkFile::getSize()299 long kFile::getSize() 308 300 { 309 301 if (!refreshFileStatus()) … … 313 305 } 314 306 307 308 /** 309 * Get current position. 310 * @returns The current file position. 311 * @remark Will only throw error if refreshFileStatus failes. 312 */ 313 long kFile::getPos() const 314 { 315 return offVirtual; 316 } 315 317 316 318 … … 334 336 335 337 336 337 338 /** 338 339 * Set error behaviour to fail by throwing the OS/2 return code when an … … 367 368 * @remark Will never throw errors. 368 369 */ 369 int kFile::getLastError() 370 int kFile::getLastError() const 370 371 { 371 372 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.