#include <callback.h>
Public Types | |
typedef boost::function< void(const T &)> | Callback |
A callback function. | |
Public Member Functions | |
CallbackHandler_ (const Callback &func=Callback()) | |
Initialize the Callback Handler with a callback function. | |
virtual const T & | get () |
Get the last received message. | |
void | handle (ublox::Reader &reader) |
Decode the U-Blox message & call the callback function if it exists. | |
Private Attributes | |
Callback | func_ |
the callback function to handle the message | |
T | message_ |
The last received message. |
Definition at line 68 of file callback.h.
typedef boost::function<void(const T&)> ublox_gps::CallbackHandler_< T >::Callback |
A callback function.
Definition at line 70 of file callback.h.
ublox_gps::CallbackHandler_< T >::CallbackHandler_ | ( | const Callback & | func = Callback() | ) | [inline] |
Initialize the Callback Handler with a callback function.
func | a callback function for the message, defaults to none |
Definition at line 76 of file callback.h.
virtual const T& ublox_gps::CallbackHandler_< T >::get | ( | ) | [inline, virtual] |
Get the last received message.
Definition at line 81 of file callback.h.
void ublox_gps::CallbackHandler_< T >::handle | ( | ublox::Reader & | reader | ) | [inline, virtual] |
Decode the U-Blox message & call the callback function if it exists.
reader | a reader to decode the message buffer |
Implements ublox_gps::CallbackHandler.
Definition at line 87 of file callback.h.
Callback ublox_gps::CallbackHandler_< T >::func_ [private] |
the callback function to handle the message
Definition at line 114 of file callback.h.
T ublox_gps::CallbackHandler_< T >::message_ [private] |
The last received message.
Definition at line 115 of file callback.h.