OEMakeMatchField
template<typename T> OEField<T> OEMakeMatchField(const std::string& name,
const OEFieldType<T>& t,
OEFieldMeta meta = OEFieldMeta(),
bool readonly = false,
bool nullable = false)
template<type T>OEMakeMatchField(const std::string& name,
const OEVectorFieldType<T>& t,
OEFieldMeta meta = OEFieldMeta(),
bool readonly = false,
bool nullable = false)
Creates an OEMatchField object to be used for adding data to, or retrieving data from, an OERecord object. Match fields are used mainly to retrieve data from a record when you don’t know the name of a field but know its type and associated metadata.
- name
The name the field will be given.
- t
This specifies the type of match field to be created. This will usually come from the
Typesnamespace.- meta
If this field is provided, the returned OEMatchField object will only retrieve data from fields that match this metadata.
- readonly
If true, the returned match field can only be used to read data to a record, not write it.
- nullable
If true, the returned field match field will allow setting of null values on a record.
See also