Qore DataProvider Module Reference 2.7.5
Loading...
Searching...
No Matches
QoreDataField.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:
39 string name;
40
42 *string desc;
43
46
47public:
48
50 constructor(string name, *string desc, Type type, auto default_value, *softlist<auto> allowed_values);
51
52
55
56
58 string getName();
59
60
62 *string getDescription();
63
64
67
68
70
73 appendDescription(string separator, string new_desc);
74
75
77 hash<DataFieldInfo> getInfo();
78
79
81
84
85
87
90
91
93
95protected:
97public:
98
99};
100};
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:47
list< auto > allowed_values
for enum fields; raw allowed values
Definition: AbstractDataField.qc.dox.h:55
auto default_value
the default value for the field, if any
Definition: AbstractDataField.qc.dox.h:52
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:206
describes a data type based on a hashdecl
Definition: QoreDataField.qc.dox.h:34
hash< DataFieldInfo > getInfo()
returns information about the field
*string desc
description of the field
Definition: QoreDataField.qc.dox.h:42
AbstractDataProviderType getType()
returns the type of the field
AbstractDataField getOrNothingType()
returns a field with an "or nothing" type equivalent to the current type
string getName()
returns the name of the field
*string getDescription()
returns the description, if any
constructor(string name, *string desc, AbstractDataProviderType type, auto default_value, *softlist< auto > allowed_values)
creates the field from the arguments
constructor(string name, *string desc, Type type, auto default_value, *softlist< auto > allowed_values)
creates the field from the arguments
AbstractDataField getSoftType()
returns a field with a "soft" type equivalent to the current type
string name
name of the field
Definition: QoreDataField.qc.dox.h:39
appendDescription(string separator, string new_desc)
adds a string to the description
AbstractDataProviderType type
field type
Definition: QoreDataField.qc.dox.h:45
AbstractDataField getNewFieldType(AbstractDataProviderType new_type)
returns a field with the new type
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27