add filewatch
Some checks are pending
ContinuousIntegration / macos (push) Waiting to run
ContinuousIntegration / windows (push) Waiting to run
ContinuousIntegration / linux (push) Successful in 20s

This commit is contained in:
2024-06-10 22:27:19 +02:00
parent 0e358157f2
commit fcafb1bd7e
4 changed files with 40 additions and 1 deletions

View File

@@ -2,15 +2,24 @@
#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);
};