|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Data parsing components and interfaces. More...
Namespaces | |
| namespace | anonymous_namespace{AscParser.cpp} |
| namespace | anonymous_namespace{ParserFactory.cpp} |
| namespace | anonymous_namespace{SapiLogParser.cpp} |
| namespace | dbc |
Classes | |
| class | AscParser |
| Parses Vector CANalyzer ASC log files (.asc). More... | |
| class | CsvParser |
| Parses CSV formatted log files. More... | |
| class | DltParser |
| class | EvlogParser |
| struct | EvlogTemplate |
| struct | EvlogTemplateField |
| class | EvlogTemplateRegistry |
| class | IDataParser |
| Abstract base class for all data parsing implementations. More... | |
| class | IDataParserObserver |
| Observer interface for receiving notifications from data parsers. More... | |
| class | JsonParser |
| class | ParserFactory |
| Factory class for creating parser instances. More... | |
| struct | ParserState |
| class | SapiLogParser |
| Parses merged test-run logs produced by the safeAPI RBC 2oo2 test environment (robot steps + container + simulator logs in one file). More... | |
| class | XmlParser |
Enumerations | |
| enum class | ParserType { XML , JSON , CSV , Custom } |
| Supported parser types. More... | |
Functions | |
| static uint16_t | BE16 (const uint8_t *p) noexcept |
| static uint32_t | BE32 (const uint8_t *p) noexcept |
| static uint16_t | LE16 (const uint8_t *p) noexcept |
| static uint32_t | LE32 (const uint8_t *p) noexcept |
| static std::string | ReadId4 (const uint8_t *p) |
| Extract a null-padded 4-char ID (ECU/App/Ctx) as a trimmed std::string. | |
| static std::string | HexDump (const uint8_t *data, size_t size, size_t maxBytes=16) |
| Hex dump of up to maxBytes bytes (space-separated uppercase). | |
| static std::string | DecodeArg (const uint8_t *data, size_t avail, size_t &consumed, bool msbf) |
| static std::string | DecodeVerbose (const uint8_t *payload, size_t size, bool msbf, uint8_t numArgs) |
| Decode all verbose arguments into a single space-joined string. | |
| static uint16_t | LE16u (const uint8_t *p) noexcept |
| static uint32_t | LE32u (const uint8_t *p) noexcept |
| static int32_t | LE32s (const uint8_t *p) noexcept |
| static uint64_t | LE64u (const uint8_t *p) noexcept |
| static const char * | SeverityName (int32_t s) noexcept |
| static const char * | FacilityName (int32_t fac) noexcept |
| static std::string | FlagsString (uint32_t flags) |
| static std::string | HexDump (const uint8_t *data, size_t size, size_t maxBytes=32) |
| static std::string | DecodeWithTemplate (const uint8_t *data, uint32_t size, const EvlogTemplate &tmpl) |
| static std::string | DecodeString (const uint8_t *data, uint32_t size) |
| static std::string | DecodePrintf (const uint8_t *data, uint32_t size) |
| static std::string | Trim (const std::string &s) |
| static std::string | Unquote (const std::string &s) |
| static std::string | StripComment (const std::string &line) |
| static std::string | NormalizeKeyword (const std::string &s) |
| static int32_t | ParseFacility (const std::string &s) |
| static uint32_t | ParseUint32 (const std::string &s) |
| static EvlogTemplateField::Type | MapType (const std::string &t) |
| static std::optional< EvlogTemplateField > | ParseFieldDecl (std::string line) |
| static void | CommitTemplate (EvlogTemplate &tmpl, std::map< std::pair< int32_t, uint32_t >, EvlogTemplate > &out) |
| static void | StartElementHandler (void *userData, const XML_Char *name, const XML_Char **atts) |
| static void | EndElementHandler (void *userData, const XML_Char *name) |
| static void | CharacterDataHandler (void *userData, const XML_Char *s, int len) |
Variables | |
| static constexpr uint8_t | kMagic [4] = {'D', 'L', 'T', 0x01} |
| static constexpr size_t | kStorageHdrSize = 16 |
| static constexpr size_t | kProgressBatch = 512 |
| static constexpr uint8_t | HTYP_UEH = 0x01 |
| static constexpr uint8_t | HTYP_MSBF = 0x02 |
| static constexpr uint8_t | HTYP_WEID = 0x04 |
| static constexpr uint8_t | HTYP_WSID = 0x08 |
| static constexpr uint8_t | HTYP_WTMS = 0x10 |
| static constexpr uint8_t | DLT_TYPE_LOG = 0 |
| static constexpr uint32_t | TI_TYLE = 0x0000000Fu |
| static constexpr uint32_t | TI_BOOL = (1u << 4) |
| static constexpr uint32_t | TI_SINT = (1u << 5) |
| static constexpr uint32_t | TI_UINT = (1u << 6) |
| static constexpr uint32_t | TI_FLOA = (1u << 7) |
| static constexpr uint32_t | TI_STRG = (1u << 9) |
| static constexpr uint32_t | TI_RAWD = (1u << 10) |
| static constexpr uint32_t | TI_VARI = (1u << 11) |
| static const char *const | kLogLevels [] |
| static const char *const | kMsgTypes [] |
| static constexpr size_t | kHdrSize = 60 |
| static constexpr size_t | kProgressBatch = 512 |
| static constexpr size_t | kOff_recid = 0 |
| static constexpr size_t | kOff_size = 4 |
| static constexpr size_t | kOff_format = 8 |
| static constexpr size_t | kOff_event_type = 12 |
| static constexpr size_t | kOff_facility = 16 |
| static constexpr size_t | kOff_severity = 20 |
| static constexpr size_t | kOff_uid = 24 |
| static constexpr size_t | kOff_gid = 28 |
| static constexpr size_t | kOff_pid = 32 |
| static constexpr size_t | kOff_tv_sec = 40 |
| static constexpr size_t | kOff_tv_nsec = 44 |
| static constexpr size_t | kOff_flags = 48 |
| static constexpr size_t | kOff_processor = 56 |
| static constexpr uint32_t | F_TRUNCATE = 0x01 |
| static constexpr uint32_t | F_KERNEL = 0x02 |
| static constexpr uint32_t | F_BOOT = 0x04 |
| static constexpr uint32_t | F_KERNTIME = 0x08 |
| static constexpr uint32_t | F_INTERRUPT = 0x10 |
| static constexpr uint32_t | F_PRINTK = 0x20 |
| static constexpr uint32_t | kMaxPayload = 64 * 1024 |
| static constexpr int32_t | kMaxSeverity = 7 |
Data parsing components and interfaces.
|
strong |
|
staticnoexcept |

|
staticnoexcept |

|
static |


|
static |

|
static |
Decode one typed argument from data[0..avail). Sets consumed to the number of bytes consumed (0 on parse failure).


|
static |


|
static |

|
static |
Decode all verbose arguments into a single space-joined string.


|
static |


|
static |


|
staticnoexcept |

|
static |

|
static |
Hex dump of up to maxBytes bytes (space-separated uppercase).

|
static |
|
staticnoexcept |

|
staticnoexcept |

|
staticnoexcept |

|
staticnoexcept |


|
staticnoexcept |

|
staticnoexcept |


|
static |

|
static |

|
static |

|
static |


|
static |

|
static |
Extract a null-padded 4-char ID (ECU/App/Ctx) as a trimmed std::string.

|
staticnoexcept |

|
static |


|
static |

|
static |

|
static |

|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |