#include <NfsExports.hpp>
Public Member Functions | |
| ExportEntry () | |
| ExportEntry (const ExportEntry &entry) | |
| ExportEntry (const BLOCXX_NAMESPACE::String &path, const ExportClients &clients) | |
| ExportEntry (const BLOCXX_NAMESPACE::String &path, const ExportClients &clients, const ExportComment &comment) | |
| ~ExportEntry () | |
| bool | empty () const |
| BLOCXX_NAMESPACE::String | toString () const |
| BLOCXX_NAMESPACE::StringArray | toStringArray () const |
| BLOCXX_NAMESPACE::String | getPath () const |
| ExportClients | getClients () const |
| ExportComment | getComment () const |
| void | setPath (const BLOCXX_NAMESPACE::String &path) |
| void | setClients (const ExportClients &clients) |
| void | setComment (const ExportComment &comment) |
| bool | addClient (const ExportClient &client) |
| bool | removeClient (const BLOCXX_NAMESPACE::String &cname) |
| bool | removeClient (const ExportClient &client) |
| void | removeClients () |
Private Attributes | |
| BLOCXX_NAMESPACE::String | m_path |
| ExportClients | m_clients |
| ExportComment | m_comment |
Friends | |
| bool | operator== (const ExportEntry &e1, const ExportEntry &e2) |
| bool | operator< (const ExportEntry &e1, const ExportEntry &e2) |
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.
| client | The export client to copy. |
| limal::nfs_server::ExportEntry::ExportEntry | ( | const BLOCXX_NAMESPACE::String & | path, | |
| const ExportClients & | clients | |||
| ) |
| limal::nfs_server::ExportEntry::ExportEntry | ( | const BLOCXX_NAMESPACE::String & | path, | |
| const ExportClients & | clients, | |||
| const ExportComment & | comment | |||
| ) |
| 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.
| client | The export client to add. |
| bool limal::nfs_server::ExportEntry::empty | ( | ) | const |
| ExportClients limal::nfs_server::ExportEntry::getClients | ( | ) | const |
| ExportComment limal::nfs_server::ExportEntry::getComment | ( | ) | const |
| BLOCXX_NAMESPACE ::String limal::nfs_server::ExportEntry::getPath | ( | ) | const |
| bool limal::nfs_server::ExportEntry::removeClient | ( | const ExportClient & | client | ) |
Removes the first export client that is equal to the specified one.
| client | The export client to search for. |
| bool limal::nfs_server::ExportEntry::removeClient | ( | const BLOCXX_NAMESPACE::String & | cname | ) |
Removes the first export client with the specified client name from the enrty.
| cname | The export client name to search for. |
| 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.
| clients | The new export clients list. |
| void limal::nfs_server::ExportEntry::setComment | ( | const ExportComment & | comment | ) |
Sets the comment for this entry.
| comment | The new entry comment. |
| void limal::nfs_server::ExportEntry::setPath | ( | const BLOCXX_NAMESPACE::String & | path | ) |
| BLOCXX_NAMESPACE ::String limal::nfs_server::ExportEntry::toString | ( | ) | const |
| BLOCXX_NAMESPACE ::StringArray limal::nfs_server::ExportEntry::toStringArray | ( | ) | const |
| bool operator< | ( | const ExportEntry & | e1, | |
| const ExportEntry & | e2 | |||
| ) | [friend] |
| bool operator== | ( | const ExportEntry & | e1, | |
| const ExportEntry & | e2 | |||
| ) | [friend] |
BLOCXX_NAMESPACE ::String limal::nfs_server::ExportEntry::m_path [private] |