hwdet::LinuxDetector::FstabEntry::DeviceNameEquals Class Reference

Unary predicate which compares device name of an entry with given string. More...

#include <LinuxDetector.h>


Public Member Functions

 DeviceNameEquals (const String &dn)
 Create new predicate.
bool operator() (const FstabEntry &entry) const
 Compare device name of the entry with given string.

Private Attributes

String device_name
 Device name.


Detailed Description

Unary predicate which compares device name of an entry with given string.

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


Constructor & Destructor Documentation

hwdet::LinuxDetector::FstabEntry::DeviceNameEquals::DeviceNameEquals ( const String dn  )  [inline]

Create new predicate.

Parameters:
dn Name of the device according to which this predicate will compare.


Member Function Documentation

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

Compare device name of the entry with given string.

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


Field Documentation

String hwdet::LinuxDetector::FstabEntry::DeviceNameEquals::device_name [private]

Device name.


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