You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
518 B

#pragma once
#include <inotify-cpp/NotifierBuilder.h>
#include <filesystem>
#include <iostream>
#include <thread>
#include <chrono>
#include <db/db.h>
namespace db {
class FSWatcher {
public:
FSWatcher(sql::Database *db, const std::string &directory);
void run();
void create_event(const std::string event_file);
void modify_event(const std::string event_file);
void delete_event(const std::string event_file);
private:
sql::Database* m_db;
const std::string m_directory;
};
}