29 #ifndef LIMAL_NFS_SERVER_KNFS_EXPORTS_HPP
30 #define LIMAL_NFS_SERVER_KNFS_EXPORTS_HPP
35 #include <blocxx/String.hpp>
36 #include <blocxx/Array.hpp>
40 namespace LIMAL_NAMESPACE
42 namespace NFS_SERVER_NAMESPACE
46 class KNfsExportRules;
79 blocxx::Array<blocxx::String>
82 blocxx::Array<blocxx::String>
85 blocxx::Array<blocxx::String>
97 load(
const blocxx::String &exportsFile);
109 save(
const blocxx::String &exportsFile,
110 const blocxx::String &backupSuffix);
117 parseExportsFile(
const blocxx::String &exportsFile);
124 parseExportEntry(
const blocxx::String &exportsLine);
139 writeExportsFile(
const Exports &exports,
140 const blocxx::String &exportsFile,
141 const blocxx::String &backupSuffix);
146 static blocxx::String
147 decodeSubStr(blocxx::String &str,
const blocxx::String &stopAt);
155 static blocxx::String
156 encodeString(
const blocxx::String &str,
bool exceptSpaces=
false);
168 #endif // LIMAL_NFS_SERVER_KNFS_EXPORTS_HPP