Documentation for OpenFLUID 2.2.0
GDALCompatibility.hpp File Reference

Detailed Description

Author
Jean-Christophe FABRE jean-.nosp@m.chri.nosp@m.stoph.nosp@m.e.fa.nosp@m.bre@i.nosp@m.nra..nosp@m.fr

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

#include <gdal.h>
Include dependency graph for GDALCompatibility.hpp:

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 GDALFlush_COMPAT(_M_dataset)
 
#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)
 
#define GDALGetDriverName_COMPAT(_M_driver)
 
#define GDALOFTInteger64_COMPAT
 
#define GDALOFTIntegerList64_COMPAT
 

Macro Definition Documentation

◆ GDALAllRegister_COMPAT

#define GDALAllRegister_COMPAT ( )

Macro for compatibility of vector drivers registering

◆ GDALClose_COMPAT

#define GDALClose_COMPAT (   _M_ptr)

Macro for compatibility of data source closing

Parameters
_M_ptrPointer to the data source to close

◆ GDALCopy_COMPAT

#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

◆ GDALCreate_COMPAT

#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

◆ GDALDataset_COMPAT

#define GDALDataset_COMPAT

Macro for compatibility of vector data source type

◆ GDALDelete_COMPAT

#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

◆ GDALDriver_COMPAT

#define GDALDriver_COMPAT

Macro for compatibility of vector driver type

◆ GDALFlush_COMPAT

#define GDALFlush_COMPAT (   _M_dataset)

Macro for compatibility of syncing/flushing a dataset to disk

Parameters
_M_datasetThe dataset

◆ GDALGetDriverByName_COMPAT

#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

◆ GDALGetDriverName_COMPAT

#define GDALGetDriverName_COMPAT (   _M_driver)

Macro for compatibility of getting a the name of the driver from a driver object

Parameters
_M_driverThe driver object
Returns
the name of the driver

◆ GDALOFTInteger64_COMPAT

#define GDALOFTInteger64_COMPAT

Macro for compatibility of Integer64 and Integer64List type

◆ GDALOFTIntegerList64_COMPAT

#define GDALOFTIntegerList64_COMPAT

◆ GDALOpenRO_COMPAT

#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

◆ GDALOpenRW_COMPAT

#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