Qore SwaggerDataProvider Module Reference  1.0.3
SwaggerDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
25 namespace SwaggerDataProvider {
28 class SwaggerDataProvider : public AbstractDataProvider {
29 
30 public:
32  SwaggerSchema schema;
33 
36 
38  string uri_path = "/";
39 
41  const ProviderInfo = ...;
42 
43 
45  const ConstructorOptions = ...;
46 
47 
49  const HttpMethods = ...;
50 
51 
52 protected:
54  hash<auto> path_tree;
55 
56 public:
57 
59 protected:
60  constructor(hash<auto> path_tree, string uri_path, SwaggerSchema schema, *RestClient rest);
61 public:
62 
63 
65  constructor(SwaggerSchema schema, *RestClient rest);
66 
67 
69  constructor(*hash<auto> options);
70 
71 
73  string getName();
74 
75 
77 protected:
79 public:
80 
81 
82 protected:
83  setupTree();
84 public:
85 
86 
88 
90 protected:
91  *list<string> getChildProviderNamesImpl();
92 public:
93 
94 
96 
100 protected:
101  *AbstractDataProvider getChildProviderImpl(string name);
102 public:
103 
104 
106 protected:
107  AbstractDataProvider getChildIntern(string name, *string real_name);
108 public:
109 
110 
112 protected:
113  hash<DataProviderInfo> getStaticInfoImpl();
114 public:
115 
116 };
117 }; // end namespace swagger
SwaggerDataProvider::SwaggerDataProvider::path_tree
hash< auto > path_tree
hash of valid paths
Definition: SwaggerDataProvider.qc.dox.h:54
SwaggerDataProvider::SwaggerDataProvider::checkRestClient
checkRestClient(RestClient rest)
Checks the REST client.
SwaggerDataProvider::SwaggerDataProvider::schema
SwaggerSchema schema
The Swagger schema.
Definition: SwaggerDataProvider.qc.dox.h:32
SwaggerDataProvider::SwaggerDataProvider::getChildProviderImpl
*AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
SwaggerDataProvider::SwaggerDataProvider::getChildIntern
AbstractDataProvider getChildIntern(string name, *string real_name)
Returns the child provider for the given path component.
RestClient
SwaggerDataProvider::SwaggerDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
SwaggerDataProvider
Qore SwaggerDataProvider module definition.
Definition: SwaggerDataProvider.qc.dox.h:26
SwaggerDataProvider::SwaggerDataProvider::constructor
constructor(SwaggerSchema schema, *RestClient rest)
Creates the object from the arguments.
SwaggerDataProvider::SwaggerDataProvider::constructor
constructor(hash< auto > path_tree, string uri_path, SwaggerSchema schema, *RestClient rest)
Private constructor; used when traversing the tree.
SwaggerDataProvider::SwaggerDataProvider::getChildProviderNamesImpl
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
SwaggerDataProvider::SwaggerDataProvider::getName
string getName()
Returns the data provider name.
SwaggerDataProvider::SwaggerDataProvider::getStaticInfoImpl
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
SwaggerDataProvider::SwaggerDataProvider::rest
*RestClient rest
The REST client object for API calls.
Definition: SwaggerDataProvider.qc.dox.h:35