#include <MainController.hpp>
◆ MainController()
◆ GetParserCurrentProgress()
| uint32_t mvc::MainController::GetParserCurrentProgress |
( |
| ) |
const |
|
overridevirtual |
◆ GetParserTotalProgress()
| uint32_t mvc::MainController::GetParserTotalProgress |
( |
| ) |
const |
|
overridevirtual |
- Returns
- parser total progress target (0 if unknown/idle).
Implements mvc::IController.
◆ GetSearchColumns()
| std::vector< std::string > mvc::MainController::GetSearchColumns |
( |
| ) |
const |
|
overridevirtual |
◆ LoadLogFile()
Parses and loads the provided log file into the model.
Implements mvc::IController.
◆ NewEventBatchFound()
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
-
| eventBatch | Vector of (id, items) pairs representing the events |
- Note
- This method is preferred over NewEventFound for high-throughput scenarios
Implements parser::IDataParserObserver.
◆ NewEventFound()
| void mvc::MainController::NewEventFound |
( |
db::LogEvent && |
event | ) |
|
|
overridevirtual |
Called when a new event is discovered during parsing.
- Parameters
-
| event | The 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.
◆ ProgressUpdated()
| void mvc::MainController::ProgressUpdated |
( |
| ) |
|
|
overridevirtual |
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.
◆ SearchEvents()
| void mvc::MainController::SearchEvents |
( |
const std::string & |
query, |
|
|
const std::vector< std::string > & |
columns, |
|
|
const std::function< void(const SearchResultRow &)> & |
onResult, |
|
|
std::function< void(size_t, size_t)> |
progressCallback = {} |
|
) |
| |
|
overridevirtual |
◆ m_activeParser
◆ m_events
The documentation for this class was generated from the following files: