Ignore:
Timestamp:
May 27, 2000, 4:14:21 AM (25 years ago)
Author:
bird
Message:

Corrected some bugs...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/common/kFile.h

    r3592 r3613  
    1 /* $Id: kFile.h,v 1.1 2000-05-23 18:23:05 bird Exp $
     1/* $Id: kFile.h,v 1.2 2000-05-27 02:14:21 bird Exp $
    22 *
    33 * kFile - Simple (for the time being) file class.
     
    3838
    3939    /** @cat internal methods for maintaing internal structures. */
    40     BOOL            refreshFileStatus();
    41     BOOL            position();
     40    BOOL            refreshFileStatus() throw(int);
     41    BOOL            position() throw(int);
    4242
    4343public:
     
    4747
    4848    /** @cat File I/O methods */
    49     BOOL            read(void *pvBuffer, long cbBuffer);
    50     BOOL            readAt(void *pvBuffer, long cbBuffer, long off);
     49    BOOL            read(void *pvBuffer, long cbBuffer) throw(int);
     50    BOOL            readAt(void *pvBuffer, long cbBuffer, long off) throw(int);
    5151
    52     BOOL            write(void *pvBuffer, long cbBuffer);
    53     BOOL            writeAt(void *pvBuffer, long cbBuffer, long off);
     52    BOOL            write(void *pvBuffer, long cbBuffer) throw(int);
     53    BOOL            writeAt(void *pvBuffer, long cbBuffer, long off) throw(int);
    5454
    5555    /** @cat File seek methods */
    56     BOOL            move(long off);
    57     BOOL            set(long off);
    58     BOOL            end();
     56    BOOL            move(long off) throw(int);
     57    BOOL            set(long off) throw(int);
     58    BOOL            end() throw(int);
    5959    BOOL            start();
    6060
    6161    /** @cat Query methods */
    62     LONG            getSize();
    63     BOOL            isEOF();
     62    long            getSize() throw(int);
     63    long            getPos() const throw(int);
     64    BOOL            isEOF() throw(int);
    6465
    6566    /** @cat Error handling */
    6667    BOOL            setThrowOnErrors();
    6768    BOOL            setFailOnErrors();
    68     int             getLastError();
     69    int             getLastError() const;
    6970};
    7071
Note: See TracChangeset for help on using the changeset viewer.