Qore DataProvider Module Reference  1.0
HashDataType.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 HashDataType : public QoreDataType {
35 
36 public:
37 protected:
39  string name;
40 
42  hash<string, AbstractDataField> fields;
43 
44 public:
45 
47  constructor(string name = AutoHashType.getName(), *hash<auto> options) ;
48 
49 
51  constructor(Type base_type, *string name, *hash<auto> options) ;
52 
53 
55  string getName();
56 
57 
59 
65  auto acceptsValue(auto value);
66 
67 
70 
71 
74 
75 
77  *hash<string, AbstractDataField> getFields();
78 
79 
81 
84 
85 };
86 };
string getName()
returns the type name
addField(AbstractDataField field)
adds a field to the 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:39
AbstractDataProviderType getSoftType()
returns a "soft" type equivalent to the current type
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:169
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:161
describes a data type based on a hash
Definition: HashDataType.qc.dox.h:34
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:49
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:32
hash< string, AbstractDataField > fields
fields
Definition: HashDataType.qc.dox.h:42
*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