#include <gdal_priv.h>
Inheritance diagram for GDALDriverManager:
Public Methods | |
GDALDriverManager () | |
~GDALDriverManager () | |
int | GetDriverCount ( void ) |
Fetch the number of registered drivers. More... | |
GDALDriver* | GetDriver ( int ) |
Fetch driver by index. More... | |
GDALDriver* | GetDriverByName ( const char * ) |
Fetch a driver based on the short name. More... | |
int | RegisterDriver ( GDALDriver * ) |
Register a driver for use. More... | |
void | MoveDriver ( GDALDriver *, int ) |
void | DeregisterDriver ( GDALDriver * ) |
Deregister the passed driver. More... | |
void | AutoLoadDrivers () |
Auto-load GDAL drivers from shared libraries. More... | |
const char* | GetHome () |
void | SetHome ( const char * ) |
Use GetGDALDriverManager() to fetch the global singleton instance of this class.
|
Auto-load GDAL drivers from shared libraries. This function will automatically load drivers from shared libraries. It searches the "driver path" for .so (or .dll) files that start with the prefix "gdal_X.so". It then tries to load them and then tries to call a function within them called GDALRegister_X() where the 'X' is the same as the remainder of the shared library basename, or failing that to call GDALRegisterMe(). There are a few rules for the driver path. If the GDAL_DRIVER_PATH environment variable it set, it is taken to be a list of directories to search separated by colons on unix, or semi-colons on Windows. Otherwise the /usr/local/lib directory, and (if known) the lib subdirectory of the gdal home directory are searched. |
|
Deregister the passed driver. If the driver isn't found no change is made. The C analog is GDALDeregisterDriver().
|
|
Fetch driver by index. This C analog to this is GDALGetDriver().
|
|
Fetch a driver based on the short name. The C analog is the GDALGetDriverByName() function.
|
|
Fetch the number of registered drivers. This C analog to this is GDALGetDriverCount().
|
|
Register a driver for use. The C analog is GDALRegisterDriver(). Normally this method is used by format specific C callable registration entry points such as GDALRegister_GTiff() rather than being called directly by application level code. If this driver (based on the object pointer, not short name) is already registered, then no change is made, and the index of the existing driver is returned. Otherwise the driver list is extended, and the new driver is added at the end.
|