 |
Qore DataProvider Module Reference
1.0.3
|
86 hash<string, hash<DataFieldInfo>>
fields;
97 static Type anyType = Reflection::AutoType;
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:56
string base_type
output: base type
Definition: AbstractDataProviderType.qc.dox.h:74
AbstractDataProviderType getSoftType()
Returns a "soft" type equivalent to the current type.
bool isAssignableFrom(Type t)
Returns True if this type can be assigned from values of the argument type.
constructor(hash< auto > options)
creates the type and sets options
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:93
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.
static AbstractDataProviderType get(string typename, *hash< auto > options)
Returns an appropriate object for the given type.
bool can_manage_fields
if fields can be added dynamically to the type
Definition: AbstractDataProviderType.qc.dox.h:89
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:71
list< string > types_returned
input: list of types returned
Definition: AbstractDataProviderType.qc.dox.h:83
string desc
the description of the option
Definition: AbstractDataProviderType.qc.dox.h:59
abstract *AbstractDataProviderType getElementType()
Returns the subtype (for lists or hashes) if there is only one.
describes type options
Definition: AbstractDataProviderType.qc.dox.h:54
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:65
*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:46
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:63
*hash< auto > getOptions()
Returns options set on the type.
bool mandatory
output: can be null / missing?
Definition: AbstractDataProviderType.qc.dox.h:77
const TypeCodeMap
maps type codes to type names
Definition: AbstractDataProviderType.qc.dox.h:34
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:103
abstract string getName()
Returns the type name.
hash< string, hash< DataFieldInfo > > fields
any fields supported by the type
Definition: AbstractDataProviderType.qc.dox.h:86
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:80
const OptimalQoreDataTypeMap
maps Qore type name constant values from the Type namespace to optimal Qore types names
Definition: AbstractDataProviderType.qc.dox.h:40
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:50
*hash< string, hash< DataProviderTypeOptionInfo > > supported_options
output: transformation options supported by the type
Definition: AbstractDataProviderType.qc.dox.h:68