| Qore FileDataProvider Module Reference 1.0

FileListDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3
26 namespace FileDataProvider {
28 class FileListDataProvider : public AbstractDataProvider {
29
30 public:
32 const ProviderInfo = <DataProviderInfo>{
33 "name": "list",
34 "desc": "List files data provider; returns file information about the path given as an argument",
35 "type": "FileListDataProvider",
36 "supports_request": True,
37 };
38
40 const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
41 AbstractDataProvider::DataProviderSummaryInfoKeys
42 });
43
45 const RequestType = new FilePathDataType();
46
48 const ResponseType = new ListDataType(new FileListResponseDataType(), True);
49
51 constructor(*hash<auto> options);
52
53
55 string getName();
56
57
59
66 protected:
67 auto doRequestImpl(auto req, *hash<auto> request_options);
68 public:
69
70
72
74 protected:
75 *AbstractDataProviderType getRequestTypeImpl();
76 public:
77
78
80
82 protected:
83 *AbstractDataProviderType getResponseTypeImpl();
84 public:
85
86
88 hash<DataProviderInfo> getStaticInfoImpl();
89
90 };
91 };
FileDataProvider::FileListDataProvider
The file list data provider class.
Definition: FileListDataProvider.qc.dox.h:28
FileDataProvider::FileListDataProvider::RequestType
const RequestType
Request type.
Definition: FileListDataProvider.qc.dox.h:45
FileDataProvider::FileListDataProvider::getResponseTypeImpl
*AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
FileDataProvider::FileListDataProvider::ProviderInfo
const ProviderInfo
Provider info.
Definition: FileListDataProvider.qc.dox.h:32
FileDataProvider::FileListDataProvider::getStaticInfoImpl
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
FileDataProvider::FileListDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
FileDataProvider::FileListDataProvider::getName
string getName()
Returns the data provider name.
FileDataProvider::FileListDataProvider::getRequestTypeImpl
*AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
FileDataProvider::FileListDataProvider::ResponseType
const ResponseType
Response type.
Definition: FileListDataProvider.qc.dox.h:48
FileDataProvider::FileListDataProvider::ProviderSummaryInfo
const ProviderSummaryInfo
Provider summary info.
Definition: FileListDataProvider.qc.dox.h:40
FileDataProvider::FileListDataProvider::doRequestImpl
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
FileDataProvider::FileListResponseDataType
Data type for stat file response calls.
Definition: FileListResponseDataType.qc.dox.h:27
FileDataProvider::FilePathDataType
Data type for delete file request calls.
Definition: FilePathDataType.qc.dox.h:27
True
const True
FileDataProvider
Qore FileDataProvider module definition.
Definition: FileCopyDataProvider.qc.dox.h:26