11#ifndef MVC_ICONTRLOLER_HPP
12#define MVC_ICONTRLOLER_HPP
74 const std::vector<std::string>& columns,
76 std::function<
void(
size_t,
size_t)> progressCallback = {}) = 0;
79 virtual void LoadLogFile(
const std::filesystem::path& filepath,
Toolkit-agnostic controller interface for the MVC architecture.
Definition IControler.hpp:55
virtual uint32_t GetParserTotalProgress() const =0
IController()
Default constructor.
Definition IControler.hpp:62
virtual void 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={})=0
virtual uint32_t GetParserCurrentProgress() const =0
virtual std::vector< std::string > GetSearchColumns() const =0
virtual ~IController()
Default destructor.
Definition IControler.hpp:69
virtual void LoadLogFile(const std::filesystem::path &filepath, parser::IDataParserObserver *observer)=0
Parses and loads the provided log file into the model.
Observer interface for receiving notifications from data parsers.
Definition IDataParser.hpp:52
Definition IControler.hpp:27
Data parsing components and interfaces.
Definition IControler.hpp:22
Result row returned by IController::SearchEvents() for each matching event.
Definition IControler.hpp:36
std::string matchedKey
Definition IControler.hpp:38
std::vector< std::string > columnValues
Definition IControler.hpp:40
std::string matchedText
Definition IControler.hpp:39
int eventId
Definition IControler.hpp:37