git-svn-id: svn://db.shs.com.ru/pip@260 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2016-09-08 04:59:52 +00:00
parent 3983ee1648
commit a37211aad3
6 changed files with 26 additions and 3 deletions

View File

@@ -46,6 +46,7 @@ typedef bool (*ReadRetFunc)(void * , uchar * , int );
#endif
class PIP_EXPORT PIIODevice: public PIThread
{
PIOBJECT_SUBCLASS(PIIODevice, PIThread)
@@ -293,7 +294,7 @@ protected:
virtual bool closeDevice() {return true;} // use path_, type_, opened_, init_ variables
//! Function executed when thread read some data, default implementation execute external slot "ret_func_"
virtual bool threadedRead(uchar * readed, int size) {if (ret_func_ != 0) return ret_func_(ret_data_, readed, size); return true;}
virtual bool threadedRead(uchar * readed, int size);
//! Reimplement to configure your device with parameters of full unambiguous string. Default implementation does nothing