LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
ui::qt::SideBySidePanel::LoadJob::Observer Struct Referencefinal

#include <SideBySidePanel.hpp>

Inheritance diagram for ui::qt::SideBySidePanel::LoadJob::Observer:
Inheritance graph
Collaboration diagram for ui::qt::SideBySidePanel::LoadJob::Observer:
Collaboration graph

Public Member Functions

 Observer (db::EventsContainer &c)
 
void ProgressUpdated () override
 Called when parsing progress is updated.
 
void NewEventFound (db::LogEvent &&ev) override
 Called when a new event is discovered during parsing.
 
void NewEventBatchFound (std::vector< std::pair< int, db::LogEvent::EventItems > > &&b) override
 Called when a batch of new events is discovered during parsing.
 

Public Attributes

db::EventsContainer & container
 
std::exception_ptr exception
 

Constructor & Destructor Documentation

◆ Observer()

ui::qt::SideBySidePanel::LoadJob::Observer::Observer ( db::EventsContainer &  c)
inlineexplicit

Member Function Documentation

◆ NewEventBatchFound()

void ui::qt::SideBySidePanel::LoadJob::Observer::NewEventBatchFound ( std::vector< std::pair< int, db::LogEvent::EventItems > > &&  eventBatch)
inlineoverridevirtual

Called when a batch of new events is discovered during parsing.

For performance reasons, parsers may collect multiple events before notifying observers. This method delivers a batch of events at once.

Parameters
eventBatchVector of (id, items) pairs representing the events
Note
This method is preferred over NewEventFound for high-throughput scenarios

Implements parser::IDataParserObserver.

Here is the call graph for this function:

◆ NewEventFound()

void ui::qt::SideBySidePanel::LoadJob::Observer::NewEventFound ( db::LogEvent &&  event)
inlineoverridevirtual

Called when a new event is discovered during parsing.

Parameters
eventThe newly parsed LogEvent (moved to avoid copying)
Note
Implementations should be efficient as this may be called very frequently during parsing of large files

Implements parser::IDataParserObserver.

Here is the call graph for this function:

◆ ProgressUpdated()

void ui::qt::SideBySidePanel::LoadJob::Observer::ProgressUpdated ( )
inlineoverridevirtual

Called when parsing progress is updated.

This method is invoked periodically during parsing operations to allow observers to update progress indicators in the user interface.

Note
Implementations should be efficient as this may be called frequently

Implements parser::IDataParserObserver.

Member Data Documentation

◆ container

db::EventsContainer& ui::qt::SideBySidePanel::LoadJob::Observer::container

◆ exception

std::exception_ptr ui::qt::SideBySidePanel::LoadJob::Observer::exception

The documentation for this struct was generated from the following file: