Defined in file: hzFtpClient.h
This is a class that is purely for mass downloads from an FTP host.
This class employes the private sub-class _hz_FtpDnhist as follows:-
_hz_FtpDnhist
Constructors/Detructors
| hzFtpHost* | hzFtpHost | (void) | |
| void | ~hzFtpHost | (void) |
Public Methods:
| hzEcode | GetAll | (void) | Connect to FTP Server with username and password. Go to remote pre-determined directory and obtain listing according to given criteria. For each file in the listing, check if we do not already have the (complete) file from a previous run. If not, download it to the target directory and then record this action. Arguments: None |
| hzEcode | Init | (hzString& host)hzString& user, hzString& pass, hzString& remDir, hzString& locDir, hzString& criteria, | Initialize an FTP host or account. This means setting up all the parameters for connecting to an FTP server |
Member Variables:
| hzFtpHost::_hz_FtpDnhist | dnh | Download history manager | |
| hzString | m_Criteria | The download criteria (none would mean all files) | |
| hzString | m_Host | For FTP collections only | |
| hzMapS<hzString,hzDirent> | m_Inventory | Files already downloaded in the repository | |
| hzSDate | m_Issue | Issue date (WHOLE publications only) | |
| hzString | m_Password | Ftp password if applicable | |
| hzString | m_Repos | The directory into which files are collected | |
| hzString | m_Source | The directory from which files are collected (on FTP server) | |
| hzString | m_Username | Ftp username if applicable | |
| bool | m_bInit | Parameters supplied |