#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. |
This class can be used to search for entry with given device name using the find_if
function from the algorithm
header from STL.
hwdet::LinuxDetector::FstabEntry::DeviceNameEquals::DeviceNameEquals | ( | const String & | dn | ) | [inline] |
Create new predicate.
dn | Name of the device according to which this predicate will compare. |
bool hwdet::LinuxDetector::FstabEntry::DeviceNameEquals::operator() | ( | const FstabEntry & | entry | ) | const [inline] |
Compare device name of the entry with given string.
entry | Entry to compare. |
Device name.