separate out the log parsing, will throw events

This commit is contained in:
2024-06-11 09:45:52 +02:00
parent 06bd55c165
commit 4295c6cc53
6 changed files with 44 additions and 17 deletions

View File

@@ -3,12 +3,9 @@
#include <solanaceae/message3/components.hpp>
#include <solanaceae/contact/components.hpp>
#include "./log_parse.hpp"
Factorio::Factorio(Contact3Registry& cr, RegistryMessageModel& rmm) :
_cr(cr),
_rmm(rmm),
_fw("test.txt", [this](const auto& path, const auto event){ this->onFileEvent(path, event);})
_rmm(rmm)
{
@@ -22,7 +19,3 @@ bool Factorio::onEvent(const Message::Events::MessageConstruct& e) {
return false;
}
void Factorio::onFileEvent(const std::string& path, const filewatch::Event change_type) {
std::cout << "file even " << filewatch::event_to_string(change_type) << " on '" << path << "'\n";
}