Export entry path with a list of client specifications.
More...
#include <NfsExports.hpp>
Export entry path with a list of client specifications.
Exports file in-memory representation.
| limal::nfs_server::ExportEntry::ExportEntry |
( |
| ) |
|
Construct a new, empty export entry.
| limal::nfs_server::ExportEntry::ExportEntry |
( |
const ExportEntry & |
entry | ) |
|
Construct a new export entry as copy of the specified one.
- Parameters
-
| client | The export client to copy. |
| limal::nfs_server::ExportEntry::ExportEntry |
( |
const BLOCXX_NAMESPACE::String & |
path, |
|
|
const ExportClients & |
clients |
|
) |
| |
Construct a new export entry using the specified path and client list.
- Parameters
-
| path | The export path. |
| clients | The list of export clients. |
| limal::nfs_server::ExportEntry::ExportEntry |
( |
const BLOCXX_NAMESPACE::String & |
path, |
|
|
const ExportClients & |
clients, |
|
|
const ExportComment & |
comment |
|
) |
| |
Construct a new export entry using the specified path, client list and comment lines.
- Parameters
-
| path | The export path. |
| clients | The list of export clients. |
| comment | The list comment lines for this entry. |
| limal::nfs_server::ExportEntry::~ExportEntry |
( |
| ) |
|
Destroy the export entry object.
| bool limal::nfs_server::ExportEntry::addClient |
( |
const ExportClient & |
client | ) |
|
Adds the specified export client to the entry, but only if the entry does not contain any client with the same name.
- Parameters
-
| client | The export client to add. |
- Returns
- true, if the client was added.
| bool limal::nfs_server::ExportEntry::empty |
( |
| ) |
const |
Returns true if no path and clients are set.
- Returns
- true if no path and clients are set.
| ExportClients limal::nfs_server::ExportEntry::getClients |
( |
| ) |
const |
- Returns
- The list of export clients.
| ExportComment limal::nfs_server::ExportEntry::getComment |
( |
| ) |
const |
- Returns
- The comment lines of this entry.
| BLOCXX_NAMESPACE::String limal::nfs_server::ExportEntry::getPath |
( |
| ) |
const |
| bool limal::nfs_server::ExportEntry::removeClient |
( |
const BLOCXX_NAMESPACE::String & |
cname | ) |
|
Removes the first export client with the specified client name from the enrty.
- Parameters
-
| cname | The export client name to search for. |
- Returns
- true, if a client was removed.
| bool limal::nfs_server::ExportEntry::removeClient |
( |
const ExportClient & |
client | ) |
|
Removes the first export client that is equal to the specified one.
- Parameters
-
| client | The export client to search for. |
- Returns
- true, if a client was removed.
| void limal::nfs_server::ExportEntry::removeClients |
( |
| ) |
|
Removes all the clients. just clear the m_clients
| void limal::nfs_server::ExportEntry::setClients |
( |
const ExportClients & |
clients | ) |
|
Sets the entry's client list to the specified one.
- Parameters
-
| clients | The new export clients list. |
| void limal::nfs_server::ExportEntry::setComment |
( |
const ExportComment & |
comment | ) |
|
Sets the comment for this entry.
- Parameters
-
| comment | The new entry comment. |
| void limal::nfs_server::ExportEntry::setPath |
( |
const BLOCXX_NAMESPACE::String & |
path | ) |
|
Sets the entry's export path to the specified one.
- Parameters
-
| clients | The new export path. |
| BLOCXX_NAMESPACE::String limal::nfs_server::ExportEntry::toString |
( |
| ) |
const |
- Returns
- The export path and a space separated list of clients.
| BLOCXX_NAMESPACE::StringArray limal::nfs_server::ExportEntry::toStringArray |
( |
| ) |
const |
- Returns
- The a string array containing the export path followed by the list of export clients in string format.
| BLOCXX_NAMESPACE::String limal::nfs_server::ExportEntry::m_path |
|
private |
The documentation for this class was generated from the following file: