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{};
63 OGRMutexedDataSource(
OGRDataSource *poBaseDataSource,
int bTakeOwnership,
64 CPLMutex *hMutexIn,
int bWrapLayersInMutexedLayer);
67 virtual ~OGRMutexedDataSource()
override;
71 return m_poBaseDataSource;
74 virtual const char *GetName()
override;
88 char **papszOptions =
nullptr)
override;
90 char **papszOptions =
nullptr)
override;
99 const char *pszDialect)
override;
108 virtual char **
GetMetadata(
const char *pszDomain =
"")
override;
110 const char *pszDomain =
"")
override;
112 const char *pszDomain =
"")
override;
114 const char *pszDomain =
"")
override;
116 virtual std::vector<std::string>
121 virtual bool AddFieldDomain(std::unique_ptr<OGRFieldDomain> &&domain,
122 std::string &failureReason)
override;
124 std::string &failureReason)
override;
126 std::string &failureReason)
override;
128 std::vector<std::string>
134 virtual std::shared_ptr<GDALGroup>
GetRootGroup()
const override;
139 #endif // OGRMUTEXEDDATASOURCELAYER_H_INCLUDED
virtual OGRErr StartTransaction(int bForce=FALSE)
For datasources which support transactions, StartTransaction creates a `transaction.
Definition: gdaldataset.cpp:7526
virtual std::vector< std::string > GetFieldDomainNames(CSLConstList papszOptions=nullptr) const
Returns a list of the names of all field domains stored in the dataset.
Definition: gdaldataset.cpp:8593
This class represents a style table.
Definition: ogr_featurestyle.h:84
virtual std::shared_ptr< GDALGroup > GetRootGroup() const
Return the root GDALGroup of this dataset.
Definition: gdaldataset.cpp:8510
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition: ogr_spatialref.h:166
virtual OGRLayer * GetLayer(int iLayer)
Fetch a layer by index.
Definition: gdaldataset.cpp:7059
Abstract base class for all geometry classes.
Definition: ogr_geometry.h:334
This class represents a layer of simple features, with access methods.
Definition: ogrsf_frmts.h:73
void static void char ** GetMetadata(const char *pszDomain="") override
Fetch metadata.
Definition: gdaldataset.cpp:4362
virtual std::vector< std::string > GetRelationshipNames(CSLConstList papszOptions=nullptr) const
Returns a list of the names of all relationships stored in the dataset.
Definition: gdaldataset.cpp:8916
virtual OGRLayer * CopyLayer(OGRLayer *poSrcLayer, const char *pszNewName, char **papszOptions=nullptr)
Duplicate an existing layer.
Definition: gdaldataset.cpp:5242
virtual const char * GetMetadataItem(const char *pszName, const char *pszDomain="")
Fetch single metadata item.
Definition: gdalmajorobject.cpp:341
virtual void ReleaseResultSet(OGRLayer *poResultsSet)
Release results of ExecuteSQL().
Definition: gdaldataset.cpp:6923
Definition of a table relationship.
Definition: gdal_priv.h:3357
virtual OGRErr CommitTransaction()
For datasources which support transactions, CommitTransaction commits a transaction.
Definition: gdaldataset.cpp:7616
virtual OGRLayer * ExecuteSQL(const char *pszStatement, OGRGeometry *poSpatialFilter, const char *pszDialect)
Execute an SQL statement against the data store.
Definition: gdaldataset.cpp:6366
virtual OGRStyleTable * GetStyleTable()
Returns dataset style table.
Definition: gdaldataset.cpp:6945
virtual bool UpdateFieldDomain(std::unique_ptr< OGRFieldDomain > &&domain, std::string &failureReason)
Updates an existing field domain by replacing its definition.
Definition: gdaldataset.cpp:8848
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition: cpl_port.h:1178
virtual bool DeleteFieldDomain(const std::string &name, std::string &failureReason)
Removes a field domain from the dataset.
Definition: gdaldataset.cpp:8778
virtual bool AddFieldDomain(std::unique_ptr< OGRFieldDomain > &&domain, std::string &failureReason)
Add a field domain to the dataset.
Definition: gdaldataset.cpp:8699
virtual OGRLayer * GetLayerByName(const char *)
Fetch a layer by name.
Definition: gdaldataset.cpp:5609
virtual const GDALRelationship * GetRelationship(const std::string &name) const
Get a relationship from its name.
Definition: gdaldataset.cpp:8960
LEGACY class.
Definition: ogrsf_frmts.h:502
Definition of a field domain.
Definition: ogr_feature.h:1355
int OGRErr
Type for a OGR error.
Definition: ogr_core.h:378
virtual bool IsLayerPrivate(int iLayer) const
Returns true if the layer at the specified index is deemed a private or system table,...
Definition: gdaldataset.cpp:7082
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:406
virtual OGRLayer * ICreateLayer(const char *pszName, const OGRSpatialReference *poSpatialRef=nullptr, OGRwkbGeometryType eGType=wkbUnknown, char **papszOptions=nullptr)
This method attempts to create a new layer on the dataset with the indicated name,...
Definition: gdaldataset.cpp:5199
virtual int GetLayerCount()
Get the number of layers in this dataset.
Definition: gdaldataset.cpp:7029
CPLErr SetMetadataItem(const char *pszName, const char *pszValue, const char *pszDomain) override
Set single metadata item.
CPLErr
Error category.
Definition: cpl_error.h:52
CPLErr SetMetadata(char **papszMetadata, const char *pszDomain) override
Set metadata.
virtual void SetStyleTableDirectly(OGRStyleTable *poStyleTable)
Set dataset style table.
Definition: gdaldataset.cpp:6968
virtual OGRErr RollbackTransaction()
For datasources which support transactions, RollbackTransaction will roll back a datasource to its st...
Definition: gdaldataset.cpp:7671
virtual int TestCapability(const char *)
Test if capability is available.
Definition: gdaldataset.cpp:7418
virtual const OGRFieldDomain * GetFieldDomain(const std::string &name) const
Get a field domain from its name.
Definition: gdaldataset.cpp:8643
virtual void SetStyleTable(OGRStyleTable *poStyleTable)
Set dataset style table.
Definition: gdaldataset.cpp:6994
@ wkbUnknown
unknown type, non-standard
Definition: ogr_core.h:408
#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:1042
virtual CPLErr FlushCache(bool bAtClosing=false)
Flush all write cached data to disk.
Definition: gdaldataset.cpp:556
virtual OGRErr DeleteLayer(int iLayer)
Delete the indicated layer from the datasource.
Definition: gdaldataset.cpp:5580