LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
DltParser.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "Error.hpp"
4#include "IDataParser.hpp"
5#include "Result.hpp"
6
7#include <filesystem>
8#include <iosfwd>
9
10namespace parser {
11
27class DltParser : public IDataParser
28{
29 public:
30 void ParseData(const std::filesystem::path& filepath) override;
31 void ParseData(std::istream& input) override;
32
33 uint32_t GetCurrentProgress() const override { return m_currentProgress; }
34 uint32_t GetTotalProgress() const override { return m_totalProgress; }
35
36 private:
41
42 uint32_t m_currentProgress {0};
43 uint32_t m_totalProgress {0};
44 int m_eventId {0};
45};
46
47} // namespace parser
Error handling utilities.
Interface definitions for data parsing components.
Definition DltParser.hpp:28
int m_eventId
Definition DltParser.hpp:44
util::Result< int, error::Error > ParseStream(std::istream &input)
Definition DltParser.cpp:265
uint32_t m_totalProgress
Definition DltParser.hpp:43
uint32_t GetCurrentProgress() const override
Gets the current parsing progress.
Definition DltParser.hpp:33
uint32_t m_currentProgress
Definition DltParser.hpp:42
uint32_t GetTotalProgress() const override
Gets the total expected progress value.
Definition DltParser.hpp:34
void ParseData(const std::filesystem::path &filepath) override
Parses data from a file path.
Definition DltParser.cpp:228
Abstract base class for all data parsing implementations.
Definition IDataParser.hpp:110
Definition Result.hpp:15
Data parsing components and interfaces.
Definition IControler.hpp:22