30 #ifndef OGRMUTEXEDDATASOURCELAYER_H_INCLUDED 31 #define OGRMUTEXEDDATASOURCELAYER_H_INCLUDED 36 #include "cpl_multiproc.h" 37 #include "ogrmutexedlayer.h" 54 CPLMutex *m_hGlobalMutex;
55 int m_bWrapLayersInMutexedLayer;
56 std::map<OGRLayer*, OGRMutexedLayer* > m_oMapLayers{};
57 std::map<OGRMutexedLayer*, OGRLayer* > m_oReverseMapLayers{};
67 int bWrapLayersInMutexedLayer);
70 virtual ~OGRMutexedDataSource();
72 OGRDataSource* GetBaseDataSource() {
return m_poBaseDataSource; }
74 virtual const char *GetName()
override;
86 char ** papszOptions =
nullptr )
override;
88 const char *pszNewName,
89 char **papszOptions =
nullptr )
override;
98 const char *pszDialect )
override;
107 virtual char **
GetMetadata(
const char * pszDomain =
"" )
override;
109 const char * pszDomain =
"" )
override;
111 const char * pszDomain =
"" )
override;
113 const char * pszValue,
114 const char * pszDomain =
"" )
override;
119 #endif // OGRMUTEXEDDATASOURCELAYER_H_INCLUDED LEGACY class.
Definition: ogrsf_frmts.h:317
virtual OGRErr DeleteLayer(int iLayer)
Delete the indicated layer from the datasource.
Definition: gdaldataset.cpp:4623
virtual OGRLayer * GetLayer(int iLayer)
Fetch a layer by index.
Definition: gdaldataset.cpp:6073
virtual void SetStyleTable(OGRStyleTable *poStyleTable)
Set dataset style table.
Definition: gdaldataset.cpp:6011
virtual void FlushCache(void)
Flush all write cached data to disk.
Definition: gdaldataset.cpp:396
virtual OGRErr CommitTransaction()
For datasources which support transactions, CommitTransaction commits a transaction.
Definition: gdaldataset.cpp:6601
unknown type, non-standard
Definition: ogr_core.h:319
void char ** GetMetadata(const char *pszDomain="") override
Fetch metadata.
Definition: gdaldataset.cpp:3484
virtual OGRLayer * CopyLayer(OGRLayer *poSrcLayer, const char *pszNewName, char **papszOptions=nullptr)
Duplicate an existing layer.
Definition: gdaldataset.cpp:4259
virtual void ReleaseResultSet(OGRLayer *poResultsSet)
Release results of ExecuteSQL().
Definition: gdaldataset.cpp:5943
virtual OGRStyleTable * GetStyleTable()
Returns dataset style table.
Definition: gdaldataset.cpp:5965
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
virtual OGRLayer * ExecuteSQL(const char *pszStatement, OGRGeometry *poSpatialFilter, const char *pszDialect)
Execute an SQL statement against the data store.
Definition: gdaldataset.cpp:5433
Classes related to registration of format support, and opening datasets.
virtual OGRLayer * GetLayerByName(const char *)
Fetch a layer by name.
Definition: gdaldataset.cpp:4652
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition: ogr_spatialref.h:147
virtual void SetStyleTableDirectly(OGRStyleTable *poStyleTable)
Set dataset style table.
Definition: gdaldataset.cpp:5985
virtual OGRErr RollbackTransaction()
For datasources which support transactions, RollbackTransaction will roll back a datasource to its st...
Definition: gdaldataset.cpp:6653
CPLErr SetMetadataItem(const char *pszName, const char *pszValue, const char *pszDomain) override
Set single metadata item.
This class represents a layer of simple features, with access methods.
Definition: ogrsf_frmts.h:70
This class represents a style table.
Definition: ogr_featurestyle.h:84
virtual int GetLayerCount()
Get the number of layers in this dataset.
Definition: gdaldataset.cpp:6046
virtual OGRLayer * ICreateLayer(const char *pszName, OGRSpatialReference *poSpatialRef=nullptr, OGRwkbGeometryType eGType=wkbUnknown, char **papszOptions=nullptr)
This method attempts to create a new layer on the dataset with the indicated name, coordinate system, geometry type.
Definition: gdaldataset.cpp:4218
CPLErr SetMetadata(char **papszMetadata, const char *pszDomain) override
Set metadata.
int OGRErr
Simple container for a bounding region.
Definition: ogr_core.h:290
const char * GetMetadataItem(const char *pszName, const char *pszDomain) override
Fetch single metadata item.
virtual int TestCapability(const char *)
Test if capability is available.
Definition: gdaldataset.cpp:6406
virtual OGRErr StartTransaction(int bForce=FALSE)
For datasources which support transactions, StartTransaction creates a `transaction.
Definition: gdaldataset.cpp:6511
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