Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
toolbox::io::FileWatcher Class Reference

FileWatcher watches for changes to files. More...

#include <toolbox/io/Inotify.hpp>

Public Types

using Path = std::filesystem::path
 
using Slot = BasicSlot< const Path &, int, std::uint32_t >
 

Public Member Functions

 FileWatcher (Reactor &r, Inotify &inotify)
 
 ~FileWatcher ()=default
 
 FileWatcher (const FileWatcher &)=delete
 
FileWatcheroperator= (const FileWatcher &)=delete
 
 FileWatcher (FileWatcher &&) noexcept=default
 
FileWatcheroperator= (FileWatcher &&) noexcept=default
 
void watch (const Path &path, Slot slot, std::uint32_t mask=IN_ALL_EVENTS)
 

Detailed Description

FileWatcher watches for changes to files.

Definition at line 137 of file Inotify.hpp.

Member Typedef Documentation

◆ Path

using toolbox::io::FileWatcher::Path = std::filesystem::path

Definition at line 139 of file Inotify.hpp.

◆ Slot

Definition at line 140 of file Inotify.hpp.

Constructor & Destructor Documentation

◆ FileWatcher() [1/3]

toolbox::io::FileWatcher::FileWatcher ( Reactor r,
Inotify inotify 
)

Definition at line 22 of file Inotify.cpp.

◆ ~FileWatcher()

toolbox::io::FileWatcher::~FileWatcher ( )
default

◆ FileWatcher() [2/3]

toolbox::io::FileWatcher::FileWatcher ( const FileWatcher )
delete

◆ FileWatcher() [3/3]

toolbox::io::FileWatcher::FileWatcher ( FileWatcher &&  )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

FileWatcher & toolbox::io::FileWatcher::operator= ( const FileWatcher )
delete

◆ operator=() [2/2]

FileWatcher & toolbox::io::FileWatcher::operator= ( FileWatcher &&  )
defaultnoexcept

◆ watch()

void toolbox::io::FileWatcher::watch ( const Path path,
Slot  slot,
std::uint32_t  mask = IN_ALL_EVENTS 
)

Definition at line 28 of file Inotify.cpp.

Referenced by watch().


The documentation for this class was generated from the following files: