30 #ifndef OGRMUTEXEDLAYER_H_INCLUDED 31 #define OGRMUTEXEDLAYER_H_INCLUDED 35 #include "ogrlayerdecorator.h" 36 #include "cpl_multiproc.h" 45 class CPL_DLL OGRMutexedLayer :
public OGRLayerDecorator
55 OGRMutexedLayer(
OGRLayer* poDecoratedLayer,
60 virtual ~OGRMutexedLayer();
63 virtual void SetSpatialFilter(
OGRGeometry * )
override;
64 virtual void SetSpatialFilterRect(
double dfMinX,
double dfMinY,
65 double dfMaxX,
double dfMaxY )
override;
66 virtual void SetSpatialFilter(
int iGeomField,
OGRGeometry * )
override;
67 virtual void SetSpatialFilterRect(
int iGeomField,
double dfMinX,
double dfMinY,
68 double dfMaxX,
double dfMaxY )
override;
70 virtual OGRErr SetAttributeFilter(
const char * )
override;
72 virtual void ResetReading()
override;
80 virtual const char *GetName()
override;
86 virtual GIntBig GetFeatureCount(
int bForce = TRUE )
override;
87 virtual OGRErr GetExtent(
int iGeomField, OGREnvelope *psExtent,
int bForce = TRUE)
override;
88 virtual OGRErr GetExtent(OGREnvelope *psExtent,
int bForce = TRUE)
override;
90 virtual int TestCapability(
const char * )
override;
93 int bApproxOK = TRUE )
override;
94 virtual OGRErr DeleteField(
int iField )
override;
95 virtual OGRErr ReorderFields(
int* panMap )
override;
96 virtual OGRErr AlterFieldDefn(
int iField,
OGRFieldDefn* poNewFieldDefn,
int nFlags )
override;
98 virtual OGRErr SyncToDisk()
override;
101 virtual void SetStyleTableDirectly(
OGRStyleTable *poStyleTable )
override;
103 virtual void SetStyleTable(
OGRStyleTable *poStyleTable)
override;
105 virtual OGRErr StartTransaction()
override;
106 virtual OGRErr CommitTransaction()
override;
107 virtual OGRErr RollbackTransaction()
override;
109 virtual const char *GetFIDColumn()
override;
110 virtual const char *GetGeometryColumn()
override;
112 virtual OGRErr SetIgnoredFields(
const char **papszFields )
override;
114 virtual char **GetMetadata(
const char * pszDomain =
"" )
override;
115 virtual CPLErr SetMetadata(
char ** papszMetadata,
116 const char * pszDomain =
"" )
override;
117 virtual const char *GetMetadataItem(
const char * pszName,
118 const char * pszDomain =
"" )
override;
119 virtual CPLErr SetMetadataItem(
const char * pszName,
120 const char * pszValue,
121 const char * pszDomain =
"" )
override;
126 #endif // OGRMUTEXEDLAYER_H_INCLUDED Definition of a feature class or feature layer.
Definition: ogr_feature.h:259
Definition of an attribute of an OGRFeatureDefn.
Definition: ogr_feature.h:92
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:317
Abstract base class for all geometry classes.
Definition: ogr_geometry.h:286
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition: ogr_spatialref.h:147
This class represents a layer of simple features, with access methods.
Definition: ogrsf_frmts.h:70
A simple feature, including geometry and attributes.
Definition: ogr_feature.h:354
This class represents a style table.
Definition: ogr_featurestyle.h:84
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition: cpl_port.h:248
int OGRErr
Simple container for a bounding region.
Definition: ogr_core.h:290
CPLErr
Error category.
Definition: cpl_error.h:52
#define CPL_DISALLOW_COPY_ASSIGN(ClassName)
Helper to remove the copy and assignment constructors so that the compiler will not generate the defa...
Definition: cpl_port.h:989