Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
Inotify.hpp File Reference
#include <toolbox/io/Reactor.hpp>
#include <sys/inotify.h>
#include <filesystem>
#include <map>
Include dependency graph for Inotify.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  toolbox::io::WatchFile
 
struct  toolbox::io::WatchFilePolicy
 
class  toolbox::io::Inotify
 Inotify provides a simplified interface to an inotify instance. More...
 
class  toolbox::io::FileWatcher
 FileWatcher watches for changes to files. More...
 

Namespaces

namespace  toolbox
 
namespace  toolbox::io
 

Typedefs

using toolbox::io::WatchFileHandle = BasicHandle< WatchFilePolicy >
 

Functions

constexpr bool toolbox::io::operator== (WatchFile lhs, WatchFile rhs)
 
constexpr bool toolbox::io::operator!= (WatchFile lhs, WatchFile rhs)
 
FileHandle toolbox::io::inotify_init (int flags, std::error_code &ec) noexcept
 Initialise an inotify instance.
 
FileHandle toolbox::io::inotify_init (std::error_code &ec) noexcept
 Initialise an inotify instance.
 
FileHandle toolbox::io::inotify_init (int flags=0)
 
WatchFileHandle toolbox::io::inotify_add_watch (int fd, const char *path, std::uint32_t mask, std::error_code &ec) noexcept
 Add a watch to an initialised inotify instance.
 
WatchFileHandle toolbox::io::inotify_add_watch (int fd, const char *path, std::uint32_t mask)
 Add a watch to an initialised inotify instance.