GDAL
Public Member Functions | Static Public Member Functions
OGRDataSource Class Reference

LEGACY class. More...

#include <ogrsf_frmts.h>

Inheritance diagram for OGRDataSource:
GDALDataset GDALMajorObject OGRMutexedDataSource

List of all members.

Public Member Functions

virtual const char * GetName () OGR_DEPRECATED("Use GDALDataset class instead")=0

Static Public Member Functions

static void DestroyDataSource (OGRDataSource *) OGR_DEPRECATED("Use GDALDataset class instead")

Detailed Description

LEGACY class.

Use GDALDataset in your new code ! This class may be removed in a later release.

This class represents a data source. A data source potentially consists of many layers (OGRLayer). A data source normally consists of one, or a related set of files, though the name doesn't have to be a real item in the file system.

When an OGRDataSource is destroyed, all it's associated OGRLayers objects are also destroyed.

NOTE: Starting with GDAL 2.0, it is *NOT* safe to cast the handle of a C function that returns a OGRDataSourceH to a OGRDataSource*. If a C++ object is needed, the handle should be cast to GDALDataset*.

Deprecated:

The documentation for this class was generated from the following files:

Generated for GDAL by doxygen 1.7.6.1.