| Qore DataProvider Module Reference 1.2.1

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
32 namespace DataProvider {
34 class HashDeclDataType : public QoreDataType {
35
36 public:
37 protected:
38 TypedHash hd;
39
40 public:
41
43 constructor(TypedHash hd, *hash<auto> options) ;
44
45
47 protected:
48 constructor(Type type, *hash<auto> options) ;
49 public:
50
51
53
59 auto acceptsValue(auto value);
60
61
63
66 bool isAssignableFrom(AbstractDataProviderType t);
67
68
70 *hash<string, AbstractDataField> getFields();
71
72
74 *AbstractDataField getField(string name);
75
76
78 TypedHash getTypedHash();
79
80
82
84 AbstractDataProviderType getSoftType();
85
86
88
90 AbstractDataProviderType getOrNothingType();
91
92 };
93 };
DataProvider::HashDeclDataType::acceptsValue
auto acceptsValue(auto value)
Returns the value if the value can be assigned to the type.
DataProvider::HashDeclDataType::getField
*AbstractDataField getField(string name)
Returns the given field, if present, or NOTHING if not.
DataProvider::HashDeclDataType::isAssignableFrom
bool isAssignableFrom(AbstractDataProviderType t)
Returns True if this type can be assigned from values of the argument type.
DataProvider::HashDeclDataType::getFields
*hash< string, AbstractDataField > getFields()
Returns the fields of the data structure; if any.
DataProvider::QoreDataType::type
Type type
the Qore type
Definition: QoreDataType.qc.dox.h:42
DataProvider::HashDeclDataType
describes a data type based on a hashdecl
Definition: HashDeclDataType.qc.dox.h:34
DataProvider::HashDeclDataType::getOrNothingType
AbstractDataProviderType getOrNothingType()
Returns an "or nothing" type equivalent to the current type.
DataProvider::HashDeclDataType::getTypedHash
TypedHash getTypedHash()
Returns the TypedHash backing the type.
DataProvider::AbstractDataProviderType::options
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:98
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:88
DataProvider::AbstractDataField
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:44
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
DataProvider::HashDeclDataType::getSoftType
AbstractDataProviderType getSoftType()
Returns a "soft" type equivalent to the current type.
DataProvider::QoreDataType
describes a data type based on a Qore data type
Definition: QoreDataType.qc.dox.h:37
DataProvider::AbstractDataProviderType::constructor
constructor()
creates the type