AbstractDataProviderFactory.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace DataProvider {
public struct DataProviderFactoryInfo {
string name;
string desc;
bool api_management = False;
hash<DataProviderInfo> provider_info;
};
class AbstractDataProviderFactory {
public:
AbstractDataProvider create(*hash<auto> options);
string getName();
Class getClass();
hash<DataProviderFactoryInfo> getInfo();
hash<auto> getInfoAsData(*bool with_type_info);
hash<DataProviderInfo> getProviderInfo();
AbstractDataProvider getProviderFromExample(data example, *hash<auto> constructor_options);
AbstractDataProvider getProviderFromExample(InputStream example, *hash<auto> constructor_options);
list<hash<auto>> getExampleProviderRecordOutput(data example, *hash<auto> constructor_options);
list<hash<auto>> getExampleProviderRecordOutput(InputStream example, *hash<auto> constructor_options);
protected:
error(string err, string fmt);
public:
protected:
AbstractDataProvider getProviderFromExampleImpl(InputStream example, *hash<auto> constructor_options);
public:
protected:
list<hash<auto>> getExampleProviderRecordOutputImpl(InputStream example, *hash<auto> constructor_options);
public:
protected:
string getNameImpl();
public:
protected:
abstract hash<DataProviderFactoryInfo> getInfoImpl();
public:
protected:
abstract Class getClassImpl();
public:
protected:
abstract hash<DataProviderInfo> getProviderInfoImpl();
public:
};
};
DataProvider::DataProviderFactoryInfo::name
string name
The factory name.
Definition: AbstractDataProviderFactory.qc.dox.h:30
DataProvider::DataProviderFactoryInfo::api_management
bool api_management
Does this factory create a data provider suitable for server-side API management. ...
Definition: AbstractDataProviderFactory.qc.dox.h:34
DataProvider::AbstractDataProviderFactory::getInfo
hash< DataProviderFactoryInfo > getInfo()
Returns static factory information.
DataProvider::AbstractDataProvider
The AbstractDataProvider class.
Definition: AbstractDataProvider.qc.dox.h:260
DataProvider::AbstractDataProviderFactory::getClassImpl
abstract Class getClassImpl()
Returns the class for the data provider object.
DataProvider::AbstractDataProviderFactory::getProviderFromExampleImpl
AbstractDataProvider getProviderFromExampleImpl(InputStream example, *hash< auto > constructor_options)
Returns a data provider given the example data and constructor options as arguments.
DataProvider::AbstractDataProviderFactory::error
error(string err, string fmt)
thrown an exception
DataProvider::DataProviderFactoryInfo::desc
string desc
The factory description.
Definition: AbstractDataProviderFactory.qc.dox.h:32
False
const False
DataProvider::AbstractDataProviderFactory
Data provider factory class.
Definition: AbstractDataProviderFactory.qc.dox.h:39
DataProvider::AbstractDataProviderFactory::getInfoImpl
abstract hash< DataProviderFactoryInfo > getInfoImpl()
Returns static factory information without provider_info.
DataProvider::AbstractDataProviderFactory::getProviderInfo
hash< DataProviderInfo > getProviderInfo()
Returns static provider information.
DataProvider::AbstractDataProviderFactory::getProviderFromExample
AbstractDataProvider getProviderFromExample(data example, *hash< auto > constructor_options)
Returns a data provider given the example data and constructor options as arguments.
DataProvider::AbstractDataProviderFactory::getInfoAsData
hash< auto > getInfoAsData(*bool with_type_info)
Returns static provider information as data; no objects are returned.
DataProvider::AbstractDataProviderFactory::getName
string getName()
Returns the name of the data provider factory.
DataProvider::AbstractDataProviderFactory::getNameImpl
string getNameImpl()
Returns the name of the data provider factory.
DataProvider::AbstractDataProviderFactory::create
AbstractDataProvider create(*hash< auto > options)
Creates an object from the given constructor options.
DataProvider::AbstractDataProviderFactory::getClass
Class getClass()
Returns the class for the data provider object.
DataProvider::AbstractDataProviderFactory::getProviderInfoImpl
abstract hash< DataProviderInfo > getProviderInfoImpl()
Returns static provider information.
DataProvider::AbstractDataProviderFactory::getExampleProviderRecordOutput
list< hash< auto > > getExampleProviderRecordOutput(data example, *hash< auto > constructor_options)
Returns information about a data provider constructor given the example data as an argument...
DataProvider::AbstractDataProviderFactory::getExampleProviderRecordOutputImpl
list< hash< auto > > getExampleProviderRecordOutputImpl(InputStream example, *hash< auto > constructor_options)
Returns information about a data provider constructor given the example data as an argument...
DataProvider::DataProviderFactoryInfo
Data provider factory info.
Definition: AbstractDataProviderFactory.qc.dox.h:28
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
DataProvider::DataProviderFactoryInfo::provider_info
hash< DataProviderInfo > provider_info
Info about providers created from this factory (without the name and children attributes) ...
Definition: AbstractDataProviderFactory.qc.dox.h:36