1 #ifndef CARMA_UI_RTD_READERWITHTIMEOUT_H
2 #define CARMA_UI_RTD_READERWITHTIMEOUT_H
49 bool getBytes(std::string &bytes, struct ::timeval tv);
69 bool getNBytes(
int nBytes, struct ::timeval *tv, std::string &bytes);
72 struct ::timeval defaultTimeout;
80 #endif // CARMA_UI_RTD_READERWITHTIMEOUT_H
int getErrorCode() const
Get error code of last IO.
Read a series of bytes with a timeout and return a raw byte string with the contents of the read...
bool getBytes(std::string &bytes, struct::timeval tv)
Read input from file and put into input string.
ReaderWithTimeout()
Constructor.