Loading...
Searching...
No Matches
QoreDataField.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
// assume local scope for variables, do not use "$" signs
// require type definitions everywhere
// enable all warnings
namespace DataProvider {
class QoreDataField : public AbstractDataField {
public:
protected:
string name;
*string desc;
AbstractDataProviderType type;
public:
constructor(string name, *string desc, Type type, auto default_value, *softlist<auto> allowed_values);
constructor(string name, *string desc, AbstractDataProviderType type, auto default_value, *softlist<auto> allowed_values);
string getName();
*string getDescription();
AbstractDataProviderType getType();
appendDescription(string separator, string new_desc);
hash<DataFieldInfo> getInfo();
AbstractDataField getSoftType();
AbstractDataField getOrNothingType();
protected:
AbstractDataField getNewFieldType(AbstractDataProviderType new_type);
public:
};
};
DataProvider::AbstractDataField
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:47
DataProvider::AbstractDataField::allowed_values
list< auto > allowed_values
for enum fields; raw allowed values
Definition: AbstractDataField.qc.dox.h:55
DataProvider::AbstractDataField::default_value
auto default_value
the default value for the field, if any
Definition: AbstractDataField.qc.dox.h:52
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:206
DataProvider::QoreDataField
describes a data type based on a hashdecl
Definition: QoreDataField.qc.dox.h:34
DataProvider::QoreDataField::getInfo
hash< DataFieldInfo > getInfo()
returns information about the field
DataProvider::QoreDataField::desc
*string desc
description of the field
Definition: QoreDataField.qc.dox.h:42
DataProvider::QoreDataField::getType
AbstractDataProviderType getType()
returns the type of the field
DataProvider::QoreDataField::getOrNothingType
AbstractDataField getOrNothingType()
returns a field with an "or nothing" type equivalent to the current type
DataProvider::QoreDataField::getName
string getName()
returns the name of the field
DataProvider::QoreDataField::getDescription
*string getDescription()
returns the description, if any
DataProvider::QoreDataField::constructor
constructor(string name, *string desc, AbstractDataProviderType type, auto default_value, *softlist< auto > allowed_values)
creates the field from the arguments
DataProvider::QoreDataField::constructor
constructor(string name, *string desc, Type type, auto default_value, *softlist< auto > allowed_values)
creates the field from the arguments
DataProvider::QoreDataField::getSoftType
AbstractDataField getSoftType()
returns a field with a "soft" type equivalent to the current type
DataProvider::QoreDataField::name
string name
name of the field
Definition: QoreDataField.qc.dox.h:39
DataProvider::QoreDataField::appendDescription
appendDescription(string separator, string new_desc)
adds a string to the description
DataProvider::QoreDataField::type
AbstractDataProviderType type
field type
Definition: QoreDataField.qc.dox.h:45
DataProvider::QoreDataField::getNewFieldType
AbstractDataField getNewFieldType(AbstractDataProviderType new_type)
returns a field with the new type
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27