Handles I/O reading and writing.
More...
#include <worker.h>
|
typedef boost::function< void(unsigned char *, std::size_t &)> | Callback |
|
|
virtual bool | isOpen () const =0 |
| Whether or not the I/O stream is open. More...
|
|
virtual bool | send (const unsigned char *data, const unsigned int size)=0 |
| Send the data in the buffer. More...
|
|
virtual void | setCallback (const Callback &callback)=0 |
| Set the callback function for received messages. More...
|
|
virtual void | setRawDataCallback (const Callback &callback)=0 |
| Set the callback function which handles raw data. More...
|
|
virtual void | wait (const boost::posix_time::time_duration &timeout)=0 |
| Wait for an incoming message. More...
|
|
virtual | ~Worker () |
|
Handles I/O reading and writing.
Definition at line 40 of file worker.h.
virtual ublox_gps::Worker::~Worker |
( |
| ) |
|
|
inlinevirtual |
virtual bool ublox_gps::Worker::isOpen |
( |
| ) |
const |
|
pure virtual |
virtual bool ublox_gps::Worker::send |
( |
const unsigned char * |
data, |
|
|
const unsigned int |
size |
|
) |
| |
|
pure virtual |
virtual void ublox_gps::Worker::setCallback |
( |
const Callback & |
callback | ) |
|
|
pure virtual |
Set the callback function for received messages.
- Parameters
-
callback | the callback function which process messages in the buffer |
Implemented in ublox_gps::AsyncWorker< StreamT >.
virtual void ublox_gps::Worker::setRawDataCallback |
( |
const Callback & |
callback | ) |
|
|
pure virtual |
virtual void ublox_gps::Worker::wait |
( |
const boost::posix_time::time_duration & |
timeout | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: