#include <inotify-cxx.h>
Public Member Functions | |
InotifyEvent () | |
Constructor. | |
InotifyEvent (const struct inotify_event *pEvt, InotifyWatch *pWatch) | |
Constructor. | |
~InotifyEvent () | |
Destructor. | |
int32_t | GetDescriptor () const |
Returns the event watch descriptor. | |
uint32_t | GetMask () const |
Returns the event mask. | |
bool | IsType (uint32_t uType) const |
Checks for the event type. | |
uint32_t | GetCookie () const |
Returns the event cookie. | |
uint32_t | GetLength () const |
Returns the event name length. | |
const std::string & | GetName () const |
Returns the event name. | |
void | GetName (std::string &rName) const |
Extracts the event name. | |
InotifyWatch * | GetWatch () |
Returns the source watch. | |
void | GetData (struct inotify_event *pEvt) |
Returns the event raw data. | |
void | GetData (struct inotify_event &rEvt) |
Returns the event raw data. | |
void | DumpTypes (std::string &rStr) const |
Fills the string with all types contained in the event mask. | |
Static Public Member Functions | |
static bool | IsType (uint32_t uValue, uint32_t uType) |
Checks a value for the event type. | |
static uint32_t | GetMaskByName (const std::string &rName) |
Finds the appropriate mask for a name. | |
static void | DumpTypes (uint32_t uValue, std::string &rStr) |
Fills the string with all types contained in an event mask value. |
It holds all information about inotify event and provides access to its particular values.
|
Constructor. Creates a plain event. |
|
Constructor. Creates an event based on inotify event data. For NULL pointers it works the same way as InotifyEvent().
|
|
Destructor.
|
|
Fills the string with all types contained in the event mask.
|
|
Fills the string with all types contained in an event mask value.
|
|
Returns the event cookie.
|
|
Returns the event raw data.
|
|
Returns the event raw data. For NULL pointer it does nothing.
|
|
Returns the event watch descriptor.
|
|
Returns the event name length.
|
|
Returns the event mask.
|
|
Finds the appropriate mask for a name.
|
|
Extracts the event name.
|
|
Returns the event name.
|
|
Returns the source watch.
|
|
Checks for the event type.
|
|
Checks a value for the event type.
|