Generic streaming handler for ULog messages by name. More...
#include <PX4ULogUtility.h>
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 62 of file PX4ULogUtility.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 54 of file PX4ULogUtility.cc.
References MessageHandler().
Referenced by MessageHandler().
|
virtualdefault |
References data().
|
override |
Definition at line 81 of file PX4ULogUtility.cc.
|
override |
Definition at line 96 of file PX4ULogUtility.cc.
References data().
Referenced by data(), and ~MessageHandler().
|
override |
Definition at line 63 of file PX4ULogUtility.cc.
|
inline |
Check if a fatal error occurred during parsing.
Definition at line 81 of file PX4ULogUtility.h.
|
inline |
Check if the target message format was found.
Definition at line 90 of file PX4ULogUtility.h.
|
override |
Definition at line 88 of file PX4ULogUtility.cc.
|
inline |
Check if the ULog header was successfully parsed.
Definition at line 84 of file PX4ULogUtility.h.
|
inline |
Get the number of messages processed.
Definition at line 87 of file PX4ULogUtility.h.
|
override |
Definition at line 74 of file PX4ULogUtility.cc.