From: Christian P. <cp...@us...> - 2005-01-06 17:24:29
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/IO In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22206/include/pclasses/IO Modified Files: IOFilter.h ZLib.h ZLibIOFilter.h Log Message: Fix for IODevice::eof() - must be also proxied through the filter. Index: ZLibIOFilter.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/IO/ZLibIOFilter.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ZLibIOFilter.h 6 Jan 2005 16:47:47 -0000 1.1 +++ ZLibIOFilter.h 6 Jan 2005 17:24:20 -0000 1.2 @@ -43,6 +43,8 @@ bool isSeekable(); + bool eof() const throw(); + size_t read(char* buffer, size_t count) throw(IOError); size_t write(const char* buffer, size_t count) Index: IOFilter.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/IO/IOFilter.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- IOFilter.h 6 Jan 2005 16:40:14 -0000 1.2 +++ IOFilter.h 6 Jan 2005 17:24:20 -0000 1.3 @@ -41,6 +41,8 @@ virtual bool isSeekable(); + virtual bool eof() const throw(); + virtual size_t read(char* buffer, size_t count) throw(IOError); virtual size_t write(const char* buffer, size_t count) Index: ZLib.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/IO/ZLib.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ZLib.h 6 Jan 2005 16:41:38 -0000 1.2 +++ ZLib.h 6 Jan 2005 17:24:20 -0000 1.3 @@ -107,8 +107,13 @@ */ size_t inflate(const char* buffer, size_t count) throw(ZLibError); + bool eof() const throw(); + //! Reset stream void reset() throw(ZLibError); + + private: + bool _eof; }; } // !namespace IO |