47 hash<string, AbstractDataField>
fields;
104 *hash<string, AbstractDataField>
getFields();
bool isAssignableFrom(AbstractDataProviderType t)
Returns True if this type can be assigned from values of the argument type.
string getName()
Returns the type name.
addField(AbstractDataField field)
adds a field to the type
static AbstractDataProviderType get(Type type, *hash< auto > options)
Returns an appropriate object for the given type.
auto acceptsValue(auto value)
Returns the value if the value can be assigned to the type.
string name
the name of the type
Definition: HashDataType.qc.dox.h:44
AbstractDataProviderType getSoftType()
Returns a "soft" type equivalent to the current type.
AbstractDataProviderType getOrNothingType()
Returns an "or nothing" type equivalent to the current type.
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:98
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:88
*AbstractDataProviderType default_other_field_type
allow other fields
Definition: HashDataType.qc.dox.h:50
describes a data type based on a hash
Definition: HashDataType.qc.dox.h:39
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:44
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
setDefaultOtherFieldType(*AbstractDataProviderType default_other_field_type)
Sets the default field type for unlisted fields.
hash< string, AbstractDataField > fields
fields
Definition: HashDataType.qc.dox.h:47
bool has_default_other_field_type
if the type requires validation
Definition: HashDataType.qc.dox.h:53
*hash< string, AbstractDataField > getFields()
Returns the fields of the data structure; if any.
*AbstractDataField getField(string name)
Returns the given field, if present, or NOTHING if not.
describes a data type based on a Qore data type
Definition: QoreDataType.qc.dox.h:37
constructor()
creates the type