#include <ogrsf_frmts.h>
Public Member Functions | |
void | RegisterDriver (OGRSFDriver *poDriver) |
int | GetDriverCount (void) |
OGRSFDriver * | GetDriver (int iDriver) |
Static Public Member Functions | |
OGRSFDriverRegistrar * | GetRegistrar () |
OGRDataSource * | Open (const char *pszName, int bUpdate=FALSE, OGRSFDriver **ppoDriver=NULL) |
|
Fetch the indicated driver. This method is the same as the C function OGRGetDriver().
|
|
Fetch the number of registered drivers. This method is the same as the C function OGRGetDriverCount().
|
|
Return the driver manager, creating one if none exist.
|
|
Open a file / data source with one of the registered drivers. This method loops through all the drivers registered with the driver manager trying each until one succeeds with the given data source. This method is static. Applications don't normally need to use any other OGRSFDriverRegistrar methods directly, not do they normally need to have a pointer to an OGRSFDriverRegistrar instance. If this method fails, CPLGetLastErrorMsg() can be used to check if there is an error message explaining why. This method is the same as the C function OGROpen().
|
|
Add a driver to the list of registered drivers. If the passed driver is already registered (based on pointer comparison) then the driver isn't registered. New drivers are added at the end of the list of registered drivers. This method is the same as the C function OGRRegisterDriver().
|