Qore DataProvider Module Reference  1.2.1
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 
32 namespace DataProvider {
35 
36 public:
37 protected:
39  string name;
40 
42  *string desc;
43 
46 
47 public:
48 
50  constructor(string name, *string desc, Type type, auto default_value);
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 
95 protected:
97 public:
98 
99 };
100 };
auto default_value
the default value for the field, if any
Definition: AbstractDataField.qc.dox.h:49
*string getDescription()
returns the description, if any
AbstractDataProviderType type
field type
Definition: QoreDataField.qc.dox.h:45
string name
name of the field
Definition: QoreDataField.qc.dox.h:39
*string desc
description of the field
Definition: QoreDataField.qc.dox.h:42
string getName()
returns the name of the field
AbstractDataField getOrNothingType()
returns a field with an "or nothing" type equivalent to the current type
describes a data type based on a hashdecl
Definition: QoreDataField.qc.dox.h:34
AbstractDataField getNewFieldType(AbstractDataProviderType new_type)
returns a field with the new type
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:88
hash< DataFieldInfo > getInfo()
returns information about the field
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:44
constructor(string name, *string desc, Type type, auto default_value)
creates the field from the arguments
AbstractDataField getSoftType()
returns a field with a "soft" type equivalent to the current type
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
appendDescription(string separator, string new_desc)
adds a string to the description
AbstractDataProviderType getType()
returns the type of the field