LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
DltParser.cpp File Reference
#include "DltParser.hpp"
#include "Error.hpp"
#include "LogEvent.hpp"
#include "Logger.hpp"
#include "Result.hpp"
#include <cstring>
#include <filesystem>
#include <fstream>
#include <stdexcept>
#include <string>
#include <vector>
Include dependency graph for DltParser.cpp:

Namespaces

namespace  parser
 Data parsing components and interfaces.
 

Functions

static uint16_t parser::BE16 (const uint8_t *p) noexcept
 
static uint32_t parser::BE32 (const uint8_t *p) noexcept
 
static uint16_t parser::LE16 (const uint8_t *p) noexcept
 
static uint32_t parser::LE32 (const uint8_t *p) noexcept
 
static std::string parser::ReadId4 (const uint8_t *p)
 Extract a null-padded 4-char ID (ECU/App/Ctx) as a trimmed std::string.
 
static std::string parser::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 parser::DecodeArg (const uint8_t *data, size_t avail, size_t &consumed, bool msbf)
 
static std::string parser::DecodeVerbose (const uint8_t *payload, size_t size, bool msbf, uint8_t numArgs)
 Decode all verbose arguments into a single space-joined string.
 

Variables

static constexpr uint8_t parser::kMagic [4] = {'D', 'L', 'T', 0x01}
 
static constexpr size_t parser::kStorageHdrSize = 16
 
static constexpr size_t parser::kProgressBatch = 512
 
static constexpr uint8_t parser::HTYP_UEH = 0x01
 
static constexpr uint8_t parser::HTYP_MSBF = 0x02
 
static constexpr uint8_t parser::HTYP_WEID = 0x04
 
static constexpr uint8_t parser::HTYP_WSID = 0x08
 
static constexpr uint8_t parser::HTYP_WTMS = 0x10
 
static constexpr uint8_t parser::DLT_TYPE_LOG = 0
 
static constexpr uint32_t parser::TI_TYLE = 0x0000000Fu
 
static constexpr uint32_t parser::TI_BOOL = (1u << 4)
 
static constexpr uint32_t parser::TI_SINT = (1u << 5)
 
static constexpr uint32_t parser::TI_UINT = (1u << 6)
 
static constexpr uint32_t parser::TI_FLOA = (1u << 7)
 
static constexpr uint32_t parser::TI_STRG = (1u << 9)
 
static constexpr uint32_t parser::TI_RAWD = (1u << 10)
 
static constexpr uint32_t parser::TI_VARI = (1u << 11)
 
static const char *const parser::kLogLevels []
 
static const char *const parser::kMsgTypes []