#include <NfsExports.hpp>

Public Types | |
| enum | CommentType { E_LEADING, E_TRAILING } |
Public Member Functions | |
| Exports () | |
| Exports (const Exports &exports) | |
| Exports (const ExportEntries &entries) | |
| ~Exports () | |
| ExportPaths | getPaths () const |
| ExportClients | getClients (const BLOCXX_NAMESPACE::String &path) const |
| ExportEntries | getEntries (const BLOCXX_NAMESPACE::String &path) const |
| ExportEntries | getEntries () const |
| ExportComment | getComment (CommentType type) const |
| void | setEntries (const ExportEntries &entries) |
| void | setComment (const ExportComment &comment, CommentType type) |
| void | addEntry (const ExportEntry &entry) |
Private Attributes | |
| ExportEntries | m_entries |
| ExportComment | l_comment |
| ExportComment | t_comment |
| limal::nfs_server::Exports::Exports | ( | ) |
Construct a new, empty exports object.
| limal::nfs_server::Exports::Exports | ( | const Exports & | exports | ) |
Construct a new exports object as a copy of the specified one.
| exports | The exports object to copy. |
| limal::nfs_server::Exports::Exports | ( | const ExportEntries & | entries | ) |
Construct a new set exports object as a copy of the specified list of export entries.
| entries | The list of export entries to copy. |
| limal::nfs_server::Exports::~Exports | ( | ) |
Destroy the exports object.
| void limal::nfs_server::Exports::addEntry | ( | const ExportEntry & | entry | ) |
Add the specified entry to the list. making sure to resolve duplicates in m_entries. If the export path is already is used in one of the existing entries we need to add the clients of 'entry' uniquely to that existing entry.
| entry | The entry to add. |
| ExportClients limal::nfs_server::Exports::getClients | ( | const BLOCXX_NAMESPACE::String & | path | ) | const |
| ExportComment limal::nfs_server::Exports::getComment | ( | CommentType | type | ) | const |
| ExportEntries limal::nfs_server::Exports::getEntries | ( | ) | const |
| ExportEntries limal::nfs_server::Exports::getEntries | ( | const BLOCXX_NAMESPACE::String & | path | ) | const |
| ExportPaths limal::nfs_server::Exports::getPaths | ( | ) | const |
| void limal::nfs_server::Exports::setComment | ( | const ExportComment & | comment, | |
| CommentType | type | |||
| ) |
Sets the leading or trailing comment.
| comment | The new comment. | |
| comment | The type of the comment. |
| void limal::nfs_server::Exports::setEntries | ( | const ExportEntries & | entries | ) |
Replace the current list of entries with the specified one.
| entries | The new list of export entries. |