|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <ULogUtility.h>
Inheritance diagram for ULogUtility::MessageHandler:
Collaboration diagram for ULogUtility::MessageHandler:Public Member Functions | |
| MessageHandler (const std::string &messageName, const MessageCallback &callback, QString &errorMsg) | |
| virtual | ~MessageHandler ()=default |
| void | error (const std::string &msg, bool is_recoverable) override |
| void | messageFormat (const ulog_cpp::MessageFormat &message_format) override |
| void | addLoggedMessage (const ulog_cpp::AddLoggedMessage &add_logged_message) override |
| void | headerComplete () override |
| void | data (const ulog_cpp::Data &data) override |
| bool | hadFatalError () const |
| Check if a fatal error occurred during parsing. | |
| bool | isHeaderComplete () const |
| Check if the ULog header was successfully parsed. | |
| int | messageCount () const |
| Get the number of messages processed. | |
| bool | hasMessageFormat () const |
| Check if the target message format was found. | |
Generic streaming handler for ULog messages by name Filters messages by name and calls a callback for each matching message
Definition at line 63 of file ULogUtility.h.
|
explicit |
Create a handler that filters for a specific message type
| messageName | Name of the message to filter for (e.g., "camera_capture") |
| callback | Function called for each matching message |
| errorMsg | Reference to store error messages |
Definition at line 55 of file ULogUtility.cc.
|
virtualdefault |
|
override |
Definition at line 82 of file ULogUtility.cc.
|
override |
|
override |
Definition at line 64 of file ULogUtility.cc.
|
inline |
Check if a fatal error occurred during parsing.
Definition at line 82 of file ULogUtility.h.
|
inline |
Check if the target message format was found.
Definition at line 91 of file ULogUtility.h.
|
override |
Definition at line 89 of file ULogUtility.cc.
|
inline |
Check if the ULog header was successfully parsed.
Definition at line 85 of file ULogUtility.h.
|
inline |
Get the number of messages processed.
Definition at line 88 of file ULogUtility.h.
|
override |
Definition at line 75 of file ULogUtility.cc.