#include <inotify-cxx.h>
Public Member Functions | |
InotifyWatch (const std::string &rPath, int32_t uMask, bool fEnabled=true) | |
Constructor. | |
~InotifyWatch () | |
Destructor. | |
int32_t | GetDescriptor () const |
Returns the watch descriptor. | |
const std::string & | GetPath () const |
Returns the watched file path. | |
uint32_t | GetMask () const |
Returns the watch event mask. | |
void | SetMask (uint32_t uMask) throw (InotifyException) |
Sets the watch event mask. | |
Inotify * | GetInotify () |
Returns the appropriate inotify class instance. | |
void | SetEnabled (bool fEnabled) throw (InotifyException) |
Enables/disables the watch. | |
bool | IsEnabled () const |
Checks whether the watch is enabled. | |
Friends | |
class | Inotify |
|
Constructor. Creates an inotify watch. Because this watch is inactive it has an invalid descriptor (-1).
|
|
Destructor.
|
|
Returns the watch descriptor.
|
|
Returns the appropriate inotify class instance.
|
|
Returns the watch event mask.
|
|
Returns the watched file path.
|
|
Checks whether the watch is enabled.
|
|
Enables/disables the watch. If the watch is active (added to an instance of Inofify) this method may fail due to unsuccessful re-setting the watch in the kernel. Re-setting the current state has no effect.
|
|
Sets the watch event mask. If the watch is active (added to an instance of Inofify) this method may fail due to unsuccessful re-setting the watch in the kernel.
|
|
|