|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
#include <DltParser.hpp>


Public Member Functions | |
| void | ParseData (const std::filesystem::path &filepath) override |
| Parses data from a file path. | |
| void | ParseData (std::istream &input) override |
| Parses data from an input stream. | |
| uint32_t | GetCurrentProgress () const override |
| Gets the current parsing progress. | |
| uint32_t | GetTotalProgress () const override |
| Gets the total expected progress value. | |
| virtual std::vector< std::pair< std::string, std::string > > | GetFileMetadata () const |
Ordered key → value pairs read from the file header during the last ParseData() call (see db::EventsContainer::SetFileMetadata). | |
| void | RegisterObserver (IDataParserObserver *observer) |
| Registers an observer to receive parsing notifications. | |
| void | UnregisterObserver (IDataParserObserver *observer) |
| void | NotifyNewEvent (db::LogEvent &&event) |
| void | NotifyProgressUpdated () |
| void | NotifyNewEventBatch (std::vector< std::pair< int, db::LogEvent::EventItems > > &&eventBatch) |
Private Member Functions | |
| util::Result< int, error::Error > | ParseStream (std::istream &input) |
Private Attributes | |
| uint32_t | m_currentProgress {0} |
| uint32_t | m_totalProgress {0} |
| int | m_eventId {0} |
| std::vector< IDataParserObserver * > | observers |
Parser for AUTOSAR Diagnostic Log and Trace (DLT) binary files (.dlt).
Handles files with and without the 16-byte storage header (DLT\x01 magic). Decodes verbose message payloads (string, integer, float arguments) into human-readable text; non-verbose messages are shown as MsgID + hex dump.
Emitted event fields: timestamp — seconds since trace start (from WTMS header or storage header) level — Fatal | Error | Warn | Info | Debug | Verbose (log messages) type — Log | AppTrace | NwTrace | Control AppID — 4-char application identifier ContextID — 4-char context identifier EcuID — 4-char ECU identifier MsgCtr — 8-bit message counter (wraps at 255) info — decoded payload text
|
inlineoverridevirtual |
Gets the current parsing progress.
Implements parser::IDataParser.
|
inlinevirtualinherited |
Ordered key → value pairs read from the file header during the last ParseData() call (see db::EventsContainer::SetFileMetadata).
Reimplemented in parser::SapiLogParser.
|
inlineoverridevirtual |
Gets the total expected progress value.
Implements parser::IDataParser.
|
inlineinherited |
|
inlineinherited |

|
inlineinherited |

|
overridevirtual |
Parses data from a file path.
| filepath | The path to the file to parse |
| std::runtime_error | if the file cannot be opened or parsed |
Implements parser::IDataParser.

|
overridevirtual |
Parses data from an input stream.
| input | The input stream to read data from |
| std::runtime_error | if the stream cannot be read or parsed |
Implements parser::IDataParser.

|
private |
Parse all messages from input. Returns the number of messages emitted on success, or an error if the stream could not be probed (e.g. immediate read failure).


|
inlineinherited |
Registers an observer to receive parsing notifications.
| observer | Pointer to the observer object |
|
inlineinherited |
|
private |
|
private |
|
private |
|
privateinherited |