Ignore:
Timestamp:
Aug 31, 2000, 5:00:13 AM (25 years ago)
Author:
bird
Message:

Fixes and enhancements.

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:58 bird Exp $
     1/* $Id: kFile.h,v 1.4 2000-08-31 03:00:13 bird Exp $
    22 *
    33 * kFile - Simple (for the time being) file class.
     
    2626    HFILE           hFile;              /* Pointer to stdio filehandle */
    2727    BOOL            fReadOnly;          /* True if readonly access, False is readwrite. */
    28     int             rc;                 /* Last error (return code). */
     28    APIRET          rc;                 /* Last error (return code). */
    2929    FILESTATUS4     filestatus;         /* Filestatus data. */
    3030    BOOL            fStatusClean;       /* True if filestatus is clean. False is not clean */
    3131    BOOL            fThrowErrors;       /* When true we'll throw the rc on errors, else return FALSE. */
     32    PSZ             pszFilename;        /* Pointer to filename. */
    3233
    3334    /** @cat Position datamembers */
     
    4950    BOOL            read(void *pvBuffer, long cbBuffer) throw(int);
    5051    BOOL            readAt(void *pvBuffer, long cbBuffer, long off) throw(int);
     52    void *          readFile() throw(int);
    5153
    5254    BOOL            write(void *pvBuffer, long cbBuffer) throw(int);
     
    5456
    5557    int             printf(const char *pszFormat, ...) throw (int);
     58
     59    BOOL            setSize(unsigned long cbFile = ~0UL);
    5660
    5761    /** @cat File seek methods */
     
    6569    long            getPos() const throw(int);
    6670    BOOL            isEOF() throw(int);
     71    const char *    getFilename()       { return pszFilename; }
    6772
    6873    /** @cat Error handling */
Note: See TracChangeset for help on using the changeset viewer.