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

@@ -2,24 +2,15 @@
#include <solanaceae/message3/registry_message_model.hpp>
#include <FileWatch.hpp>
#include <string>
class Factorio : public RegistryMessageModelEventI {
Contact3Registry& _cr;
RegistryMessageModel& _rmm;
filewatch::FileWatch<std::string> _fw;
public:
Factorio(Contact3Registry& cr, RegistryMessageModel& rmm);
virtual ~Factorio(void);
protected: // rmm
bool onEvent(const Message::Events::MessageConstruct& e) override;
protected:
void onFileEvent(const std::string& path, const filewatch::Event change_type);
};