Changeset 4129 for trunk/tools/common/kFile.h
- Timestamp:
- Aug 31, 2000, 5:00:13 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/common/kFile.h
r3629 r4129 1 /* $Id: kFile.h,v 1. 3 2000-05-29 19:45:58bird Exp $1 /* $Id: kFile.h,v 1.4 2000-08-31 03:00:13 bird Exp $ 2 2 * 3 3 * kFile - Simple (for the time being) file class. … … 26 26 HFILE hFile; /* Pointer to stdio filehandle */ 27 27 BOOL fReadOnly; /* True if readonly access, False is readwrite. */ 28 intrc; /* Last error (return code). */28 APIRET rc; /* Last error (return code). */ 29 29 FILESTATUS4 filestatus; /* Filestatus data. */ 30 30 BOOL fStatusClean; /* True if filestatus is clean. False is not clean */ 31 31 BOOL fThrowErrors; /* When true we'll throw the rc on errors, else return FALSE. */ 32 PSZ pszFilename; /* Pointer to filename. */ 32 33 33 34 /** @cat Position datamembers */ … … 49 50 BOOL read(void *pvBuffer, long cbBuffer) throw(int); 50 51 BOOL readAt(void *pvBuffer, long cbBuffer, long off) throw(int); 52 void * readFile() throw(int); 51 53 52 54 BOOL write(void *pvBuffer, long cbBuffer) throw(int); … … 54 56 55 57 int printf(const char *pszFormat, ...) throw (int); 58 59 BOOL setSize(unsigned long cbFile = ~0UL); 56 60 57 61 /** @cat File seek methods */ … … 65 69 long getPos() const throw(int); 66 70 BOOL isEOF() throw(int); 71 const char * getFilename() { return pszFilename; } 67 72 68 73 /** @cat Error handling */
Note:
See TracChangeset
for help on using the changeset viewer.