adbncfs
0.9.1
|
A class to manage a line obtained from the output of the busybox applet mount command. More...
Public Member Functions | |
Entry (const char *pcMountLine) | |
Initializes this object with the given mount line. More... | |
virtual | ~Entry () |
const string & | fileSystem () const |
Retrieve the file system name. More... | |
const string & | mountPoint () const |
Retrieve the mount point path. More... | |
const string & | deviceType () const |
Retrieve the device type. More... | |
const set< string > & | mountOptions () const |
Retrieve the set of mount options. More... | |
bool | isMountedRo () const |
Test this mount point is mounted read only. More... | |
bool | isMountedNoexec () const |
Test this mount point is mounted wit no execution option. More... | |
Private Member Functions | |
Entry () | |
void | parseMountInfo (const char *pcMountLine) |
Parse the given mount line and store the results in the corresponding member variables. More... | |
Private Attributes | |
string | m_strFileSystem |
string | m_strMountPoint |
string | m_strDevType |
set< string > | m_mountOptions |
A class to manage a line obtained from the output of the busybox applet mount command.
Definition at line 48 of file mountInfo.h.
MountInfo::Entry::Entry | ( | const char * | pcMountLine | ) |
Initializes this object with the given mount line.
The accepted format for the mount line parameter is one line that the busybox applet mount command returns.
pcMountLine | one mount output line as described above. |
Definition at line 49 of file mountInfo.cpp.
|
inlinevirtual |
Definition at line 52 of file mountInfo.h.
|
private |
|
inline |
|
inline |
Retrieve the file system name.
Definition at line 59 of file mountInfo.h.
bool MountInfo::Entry::isMountedNoexec | ( | ) | const |
Test this mount point is mounted wit no execution option.
Definition at line 69 of file mountInfo.cpp.
bool MountInfo::Entry::isMountedRo | ( | ) | const |
Test this mount point is mounted read only.
Definition at line 59 of file mountInfo.cpp.
|
inline |
Retrieve the set of mount options.
Definition at line 80 of file mountInfo.h.
|
inline |
|
private |
Parse the given mount line and store the results in the corresponding member variables.
The accepted format for the mount line parameter is one line that the busybox applet mount command returns.
pcMountLine | one mount output line as described above. |
Definition at line 94 of file mountInfo.cpp.
|
private |
Definition at line 94 of file mountInfo.h.
|
private |
Definition at line 93 of file mountInfo.h.
|
private |
Definition at line 91 of file mountInfo.h.
|
private |
Definition at line 92 of file mountInfo.h.