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);
constructor(string name, *string desc, AbstractDataProviderType type, auto default_value);
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::QoreDataField::getOrNothingType
AbstractDataField getOrNothingType()
returns a field with an "or nothing" type equivalent to the current type
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:161
DataProvider::QoreDataField::getSoftType
AbstractDataField getSoftType()
returns a field with a "soft" type equivalent to the current type
DataProvider::QoreDataField::getNewFieldType
AbstractDataField getNewFieldType(AbstractDataProviderType new_type)
returns a field with the new type
DataProvider::AbstractDataField
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:49
DataProvider::QoreDataField::constructor
constructor(string name, *string desc, Type type, auto default_value)
creates the field from the arguments
DataProvider::QoreDataField::getType
AbstractDataProviderType getType()
returns the type of the field
DataProvider::QoreDataField::getInfo
hash< DataFieldInfo > getInfo()
returns information about the field
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:32
DataProvider::QoreDataField::appendDescription
appendDescription(string separator, string new_desc)
adds a string to the description
DataProvider::QoreDataField
describes a data type based on a hashdecl
Definition: QoreDataField.qc.dox.h:34
DataProvider::QoreDataField::constructor
constructor(string name, *string desc, AbstractDataProviderType type, auto default_value)
creates the field from the arguments
DataProvider::QoreDataField::name
string name
name of the field
Definition: QoreDataField.qc.dox.h:39
DataProvider::QoreDataField::getName
string getName()
returns the name of the field
DataProvider::QoreDataField::getDescription
*string getDescription()
returns the description, if any
DataProvider::QoreDataField::type
AbstractDataProviderType type
field type
Definition: QoreDataField.qc.dox.h:45
DataProvider::QoreDataField::desc
*string desc
description of the field
Definition: QoreDataField.qc.dox.h:42
DataProvider::AbstractDataField::default_value
auto default_value
the default value for the field, if any
Definition: AbstractDataField.qc.dox.h:54