hwdet::LinuxDetector::FstabEntry::MountPointEquals Class Reference

Unary predicate which compares mount point of an entry with given string. More...

#include <LinuxDetector.h>


Public Member Functions

 MountPointEquals (const String &mp)
 Create new predicate.
bool operator() (const FstabEntry &entry) const
 Compare mount point of the entry with given string.

Private Attributes

String mount_point
 Mount point.


Detailed Description

Unary predicate which compares mount point of an entry with given string.

This class can be used to search for entry with given mount point using the find_if function from the algorithm header from STL.


Constructor & Destructor Documentation

hwdet::LinuxDetector::FstabEntry::MountPointEquals::MountPointEquals ( const String mp  )  [inline]

Create new predicate.

Parameters:
mp Mount point according to which this predicate will compare.


Member Function Documentation

bool hwdet::LinuxDetector::FstabEntry::MountPointEquals::operator() ( const FstabEntry entry  )  const [inline]

Compare mount point of the entry with given string.

Parameters:
entry Entry to compare.
Returns:
true if mount point of the entry is same as mount point stored in this class.


Field Documentation

String hwdet::LinuxDetector::FstabEntry::MountPointEquals::mount_point [private]

Mount point.


The documentation for this class was generated from the following file:
Generated on Tue Dec 19 17:43:51 2006 for Detector for Linux by  doxygen 1.4.7