HashDataType.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 HashDataType : public QoreDataType {
public:
protected:
string name;
hash<string, AbstractDataField> fields;
public:
constructor(string name = AutoHashType.getName(), *hash<auto> options) ;
constructor(Type base_type, *string name, *hash<auto> options) ;
string getName();
auto acceptsValue(auto value);
addField(AbstractDataField field);
*AbstractDataField getField(string name);
*hash<string, AbstractDataField> getFields();
AbstractDataProviderType getSoftType();
AbstractDataProviderType getOrNothingType();
};
};
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:161
DataProvider::AbstractDataField
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:49
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:32
DataProvider::HashDataType::getSoftType
AbstractDataProviderType getSoftType()
returns a "soft" type equivalent to the current type
DataProvider::HashDataType::fields
hash< string, AbstractDataField > fields
fields
Definition: HashDataType.qc.dox.h:42
DataProvider::HashDataType::acceptsValue
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
DataProvider::AbstractDataProviderType::options
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:169
DataProvider::HashDataType::name
string name
the name of the type
Definition: HashDataType.qc.dox.h:39
DataProvider::HashDataType::getField
*AbstractDataField getField(string name)
returns the given field, if present, or NOTHING if not
DataProvider::HashDataType
describes a data type based on a hash
Definition: HashDataType.qc.dox.h:34
DataProvider::HashDataType::getName
string getName()
returns the type name
DataProvider::AbstractDataProviderType::constructor
constructor()
creates the type
DataProvider::HashDataType::getFields
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
DataProvider::HashDataType::addField
addField(AbstractDataField field)
adds a field to the type
DataProvider::HashDataType::getOrNothingType
AbstractDataProviderType getOrNothingType()
returns an "or nothing" type equivalent to the current type
DataProvider::QoreDataType
describes a data type based on a Qore data type
Definition: QoreDataType.qc.dox.h:37