|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Observer interface for receiving notifications from data parsers. More...
#include <IDataParser.hpp>


Public Member Functions | |
| virtual | ~IDataParserObserver ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
| virtual void | ProgressUpdated ()=0 |
| Called when parsing progress is updated. | |
| virtual void | NewEventFound (db::LogEvent &&event)=0 |
| Called when a new event is discovered during parsing. | |
| virtual void | NewEventBatchFound (std::vector< std::pair< int, db::LogEvent::EventItems > > &&eventBatch)=0 |
| Called when a batch of new events is discovered during parsing. | |
Observer interface for receiving notifications from data parsers.
This interface follows the Observer pattern to provide loose coupling between data parsing operations and user interface components. Observers receive notifications about parsing progress and newly discovered events.
|
virtualdefault |
Virtual destructor for proper cleanup of derived classes.
|
pure virtual |
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.
| eventBatch | Vector of (id, items) pairs representing the events |
Implemented in ui::qt::SideBySidePanel::LoadJob::Observer, ui::qt::FileTailer::TailObserver, mvc::MainController, and ui::MainWindowPresenter.
|
pure virtual |
Called when a new event is discovered during parsing.
| event | The newly parsed LogEvent (moved to avoid copying) |
Implemented in ui::qt::SideBySidePanel::LoadJob::Observer, ui::qt::FileTailer::TailObserver, mvc::MainController, and ui::MainWindowPresenter.
|
pure virtual |
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.
Implemented in mvc::MainController, ui::MainWindowPresenter, ui::qt::SideBySidePanel::LoadJob::Observer, and ui::qt::FileTailer::TailObserver.