Main Page | Class List | File List | Class Members | File Members

InotifyWatch Class Reference

inotify watch class More...

#include <inotify-cxx.h>

List of all members.

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.
InotifyGetInotify ()
 Returns the appropriate inotify class instance.
void SetEnabled (bool fEnabled)
bool IsEnabled () const

Friends

class Inotify


Detailed Description

inotify watch class


Constructor & Destructor Documentation

InotifyWatch::InotifyWatch const std::string &  rPath,
int32_t  uMask,
bool  fEnabled = true
[inline]
 

Constructor.

Creates an inotify watch. Because this watch is inactive it has an invalid descriptor (-1).

Parameters:
[in] rPath watched file path
[in] uMask mask for events
[in] fEnabled events enabled yes/no

InotifyWatch::~InotifyWatch  )  [inline]
 

Destructor.


Member Function Documentation

int32_t InotifyWatch::GetDescriptor  )  const [inline]
 

Returns the watch descriptor.

Returns:
watch descriptor; -1 for inactive watch

Inotify* InotifyWatch::GetInotify  )  [inline]
 

Returns the appropriate inotify class instance.

Returns:
inotify instance

uint32_t InotifyWatch::GetMask  )  const [inline]
 

Returns the watch event mask.

Returns:
event mask

const std::string& InotifyWatch::GetPath  )  const [inline]
 

Returns the watched file path.

Returns:
file path

bool InotifyWatch::IsEnabled  )  const [inline]
 

void InotifyWatch::SetEnabled bool  fEnabled  )  [inline]
 


Friends And Related Function Documentation

friend class Inotify [friend]
 


The documentation for this class was generated from the following file:
Generated on Wed Oct 4 19:51:39 2006 for incron by  doxygen 1.4.4