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

Inotify provides a simplified interface to an inotify instance. More...

#include <toolbox/io/Inotify.hpp>

Public Member Functions

 Inotify (int flags=0)
 
 ~Inotify ()=default
 
 Inotify (const Inotify &)=delete
 
Inotifyoperator= (const Inotify &)=delete
 
 Inotify (Inotify &&) noexcept=default
 
Inotifyoperator= (Inotify &&) noexcept=default
 
int fd () const noexcept
 
WatchFileHandle add_watch (const char *path, std::uint32_t mask, std::error_code &ec) noexcept
 Add a watch to an initialised inotify instance.
 
WatchFileHandle add_watch (const char *path, std::uint32_t mask)
 Add a watch to an initialised inotify instance.
 

Detailed Description

Inotify provides a simplified interface to an inotify instance.

Definition at line 102 of file Inotify.hpp.

Constructor & Destructor Documentation

◆ Inotify() [1/3]

toolbox::io::Inotify::Inotify ( int  flags = 0)
inlineexplicit

Definition at line 104 of file Inotify.hpp.

◆ ~Inotify()

toolbox::io::Inotify::~Inotify ( )
default

◆ Inotify() [2/3]

toolbox::io::Inotify::Inotify ( const Inotify )
delete

◆ Inotify() [3/3]

toolbox::io::Inotify::Inotify ( Inotify &&  )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ fd()

int toolbox::io::Inotify::fd ( ) const
inlinenoexcept

Definition at line 118 of file Inotify.hpp.

◆ add_watch() [1/2]

WatchFileHandle toolbox::io::Inotify::add_watch ( const char path,
std::uint32_t  mask,
std::error_code &  ec 
)
inlinenoexcept

Add a watch to an initialised inotify instance.

Definition at line 121 of file Inotify.hpp.

Referenced by toolbox::io::FileWatcher::watch().

◆ add_watch() [2/2]

WatchFileHandle toolbox::io::Inotify::add_watch ( const char path,
std::uint32_t  mask 
)
inline

Add a watch to an initialised inotify instance.

Definition at line 127 of file Inotify.hpp.


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