MessageHandler implementation using user-provided callbacks.
More...
#include <CallbackMessageHandler.h>
|
|
using | ValueCallback = std::function< bool(const Message< float > &, void *)> |
| |
|
using | CoordinateCallback = std::function< bool(const Message< Coordinate< float > > &, void *)> |
| |
|
using | GPSCoordinateCallback = std::function< bool(const Message< GPSCoordinate > &, void *)> |
| |
|
using | MotionStateCallback = std::function< bool(const Message< MotionState3D > &, void *)> |
| |
|
|
void * | ref = nullptr |
| |
|
ValueCallback | valueCallback_ |
| |
|
CoordinateCallback | coordinateCallback_ |
| |
|
GPSCoordinateCallback | gpsCoordinateCallback_ |
| |
|
MotionStateCallback | motionStateCallback_ |
| |
MessageHandler implementation using user-provided callbacks.
Allows setting custom callbacks for each supported message type.
◆ onMessage() [1/4]
◆ onMessage() [2/4]
| bool onMessage |
( |
const Message< float > & |
msg | ) |
|
|
inlineoverridevirtual |
Handle an incoming message (pure virtual).
This method should be implemented by derived classes to process messages.
- Parameters
-
| msg | The message to handle. |
- Returns
- true if the message was handled successfully, false otherwise.
Implements MessageHandler.
◆ onMessage() [3/4]
◆ onMessage() [4/4]
The documentation for this class was generated from the following file: