| 1 | // -------------------------------------------------------------------------- |
|---|
| 2 | // |
|---|
| 3 | // File |
|---|
| 4 | // Name: BackupClientMakeExcludeList.h |
|---|
| 5 | // Purpose: Makes exclude lists from bbbackupd config location entries |
|---|
| 6 | // Created: 28/1/04 |
|---|
| 7 | // |
|---|
| 8 | // -------------------------------------------------------------------------- |
|---|
| 9 | |
|---|
| 10 | #ifndef BACKUPCLIENTMAKEEXCLUDELIST__H |
|---|
| 11 | #define BACKUPCLIENTMAKEEXCLUDELIST__H |
|---|
| 12 | |
|---|
| 13 | class ExcludeList; |
|---|
| 14 | class Configuration; |
|---|
| 15 | |
|---|
| 16 | ExcludeList *BackupClientMakeExcludeList(const Configuration &rConfig, const char *DefiniteName, const char *RegexName, |
|---|
| 17 | const char *AlwaysIncludeDefiniteName = 0, const char *AlwaysIncludeRegexName = 0); |
|---|
| 18 | |
|---|
| 19 | // -------------------------------------------------------------------------- |
|---|
| 20 | // |
|---|
| 21 | // Function |
|---|
| 22 | // Name: BackupClientMakeExcludeList_Files(const Configuration &) |
|---|
| 23 | // Purpose: Create a exclude list from config file entries for files. May return 0. |
|---|
| 24 | // Created: 28/1/04 |
|---|
| 25 | // |
|---|
| 26 | // -------------------------------------------------------------------------- |
|---|
| 27 | inline ExcludeList *BackupClientMakeExcludeList_Files(const Configuration &rConfig) |
|---|
| 28 | { |
|---|
| 29 | return BackupClientMakeExcludeList(rConfig, "ExcludeFile", "ExcludeFilesRegex", "AlwaysIncludeFile", "AlwaysIncludeFilesRegex"); |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | // -------------------------------------------------------------------------- |
|---|
| 34 | // |
|---|
| 35 | // Function |
|---|
| 36 | // Name: BackupClientMakeExcludeList_Dirs(const Configuration &) |
|---|
| 37 | // Purpose: Create a exclude list from config file entries for directories. May return 0. |
|---|
| 38 | // Created: 28/1/04 |
|---|
| 39 | // |
|---|
| 40 | // -------------------------------------------------------------------------- |
|---|
| 41 | inline ExcludeList *BackupClientMakeExcludeList_Dirs(const Configuration &rConfig) |
|---|
| 42 | { |
|---|
| 43 | return BackupClientMakeExcludeList(rConfig, "ExcludeDir", "ExcludeDirsRegex", "AlwaysIncludeDir", "AlwaysIncludeDirsRegex"); |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | #endif // BACKUPCLIENTMAKEEXCLUDELIST__H |
|---|
| 48 | |
|---|