The ExportOption class manages a nfs export option.
More...
#include <NfsExports.hpp>
The ExportOption class manages a nfs export option.
A ExportOption consists of either just a "name" (flag option) or a "name=value" pair.
| limal::nfs_server::ExportOption::ExportOption |
( |
| ) |
|
Create a new, empty export option
| limal::nfs_server::ExportOption::ExportOption |
( |
const BLOCXX_NAMESPACE::String & |
name, |
|
|
const BLOCXX_NAMESPACE::String & |
value |
|
) |
| |
Create a new export option object using the specified name and (may be empty) value.
- Parameters
-
| name | The export option name. |
| value | The export option value. |
- Exceptions
-
| limal::nfs_server::ExportOption::ExportOption |
( |
const BLOCXX_NAMESPACE::String & |
option | ) |
|
Create a new export option object using the specified string containing either only the option "name" or a "name=value" pair.
- Parameters
-
| option | The export option as string. |
- Exceptions
-
| limal::nfs_server::ExportOption::ExportOption |
( |
const ExportOption & |
option | ) |
|
Create export option as copy of the specified one.
- Parameters
-
| option | A export option reference. |
| limal::nfs_server::ExportOption::~ExportOption |
( |
| ) |
|
Destroy current export option object.
| bool limal::nfs_server::ExportOption::empty |
( |
| ) |
const |
Returns true if the option is empty.
- Returns
- true if the option is empty
| BLOCXX_NAMESPACE::String limal::nfs_server::ExportOption::getName |
( |
| ) |
const |
Get the name of the export option
- Returns
- export option name
| BLOCXX_NAMESPACE::String limal::nfs_server::ExportOption::getValue |
( |
| ) |
const |
Get the value of the export option
- Returns
- export option value
| void limal::nfs_server::ExportOption::setName |
( |
const BLOCXX_NAMESPACE::String & |
name | ) |
|
Set the name of the option and reset the value to a empty string.
| void limal::nfs_server::ExportOption::setOption |
( |
const BLOCXX_NAMESPACE::String & |
option | ) |
|
Assign the export option object to the specified string containing either just the option "name" or "name=value".
e.setOption("ro");
e.setOption("mountpoint=/some/path");
- Parameters
-
| option | The export option as string. |
- Exceptions
-
| void limal::nfs_server::ExportOption::setValue |
( |
const BLOCXX_NAMESPACE::String & |
value | ) |
|
Set the value of the option.
| BLOCXX_NAMESPACE::String limal::nfs_server::ExportOption::toString |
( |
| ) |
const |
Return the export option as string. This is either only the "name" or "name=value" if value not empty.
- Returns
- The export option as string.
| BLOCXX_NAMESPACE::String limal::nfs_server::ExportOption::m_name |
|
private |
| BLOCXX_NAMESPACE::String limal::nfs_server::ExportOption::m_value |
|
private |
The documentation for this class was generated from the following file: