 |
Qore DataProvider Module Reference
1.0.1
|
79 "boolean":
"softbool",
81 "double":
"softfloat",
105 "all": AbstractDataProviderType::anyType,
106 "*int": IntOrNothingType,
107 "*integer": IntOrNothingType,
108 "*string": StringOrNothingType,
109 "*boolean": BoolOrNothingType,
110 "*bool": BoolOrNothingType,
111 "*double": FloatOrNothingType,
112 "*float": FloatOrNothingType,
113 "*number": NumberOrNothingType,
114 "*binary": BinaryOrNothingType,
115 "*list": AutoListOrNothingType,
116 "*hash": AutoHashOrNothingType,
117 "*object": ObjectOrNothingType,
118 "*date": DateOrNothingType,
154 hash<string, hash<DataFieldInfo>>
fields;
164 static Type nothingType(
"nothing");
165 static Type anyType(
"auto");
304 abstract *hash<string, AbstractDataField>
getFields();
abstract hash< string, bool > getReturnTypeHash()
returns a hash of types returned by this type; keys are type names
string type
the option value type
Definition: AbstractDataProviderType.qc.dox.h:124
string base_type
output: base type
Definition: AbstractDataProviderType.qc.dox.h:142
AbstractDataProviderType getSoftType()
returns a "soft" type equivalent to the current type
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:161
string getBaseTypeName()
returns the base type name for the type; must be a standard Qore base type name
setOption(string opt, auto value)
sets the given option on the type
bool hasType()
returns True if the type is not a wildcard type
bool can_manage_fields
if fields can be added dynamically to the type
Definition: AbstractDataProviderType.qc.dox.h:157
hash< DataTypeInfo > getInfo()
returns a description of the type as a hash
abstract auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
static AbstractDataProviderType get(Type type, *hash< auto > options)
returns an appropriate object for the given type
hash< DataTypeInfo > getInputInfo()
returns a description of the type as an input type
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:49
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:32
bool isAssignableFrom(AbstractDataProviderType t)
returns True if this type can be assigned from values of the argument type
*hash< auto > options
output: current transformation option values
Definition: AbstractDataProviderType.qc.dox.h:139
list< string > types_returned
input: list of types returned
Definition: AbstractDataProviderType.qc.dox.h:151
string desc
the description of the option
Definition: AbstractDataProviderType.qc.dox.h:127
abstract *AbstractDataProviderType getElementType()
returns the subtype (for lists or hashes) if there is only one
describes type options
Definition: AbstractDataProviderType.qc.dox.h:122
abstract *hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
int getBaseTypeCode()
returns the base type code for the type
auto getOptionValue(string opt)
returns the value of the given option
string name
the name of the type
Definition: AbstractDataProviderType.qc.dox.h:133
*AbstractDataProviderType getFieldType(string field_name)
get the given field type if it exists, otherwise return NOTHING
AbstractDataProviderType getOrNothingType()
returns an "or nothing" type equivalent to the current type
setOptions(hash< auto > options)
sets options on the type
*hash< string, hash< DataProviderTypeOptionInfo > > getSupportedOptions()
returns supported options
*hash< string, hash< DataFieldInfo > > getFieldInfo()
Returns information on fields supported.
const OptimalQoreSoftDataTypeMap
maps Qore type name constant values from the Type namespace to optimal Qore types names
Definition: AbstractDataProviderType.qc.dox.h:75
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:131
*hash< auto > getOptions()
returns options set on the type
bool mandatory
output: can be null / missing?
Definition: AbstractDataProviderType.qc.dox.h:145
const TypeCodeMap
maps type codes to type names
Definition: AbstractDataProviderType.qc.dox.h:34
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:169
abstract string getName()
returns the type name
hash< string, hash< DataFieldInfo > > fields
any fields supported by the type
Definition: AbstractDataProviderType.qc.dox.h:154
abstract *Type getValueType()
returns the base type for the type, if any
list< string > types_accepted
output: list of types accepted
Definition: AbstractDataProviderType.qc.dox.h:148
const OptimalQoreDataTypeMap
maps Qore type name constant values from the Type namespace to optimal Qore types names
Definition: AbstractDataProviderType.qc.dox.h:53
bool isList()
returns True if this type is a list
bool isMandatory()
returns True if the type must have a value
*AbstractDataField getField(string field_name)
returns the given field, if present, or NOTHING if not
constructor()
creates the type
abstract hash< string, bool > getAcceptTypeHash()
returns a hash of types accepted by this type; keys are type names
setOptionIntern(string opt, auto value)
sets the given option without any validation of the option
bool isOrNothingType()
returns True if the type also accepts NOTHING
*hash< string, bool > getDirectTypeHash()
returns a hash of native base type code keys where no translations are performed; keys are type codes...
const DataTypeMap
maps Qore type name constant values to data type objects
Definition: AbstractDataProviderType.qc.dox.h:89
*hash< string, hash< DataProviderTypeOptionInfo > > supported_options
output: transformation options supported by the type
Definition: AbstractDataProviderType.qc.dox.h:136