Loading...
Searching...
No Matches
FtpClientStatDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace FtpClientDataProvider {
class FtpClientStatDataProvider : public AbstractDataProvider {
public:
FtpClient ftp;
const ProviderInfo = <DataProviderInfo>{
"name": "stat",
"desc": "FTP stat data provider; returns information about the path given as an argument",
"type": "FtpClientStatDataProvider",
"constructor_options": FtpClientDataProvider::ConstructorOptions,
"supports_request": True,
};
const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
AbstractDataProvider::DataProviderSummaryInfoKeys
});
const RequestType = new FtpClientPathDataType();
const ResponseType = new FtpClientStatResponseDataType();
constructor(*hash<auto> options);
constructor(FtpClient ftp);
string getName();
static hash<auto> doStat(FtpClient ftp, string path, *bool assume_known);
static date getModifiedTime(FtpClient ftp, string path);
static bool checkDir(FtpClient ftp, string path);
protected:
auto doRequestImpl(auto req, *hash<auto> request_options);
public:
protected:
*AbstractDataProviderType getRequestTypeImpl();
public:
protected:
*AbstractDataProviderType getResponseTypeImpl();
public:
hash<DataProviderInfo> getStaticInfoImpl();
};
};
FtpClientDataProvider::FtpClientDataProvider::ConstructorOptions
const ConstructorOptions
Constructor arguments.
Definition: FtpClientDataProvider.qc.dox.h:42
FtpClientDataProvider::FtpClientPathDataType
Data type for FTP client stat request calls.
Definition: FtpClientPathDataType.qc.dox.h:27
FtpClientDataProvider::FtpClientStatDataProvider
The FTP client stat data provider class.
Definition: FtpClientStatDataProvider.qc.dox.h:28
FtpClientDataProvider::FtpClientStatDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
FtpClientDataProvider::FtpClientStatDataProvider::getName
string getName()
Returns the data provider name.
FtpClientDataProvider::FtpClientStatDataProvider::ResponseType
const ResponseType
Response type.
Definition: FtpClientStatDataProvider.qc.dox.h:52
FtpClientDataProvider::FtpClientStatDataProvider::constructor
constructor(FtpClient ftp)
Creates the object from an FTP connection.
FtpClientDataProvider::FtpClientStatDataProvider::ProviderInfo
const ProviderInfo
Provider info.
Definition: FtpClientStatDataProvider.qc.dox.h:35
FtpClientDataProvider::FtpClientStatDataProvider::ProviderSummaryInfo
const ProviderSummaryInfo
Provider summary info.
Definition: FtpClientStatDataProvider.qc.dox.h:44
FtpClientDataProvider::FtpClientStatDataProvider::doRequestImpl
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
FtpClientDataProvider::FtpClientStatDataProvider::getStaticInfoImpl
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
FtpClientDataProvider::FtpClientStatDataProvider::getRequestTypeImpl
*AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
FtpClientDataProvider::FtpClientStatDataProvider::ftp
FtpClient ftp
FTP connection.
Definition: FtpClientStatDataProvider.qc.dox.h:32
FtpClientDataProvider::FtpClientStatDataProvider::getModifiedTime
static date getModifiedTime(FtpClient ftp, string path)
Returns the modified time for a remote file, if possible.
FtpClientDataProvider::FtpClientStatDataProvider::getResponseTypeImpl
*AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
FtpClientDataProvider::FtpClientStatDataProvider::RequestType
const RequestType
Request type.
Definition: FtpClientStatDataProvider.qc.dox.h:49
FtpClientDataProvider::FtpClientStatDataProvider::doStat
static hash< auto > doStat(FtpClient ftp, string path, *bool assume_known)
Performs a "stat"-like action on a remote file.
FtpClientDataProvider::FtpClientStatResponseDataType
Data type for FTP client stat response calls.
Definition: FtpClientStatResponseDataType.qc.dox.h:27
FtpClientDataProvider
Qore FtpClientDataProvider module definition.
Definition: FtpClientCreateFileDataProvider.qc.dox.h:26