LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
IStatisticsStrategy.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5
6namespace db { class EventsContainer; }
7
8namespace ui::qt {
9
10struct StatRow {
11 std::string label;
12 std::string value;
13};
14
16 std::string title;
17 std::vector<StatRow> rows;
18};
19
21public:
22 virtual ~IStatisticsStrategy() = default;
23
25 virtual bool Matches(db::EventsContainer& events) const = 0;
26
28 virtual std::vector<StatsSection> Compute(
29 db::EventsContainer& events,
30 const std::vector<unsigned long>& indices) const = 0;
31};
32
33} // namespace ui::qt
High-performance, thread-safe container for managing large collections of LogEvent objects.
Definition EventsContainer.hpp:129
Definition IStatisticsStrategy.hpp:20
virtual bool Matches(db::EventsContainer &events) const =0
Returns true if this strategy is applicable to the current event data.
virtual ~IStatisticsStrategy()=default
virtual std::vector< StatsSection > Compute(db::EventsContainer &events, const std::vector< unsigned long > &indices) const =0
Compute format-specific statistics for the given visible event indices.
Database and data model components for the LogViewer application.
Definition EventsContainer.cpp:17
Definition ConfigEditorDialog.cpp:19
Definition IStatisticsStrategy.hpp:10
std::string label
Definition IStatisticsStrategy.hpp:11
std::string value
Definition IStatisticsStrategy.hpp:12
Definition IStatisticsStrategy.hpp:15
std::vector< StatRow > rows
Definition IStatisticsStrategy.hpp:17
std::string title
Definition IStatisticsStrategy.hpp:16