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