#include <ogrsf_frmts.h>
Public Member Functions | |
virtual const char * | GetName ()=0 |
virtual OGRDataSource * | Open (const char *pszName, int bUpdate=FALSE)=0 |
virtual int | TestCapability (const char *)=0 |
virtual OGRErr | DeleteDataSource (const char *pszName) |
One OGRSFDriver derived class will normally exist for each file format registered for use, regardless of whether a file has or will be opened. The list of available drivers is normally managed by the OGRSFDriverRegistrar.
|
Destroy a datasource. Destroy the named datasource. Normally it would be safest if the datasource was not open at the time. Whether this is a supported operation on this driver case be tested using TestCapability() on ODrCDeleteDataSource. This method is the same as the C function OGR_Dr_DeleteDataSource().
|
|
Fetch name of driver (file format). This name should be relatively short (10-40 characters), and should reflect the underlying file format. For instance "ESRI Shapefile". This method is the same as the C function OGR_Dr_GetName().
|
|
Attempt to open file with this driver. This method is what OGRSFDriverRegistrar uses to implement its Open() method. See it for more details. This method is the same as the C function OGR_Dr_Open().
|
|
Test if capability is available. One of the following data source capability names can be passed into this method, and a TRUE or FALSE value will be returned indicating whether or not the capability is available for this object.
The #define macro forms of the capability names should be used in preference to the strings themselves to avoid mispelling. This method is the same as the C function OGR_Dr_TestCapability().
|