Macros
GDALCompatibility.hpp File Reference
#include <gdal.h>
Include dependency graph for GDALCompatibility.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GDALAllRegister_COMPAT()
 
#define GDALDataset_COMPAT
 
#define GDALDriver_COMPAT
 
#define GDALOpenRW_COMPAT(_M_path)
 
#define GDALOpenRO_COMPAT(_M_path)
 
#define GDALCopy_COMPAT(_M_driver, _M_srcptr, _M_destpath)
 
#define GDALCreate_COMPAT(_M_driver, _M_path)
 
#define GDALClose_COMPAT(_M_ptr)
 
#define GDALDelete_COMPAT(_M_driver, _M_path)
 
#define GDALGetDriverByName_COMPAT(_M_name)
 

Detailed Description

Author
Jean-Christophe FABRE jean-.nosp@m.chri.nosp@m.stoph.nosp@m.e.fa.nosp@m.bre@s.nosp@m.upag.nosp@m.ro.in.nosp@m.ra.f.nosp@m.r

This file contains macros to help ensuring compatibility between GDAL version 1.xx and 2.xx of this library. These macros mainly apply to vector part (OGR) of the library

Macro Definition Documentation

#define GDALAllRegister_COMPAT ( )

Macro for compatibility of vector drivers registering

#define GDALClose_COMPAT (   _M_ptr)

Macro for compatibility of data source closing

Parameters
_M_ptrPointer to the data source to close
#define GDALCopy_COMPAT (   _M_driver,
  _M_srcptr,
  _M_destpath 
)

Macro for compatibility of vector data copy

Parameters
_M_driverDriver to use for the copy
_M_srcptrData source to copy
_M_destpathPath to the copied file(s)
Returns
a pointer to a GDALDataset_COMPAT data source for the newly copied files
#define GDALCreate_COMPAT (   _M_driver,
  _M_path 
)

Macro for compatibility of vector data creation

Parameters
_M_driverDriver to use for the creation
_M_pathPath to the file(s) to create
Returns
a pointer to a GDALDataset_COMPAT data source for the newly created files
#define GDALDataset_COMPAT

Macro for compatibility of vector data source type

#define GDALDelete_COMPAT (   _M_driver,
  _M_path 
)

Macro for compatibility of physical deletion of vector data

Parameters
_M_driverDriver to use for the deletion
_M_pathPath to the file(s) to delete
#define GDALDriver_COMPAT

Macro for compatibility of vector driver type

#define GDALGetDriverByName_COMPAT (   _M_name)

Macro for compatibility of getting a driver by its name

Parameters
_M_nameName of the driver
Returns
a pointer to a GDALDriver_COMPAT driver, NULL if not found
#define GDALOpenRO_COMPAT (   _M_path)

Macro for compatibility of vector data opening (in read only mode)

Parameters
_M_pathPath to the file(s) to open
Returns
a pointer to a GDALDataset_COMPAT data source
#define GDALOpenRW_COMPAT (   _M_path)

Macro for compatibility of vector data opening (in read-write mode)

Parameters
_M_pathPath to the file(s) to open
Returns
a pointer to a GDALDataset_COMPAT data source