Qore FtpClientDataProvider Module Reference  1.0
FtpClientCreateFileDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
28 class FtpClientCreateFileDataProvider : public AbstractDataProvider {
29 
30 public:
32  FtpClient ftp;
33 
35  const ProviderInfo = <DataProviderInfo>{
36  "name": "create-file",
37  "desc": "FTP create file data provider; creates a file in the given location",
38  "type": "FtpClientCreateFileDataProvider",
39  "constructor_options": FtpClientDataProvider::ConstructorOptions,
40  "supports_request": True,
41  };
42 
44  const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
45  AbstractDataProvider::DataProviderSummaryInfoKeys
46  });
47 
50 
53 
55  constructor(*hash<auto> options);
56 
57 
59  constructor(FtpClient ftp);
60 
61 
63  string getName();
64 
65 
67 
72 protected:
73  auto doRequestImpl(auto req, *hash<auto> request_options);
74 public:
75 
76 
78 
80 protected:
81  *AbstractDataProviderType getRequestTypeImpl();
82 public:
83 
84 
86 
88 protected:
89  *AbstractDataProviderType getResponseTypeImpl();
90 public:
91 
92 
94  hash<DataProviderInfo> getStaticInfoImpl();
95 
96 };
97 };
The FTP client create file data provider class.
Definition: FtpClientCreateFileDataProvider.qc.dox.h:28
const ProviderSummaryInfo
Provider summary info.
Definition: FtpClientCreateFileDataProvider.qc.dox.h:44
*AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
const ResponseType
Response type.
Definition: FtpClientCreateFileDataProvider.qc.dox.h:52
constructor(FtpClient ftp)
Creates the object from an FTP connection.
constructor(*hash< auto > options)
Creates the object from constructor options.
FtpClient ftp
FTP connection.
Definition: FtpClientCreateFileDataProvider.qc.dox.h:32
const RequestType
Request type.
Definition: FtpClientCreateFileDataProvider.qc.dox.h:49
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
*AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
const ProviderInfo
Provider info.
Definition: FtpClientCreateFileDataProvider.qc.dox.h:35
string getName()
Returns the data provider name.
Data type for FTP client create file request calls.
Definition: FtpClientCreateFileRequestDataType.qc.dox.h:27
const ConstructorOptions
Constructor arguments.
Definition: FtpClientDataProvider.qc.dox.h:42
Data type for FTP client stat request calls.
Definition: FtpClientPathDataType.qc.dox.h:27
const True
Qore FtpClientDataProvider module definition.
Definition: FtpClientCreateFileDataProvider.qc.dox.h:26