Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !
using CppUtils::FileSystem::Watcher::SubscribeFunction = std::function<void(Event, const std::filesystem::path&)>;
Watcher::Watcher();
Watcher::Watcher(const Watcher&) = delete;
auto Watcher::operator=(const Watcher&) -> Watcher& = delete;
Watcher::Watcher(Watcher&& other) noexcept;
auto Watcher::operator=(Watcher&& other) noexcept -> Watcher&;
Watcher::~Watcher();
[[nodiscard]] auto Watcher::isRunning() const noexcept -> bool;
auto Watcher::start() -> void;
auto Watcher::stop() -> void;
auto Watcher::reset() -> void;
auto Watcher::listener() -> void;
auto Watcher::watch(const std::filesystem::path& path, Event event = Event::All) -> void;
auto Watcher::unwatch(const std::filesystem::path& directoryPath) -> void;
auto Watcher::unwatchAll() -> void;
auto Watcher::onEvent(Event event, const SubscribeFunction& function) -> void;
auto Watcher::onEvent(const SubscribeFunction& function) -> void;