48 bool add(
const std::string &realDir,
const std::string &filterName,
const std::string &reportPath,
49 int scanInterval = 1);
52 bool remove(
const std::string &reportPath);
64 std::chrono::steady_clock::time_point readyAt;
67#ifndef EVENGINE_WEBGPU
68 void onAdded(
const void *sender,
const Poco::DirectoryWatcher::DirectoryEvent &event);
69 void onRemoved(
const void *sender,
const Poco::DirectoryWatcher::DirectoryEvent &event);
70 void onModified(
const void *sender,
const Poco::DirectoryWatcher::DirectoryEvent &event);
71 void onMovedFrom(
const void *sender,
const Poco::DirectoryWatcher::DirectoryEvent &event);
72 void onMovedTo(
const void *sender,
const Poco::DirectoryWatcher::DirectoryEvent &event);
75 void unsubscribeDelegates(DirWatch *dw);
78 void handlePocoEvent(
const std::string &
kind,
const std::string &itemPath);
79 void enqueue(Event event);
81 mutable std::mutex mu_;
82 std::deque<PendingEvent> queue_;
83 std::unordered_map<std::string, std::unique_ptr<DirWatch>> byDir_;
84 std::unordered_map<std::string, std::string> reportToDir_;