Go to the documentation of this file.
29 #ifndef UBLOX_GPS_WORKER_H
30 #define UBLOX_GPS_WORKER_H
32 #include <boost/date_time/posix_time/posix_time.hpp>
33 #include <boost/function.hpp>
42 typedef boost::function<void(
unsigned char*, std::size_t&)>
Callback;
62 virtual bool send(
const unsigned char* data,
const unsigned int size) = 0;
68 virtual void wait(
const boost::posix_time::time_duration& timeout) = 0;
73 virtual bool isOpen()
const = 0;
78 #endif // UBLOX_GPS_WORKER_H
Handles I/O reading and writing.
virtual void wait(const boost::posix_time::time_duration &timeout)=0
Wait for an incoming message.
virtual void setRawDataCallback(const Callback &callback)=0
Set the callback function which handles raw data.
virtual bool isOpen() const =0
Whether or not the I/O stream is open.
boost::function< void(unsigned char *, std::size_t &)> Callback
virtual bool send(const unsigned char *data, const unsigned int size)=0
Send the data in the buffer.
virtual void setCallback(const Callback &callback)=0
Set the callback function for received messages.
ublox_gps
Author(s): Johannes Meyer
autogenerated on Wed Dec 7 2022 03:47:53