Qore DataProvider Module Reference  2.3
QoreDataType.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
26 namespace DataProvider {
28 
32 
33 public:
34 protected:
36  Type type;
37 
39  bool soft_type;
40 
43 
45 
50  hash<string, bool> base_type_hash;
51 
53  *hash<string, bool> accept_type_hash;
54 
56  *hash<string, bool> return_type_hash;
57 
59  hash<string, bool> blacklist_type_hash;
60 
62  const SupportedOptions = ...;
63 
64 
66  const SoftTypeMap = ...;
67 
68 
69 public:
70 
72  constructor(Type type, *hash<auto> options, *hash<auto> tags);
73 
74 
76  string getName();
77 
78 
80  *hash<string, hash<DataProviderTypeOptionInfo>> getSupportedOptions();
81 
82 
84  *Type getValueType();
85 
86 
88  *hash<string, bool> getDirectTypeHash();
89 
90 
93 
94 
96 
102  auto acceptsValue(auto value);
103 
104 
106  *hash<string, AbstractDataField> getFields();
107 
108 
110  hash<string, bool> getAcceptTypeHash();
111 
112 
114  hash<string, bool> getReturnTypeHash();
115 
116 
118  hash<DataTypeInfo> getInfo();
119 
120 
122 
125 
126 
128 
131 
132 };
133 };
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:112
*hash< auto > tags
type tags
Definition: AbstractDataProviderType.qc.dox.h:125
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:122
describes a data type based on a Qore data type
Definition: QoreDataType.qc.dox.h:31
bool or_nothing_type
flag for "or nothing" types
Definition: QoreDataType.qc.dox.h:42
hash< string, bool > getReturnTypeHash()
returns a hash of base types returned by this type; keys are type names
const SupportedOptions
supported options
Definition: QoreDataType.qc.dox.h:62
AbstractDataProviderType getOrNothingType()
returns an "or nothing" type equivalent to the current type
*AbstractDataProviderType getElementType()
returns the subtype (for lists or hashes) if there is only one
*hash< string, bool > accept_type_hash
hash of base types accepted by this type; keys are type names
Definition: QoreDataType.qc.dox.h:53
hash< string, bool > base_type_hash
hash of base types where no translations are performed; keys are type codes, not names
Definition: QoreDataType.qc.dox.h:50
*hash< string, bool > return_type_hash
hash of base types returned by this type; keys are type names
Definition: QoreDataType.qc.dox.h:56
Type type
the Qore type
Definition: QoreDataType.qc.dox.h:36
bool soft_type
flag for soft types
Definition: QoreDataType.qc.dox.h:39
*hash< string, hash< DataProviderTypeOptionInfo > > getSupportedOptions()
returns supported options
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
constructor(Type type, *hash< auto > options, *hash< auto > tags)
creates the type
const SoftTypeMap
map from normal types to soft types
Definition: QoreDataType.qc.dox.h:66
*Type getValueType()
returns the base type for the type, if any
AbstractDataProviderType getSoftType()
returns a "soft" type equivalent to the current type
hash< string, bool > getAcceptTypeHash()
returns a hash of base types accepted by this type; keys are type names
string getName()
returns the type name
hash< string, bool > blacklist_type_hash
hash of type codes accepted by the base type but not accepted by this type: code -> True
Definition: QoreDataType.qc.dox.h:59
*hash< string, bool > getDirectTypeHash()
returns a hash of native base type code where no translations are performed; keys are type codes,...
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
hash< DataTypeInfo > getInfo()
returns a description of the type as a hash
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27