OEMakeField¶
template<type T>OEMakeField(const std::string &name, const OEFieldType<T> &t, OEFieldMeta meta=OEFieldMeta(), bool readonly=false, bool nullable=false)
template<type T>OEMakeField(const std::string &name, const OEVectorFieldType<T> &t, OEFieldMeta meta=OEFieldMeta(), bool readonly=false, bool nullable=false)
Creates an OEField object to be used for adding data to, or retrieving data from, an OERecord object.
- name
The name the field will be given.
- t
This specifies the type of field to be created. This will usually come from the
Types
namespace.- meta
Optional metadata to be applied to the field.
- readonly
If true, the field can only be used to read data to a record, not write it.
- nullable
If true, the field will allow setting of null values on a record.
See also