81 hash<string, hash<DataFieldInfo>>
fields;
92 static Type anyType = Reflection::AutoType;
235 abstract *hash<string, AbstractDataField>
getFields();
const TypeCodeMap
maps type codes to type names
Definition: AbstractDataProviderType.qc.dox.h:29
*AbstractDataField getField(string field_name)
Returns the given field, if present, or NOTHING if not.
string name
the name of the type
Definition: AbstractDataProviderType.qc.dox.h:60
*hash< auto > getOptions()
Returns options set on the type.
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:58
setOption(string opt, auto value)
sets the given option on the type
const OptimalQoreSoftDataTypeMap
maps Qore type name constant values from the Type namespace to optimal Qore types names ...
Definition: AbstractDataProviderType.qc.dox.h:41
hash< DataTypeInfo > getInfo()
Returns a description of the type as a hash.
*hash< auto > options
output: current transformation option values
Definition: AbstractDataProviderType.qc.dox.h:66
bool isMandatory()
Returns True if the type must have a value.
abstract auto acceptsValue(auto value)
Returns the value if the value can be assigned to the type.
abstract *hash< string, AbstractDataField > getFields()
Returns the fields of the data structure; if any.
hash< string, hash< DataFieldInfo > > fields
any fields supported by the type
Definition: AbstractDataProviderType.qc.dox.h:81
*hash< string, hash< DataProviderTypeOptionInfo > > getSupportedOptions()
Returns supported options.
string base_type
output: base type
Definition: AbstractDataProviderType.qc.dox.h:69
*hash< string, hash< DataProviderTypeOptionInfo > > supported_options
output: transformation options supported by the type
Definition: AbstractDataProviderType.qc.dox.h:63
describes type options
Definition: AbstractDataProviderType.qc.dox.h:49
bool hasType()
Returns True if the type is not a wildcard type.
bool mandatory
output: can be null / missing?
Definition: AbstractDataProviderType.qc.dox.h:72
AbstractDataProviderType getSoftType()
Returns a "soft" type equivalent to the current type.
string type
the option value type
Definition: AbstractDataProviderType.qc.dox.h:51
list< string > types_accepted
output: list of types accepted
Definition: AbstractDataProviderType.qc.dox.h:75
setOptions(hash< auto > options)
sets options on the type
const OptimalQoreDataTypeMap
maps Qore type name constant values from the Type namespace to optimal Qore types names ...
Definition: AbstractDataProviderType.qc.dox.h:35
abstract *Type getValueType()
Returns the base type for the type, if any.
bool isAssignableFrom(AbstractDataProviderType t)
Returns True if this type can be assigned from values of the argument type.
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:98
abstract hash< string, bool > getReturnTypeHash()
Returns a hash of types returned by this type; keys are type names.
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:88
string desc
the description of the option
Definition: AbstractDataProviderType.qc.dox.h:54
abstract hash< string, bool > getAcceptTypeHash()
Returns a hash of types accepted by this type; keys are type names.
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:44
AbstractDataProviderType getOrNothingType()
Returns an "or nothing" type equivalent to the current type.
list< string > types_returned
input: list of types returned
Definition: AbstractDataProviderType.qc.dox.h:78
int getBaseTypeCode()
Returns the base type code for the type.
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
const DataTypeMap
maps Qore type name constant values to data type objects
Definition: AbstractDataProviderType.qc.dox.h:45
*hash< string, hash< DataFieldInfo > > getFieldInfo()
Returns information on fields supported.
abstract *AbstractDataProviderType getElementType()
Returns the subtype (for lists or hashes) if there is only one.
string getBaseTypeName()
Returns the base type name for the type; must be a standard Qore base type name.
*AbstractDataProviderType getFieldType(string field_name)
get the given field type if it exists, otherwise return NOTHING
bool can_manage_fields
if fields can be added dynamically to the type
Definition: AbstractDataProviderType.qc.dox.h:84
bool isList()
Returns True if this type is a list.
abstract string getName()
Returns the type name.
hash< DataTypeInfo > getInputInfo()
Returns a description of the type as an input type.
auto getOptionValue(string opt)
Returns the value of the given option.
constructor()
creates the type
setOptionIntern(string opt, auto value)
sets the given option without any validation of the option
*hash< string, bool > getDirectTypeHash()
Returns a hash of native base type code keys where no translations are performed; keys are type codes...
bool isOrNothingType()
Returns True if the type also accepts NOTHING.