GDAL
|
Definition of a field domain. More...
#include <ogr_feature.h>
Public Member Functions | |
virtual | ~OGRFieldDomain ()=0 |
Destructor. | |
virtual OGRFieldDomain * | Clone () const =0 |
Clone. | |
const std::string & | GetName () const |
Get the name of the field domain. | |
const std::string & | GetDescription () const |
Get the description of the field domain. | |
OGRFieldDomainType | GetDomainType () const |
Get the type of the field domain. | |
OGRFieldType | GetFieldType () const |
Get the field type. | |
OGRFieldSubType | GetFieldSubType () const |
Get the field subtype. | |
OGRFieldDomainSplitPolicy | GetSplitPolicy () const |
Get the split policy. | |
void | SetSplitPolicy (OGRFieldDomainSplitPolicy policy) |
Set the split policy. | |
OGRFieldDomainMergePolicy | GetMergePolicy () const |
Get the merge policy. | |
void | SetMergePolicy (OGRFieldDomainMergePolicy policy) |
Set the merge policy. | |
Static Public Member Functions | |
static OGRFieldDomainH | ToHandle (OGRFieldDomain *poFieldDomain) |
Convert a OGRFieldDomain* to a OGRFieldDomainH. | |
static OGRFieldDomain * | FromHandle (OGRFieldDomainH hFieldDomain) |
Convert a OGRFieldDomainH to a OGRFieldDomain*. | |
Definition of a field domain.
A field domain is a set of constraints that apply to one or several fields.
This is a concept found in File Geodatabase or GeoPackage (using the schema extension) for example.
A field domain can be:
|
pure virtualdefault |
Destructor.
This is the same as the C function OGR_FldDomain_Destroy().
|
pure virtual |
Clone.
Return a cloned object, or nullptr in case of error.
Implemented in OGRCodedFieldDomain, OGRRangeFieldDomain, and OGRGlobFieldDomain.
|
inline |
Get the description of the field domain.
Empty string if there is none.
This is the same as the C function OGR_FldDomain_GetDescription().
|
inline |
Get the type of the field domain.
This is the same as the C function OGR_FldDomain_GetDomainType().
|
inline |
Get the field subtype.
This is the same as the C function OGR_FldDomain_GetFieldSubType().
|
inline |
Get the field type.
This is the same as the C function OGR_FldDomain_GetFieldType().
|
inline |
Get the merge policy.
This is the same as the C function OGR_FldDomain_GetMergePolicy().
|
inline |
Get the name of the field domain.
This is the same as the C function OGR_FldDomain_GetName().
|
inline |
Get the split policy.
This is the same as the C function OGR_FldDomain_GetSplitPolicy().
|
inline |
Set the merge policy.
This is the same as the C function OGR_FldDomain_SetMergePolicy().
|
inline |
Set the split policy.
This is the same as the C function OGR_FldDomain_SetSplitPolicy().