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

InCronTabEntry Class Reference

Incron table entry class. More...

#include <incrontab.h>

List of all members.

Public Member Functions

 InCronTabEntry ()
 Constructor.
 InCronTabEntry (const std::string &rPath, uint32_t uMask, const std::string &rCmd)
 Constructor.
 ~InCronTabEntry ()
 Destructor.
std::string ToString () const
 Converts the entry to string representation.
const std::string & GetPath () const
 Returns the watch filesystem path.
int32_t GetMask () const
 Returns the event mask.
const std::string & GetCmd () const
 Returns the command string.
bool IsNoLoop () const
 Checks whether this entry has set loop-avoidance.

Static Public Member Functions

static bool Parse (const std::string &rStr, InCronTabEntry &rEntry)
 Parses a string and attempts to extract entry parameters.

Protected Attributes

std::string m_path
 watch path
uint32_t m_uMask
 event mask
std::string m_cmd
 command string
bool m_fNoLoop
 no loop yes/no


Detailed Description

Incron table entry class.


Constructor & Destructor Documentation

InCronTabEntry::InCronTabEntry  ) 
 

Constructor.

Creates an empty entry for later use with Parse().

See also:
Parse()

InCronTabEntry::InCronTabEntry const std::string &  rPath,
uint32_t  uMask,
const std::string &  rCmd
 

Constructor.

Creates an entry based on defined parameters.

Parameters:
[in] rPath watched filesystem path
[in] uMask event mask
[in] rCmd command string

InCronTabEntry::~InCronTabEntry  )  [inline]
 

Destructor.


Member Function Documentation

const std::string& InCronTabEntry::GetCmd  )  const [inline]
 

Returns the command string.

Returns:
command string

int32_t InCronTabEntry::GetMask  )  const [inline]
 

Returns the event mask.

Returns:
event mask

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

Returns the watch filesystem path.

Returns:
watch path

bool InCronTabEntry::IsNoLoop  )  const [inline]
 

Checks whether this entry has set loop-avoidance.

Returns:
true = no loop, false = loop allowed

bool InCronTabEntry::Parse const std::string &  rStr,
InCronTabEntry rEntry
[static]
 

Parses a string and attempts to extract entry parameters.

Parameters:
[in] rStr parsed string
[out] rEntry parametrized entry
Returns:
true = success, false = failure

std::string InCronTabEntry::ToString  )  const
 

Converts the entry to string representation.

This method creates a string for use in a table file.

Returns:
string representation


Member Data Documentation

std::string InCronTabEntry::m_cmd [protected]
 

command string

bool InCronTabEntry::m_fNoLoop [protected]
 

no loop yes/no

std::string InCronTabEntry::m_path [protected]
 

watch path

uint32_t InCronTabEntry::m_uMask [protected]
 

event mask


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