From: Christian P. <cp...@us...> - 2005-07-03 23:42:41
|
Update of /cvsroot/pclasses/pclasses2/src/IO In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14473/src/IO Modified Files: IODevice.cpp Log Message: - Added virtual IODevice::setBlocking(), IODevice::isBlocking(), IODevice::wait() Index: IODevice.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/IO/IODevice.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- IODevice.cpp 3 Jun 2005 09:55:44 -0000 1.10 +++ IODevice.cpp 3 Jul 2005 23:42:33 -0000 1.11 @@ -170,6 +170,21 @@ return _filter ? _filter->size() : _size(); } +void IODevice::setBlocking(bool val) throw(IOError) +{ + throw IOError(0, "Could not set device blocking mode", P_SOURCEINFO); +} + +bool IODevice::isBlocking() const throw() +{ + return true; +} + +int IODevice::wait(int wait, unsigned int timeout) throw(IOError) +{ + return wait; +} + void IODevice::setFilter(IOFilter* f) throw(LogicError) { // it took me 1 hour to find out why the Pipe test crashed ... |