Template Class CallbackHandler_

Inheritance Relationships

Base Type

Class Documentation

template<typename T>
class CallbackHandler_ : public ublox_gps::CallbackHandler

Public Types

using Callback = std::function<void(const T&)>

Public Functions

inline explicit CallbackHandler_(const Callback &func = Callback(), int debug = 1)

Initialize the Callback Handler with a callback function.

Parameters:

func – a callback function for the message, defaults to none

inline virtual const T &get()

Get the last received message.

inline virtual void handle(ublox::Reader &reader) override

Decode the U-Blox message & call the callback function if it exists.

Parameters:

reader – a reader to decode the message buffer