diff options
Diffstat (limited to 'common/file.h')
-rw-r--r-- | common/file.h | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/common/file.h b/common/file.h index 28c99e0e38..a98d23a96a 100644 --- a/common/file.h +++ b/common/file.h @@ -126,16 +126,27 @@ public: */ const char *getName() const { return _name.c_str(); } + /** + * DEPRECATED: Use err() or eos() instead. + * Returns true if any I/O failure occurred or the end of the + * stream was reached while reading. + */ bool ioFailed() const; + + /** + * DEPRECATED: Don't use this unless you are still using ioFailed(). + * Reset the I/O error status. + */ void clearIOFailed(); - bool err() const; - void clearErr(); - bool eos() const; - virtual int32 pos() const; - virtual int32 size() const; - bool seek(int32 offs, int whence = SEEK_SET); - uint32 read(void *dataPtr, uint32 dataSize); + bool err() const; // implement abstract Stream method + void clearErr(); // implement abstract Stream method + bool eos() const; // implement abstract SeekableReadStream method + + int32 pos() const; // implement abstract SeekableReadStream method + int32 size() const; // implement abstract SeekableReadStream method + bool seek(int32 offs, int whence = SEEK_SET); // implement abstract SeekableReadStream method + uint32 read(void *dataPtr, uint32 dataSize); // implement abstract SeekableReadStream method }; |