LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
ui::qt::utils::ReportGenerator Class Reference

Report generation system for v1.10.0 Phase 11. More...

#include <ReportGenerator.hpp>

Collaboration diagram for ui::qt::utils::ReportGenerator:
Collaboration graph

Classes

struct  ReportOptions
 
struct  ReportStatistics
 

Public Types

enum class  ReportFormat {
  HTML , PDF , Markdown , JSON ,
  PlainText
}
 

Public Member Functions

 ReportGenerator (db::EventsContainer &events)
 
QString generateReport (const std::vector< int > &eventIndices, const ReportOptions &options)
 Generate a report from events in the container.
 
QString generateReportByTimeRange (int64_t startTime, int64_t endTime, const ReportOptions &options)
 Generate from time range.
 
QString generateReportFiltered (const QString &filterCriteria, const ReportOptions &options)
 Generate from filtered events (by level, pattern, etc.)
 

Private Member Functions

QString GenerateHTML (const std::vector< const db::LogEvent * > &events, const ReportOptions &options)
 
QString GenerateMarkdown (const std::vector< const db::LogEvent * > &events, const ReportOptions &options)
 
QString GenerateJSON (const std::vector< const db::LogEvent * > &events, const ReportOptions &options)
 
QString GeneratePlainText (const std::vector< const db::LogEvent * > &events, const ReportOptions &options)
 
ReportStatistics CalculateStatistics (const std::vector< const db::LogEvent * > &events)
 
QString GenerateSummary (const ReportStatistics &stats)
 
QString GenerateStatisticsTable (const ReportStatistics &stats)
 
QString GenerateTimeline (const std::vector< const db::LogEvent * > &events)
 
QString GenerateTrendAnalysis (const std::vector< const db::LogEvent * > &events)
 

Private Attributes

db::EventsContainer & m_events
 

Detailed Description

Report generation system for v1.10.0 Phase 11.

Features:

  • Generate comprehensive reports from log data
  • Multiple report formats (HTML, PDF, Markdown, JSON)
  • Customizable report sections (summary, statistics, events, analysis)
  • Time range filtering
  • Event severity breakdown
  • Actor/source analysis
  • Trends and patterns
  • Export with styling and formatting

Member Enumeration Documentation

◆ ReportFormat

Enumerator
HTML 
PDF 
Markdown 
JSON 
PlainText 

Constructor & Destructor Documentation

◆ ReportGenerator()

ui::qt::utils::ReportGenerator::ReportGenerator ( db::EventsContainer &  events)
explicit

Member Function Documentation

◆ CalculateStatistics()

ReportGenerator::ReportStatistics ui::qt::utils::ReportGenerator::CalculateStatistics ( const std::vector< const db::LogEvent * > &  events)
private
Here is the caller graph for this function:

◆ GenerateHTML()

QString ui::qt::utils::ReportGenerator::GenerateHTML ( const std::vector< const db::LogEvent * > &  events,
const ReportOptions &  options 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GenerateJSON()

QString ui::qt::utils::ReportGenerator::GenerateJSON ( const std::vector< const db::LogEvent * > &  events,
const ReportOptions &  options 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GenerateMarkdown()

QString ui::qt::utils::ReportGenerator::GenerateMarkdown ( const std::vector< const db::LogEvent * > &  events,
const ReportOptions &  options 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GeneratePlainText()

QString ui::qt::utils::ReportGenerator::GeneratePlainText ( const std::vector< const db::LogEvent * > &  events,
const ReportOptions &  options 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ generateReport()

QString ui::qt::utils::ReportGenerator::generateReport ( const std::vector< int > &  eventIndices,
const ReportOptions &  options 
)

Generate a report from events in the container.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ generateReportByTimeRange()

QString ui::qt::utils::ReportGenerator::generateReportByTimeRange ( int64_t  startTime,
int64_t  endTime,
const ReportOptions &  options 
)

Generate from time range.

Here is the call graph for this function:

◆ generateReportFiltered()

QString ui::qt::utils::ReportGenerator::generateReportFiltered ( const QString &  filterCriteria,
const ReportOptions &  options 
)

Generate from filtered events (by level, pattern, etc.)

Here is the call graph for this function:

◆ GenerateStatisticsTable()

QString ui::qt::utils::ReportGenerator::GenerateStatisticsTable ( const ReportStatistics &  stats)
private
Here is the caller graph for this function:

◆ GenerateSummary()

QString ui::qt::utils::ReportGenerator::GenerateSummary ( const ReportStatistics &  stats)
private
Here is the caller graph for this function:

◆ GenerateTimeline()

QString ui::qt::utils::ReportGenerator::GenerateTimeline ( const std::vector< const db::LogEvent * > &  events)
private

◆ GenerateTrendAnalysis()

QString ui::qt::utils::ReportGenerator::GenerateTrendAnalysis ( const std::vector< const db::LogEvent * > &  events)
private

Member Data Documentation

◆ m_events

db::EventsContainer& ui::qt::utils::ReportGenerator::m_events
private

The documentation for this class was generated from the following files: