Qore DataProvider Module Reference 2.7.5
Loading...
Searching...
No Matches
HashDeclDataType.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
25// assume local scope for variables, do not use "$" signs
26// require type definitions everywhere
28// enable all warnings
29
30
32namespace DataProvider {
35
36public:
37protected:
38 TypedHash hd;
39
40public:
41
43 constructor(TypedHash hd, *hash<auto> options, *hash<auto> tags) ;
44
45
47protected:
48 constructor(Type type, *hash<auto> options, *hash<auto> tags) ;
49public:
50
51
53
59 auto acceptsValue(auto value);
60
61
63
67
68
70 *hash<string, AbstractDataField> getFields();
71
72
75
76
78 TypedHash getTypedHash();
79
80
82
85
86
88
91
92};
93};
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:47
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:206
*hash< auto > tags
type tags
Definition: AbstractDataProviderType.qc.dox.h:222
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:219
describes a data type based on a hashdecl
Definition: HashDeclDataType.qc.dox.h:34
AbstractDataProviderType getOrNothingType()
Returns an "or nothing" type equivalent to the current type.
*AbstractDataField getField(string name)
Returns the given field, if present, or NOTHING if not.
*hash< string, AbstractDataField > getFields()
Returns the fields of the data structure; if any.
auto acceptsValue(auto value)
Returns the value if the value can be assigned to the type.
TypedHash getTypedHash()
Returns the TypedHash backing the type.
constructor(Type type, *hash< auto > options, *hash< auto > tags)
creates the object from a TypedHash Type
constructor(TypedHash hd, *hash< auto > options, *hash< auto > tags)
creates the object from the TypedHash
bool isAssignableFrom(AbstractDataProviderType t)
Returns True if this type can be assigned from values of the argument type.
AbstractDataProviderType getSoftType()
Returns a "soft" type equivalent to the current type.
describes a data type based on a Qore data type
Definition: QoreDataType.qc.dox.h:31
Type type
the Qore type
Definition: QoreDataType.qc.dox.h:36
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27