GDAL
CPLAutoClose< _Ty, _Dx > Class Template Reference

The class use the destructor to automatically close the resource. More...

#include <cpl_auto_close.h>

Detailed Description

template<typename _Ty, typename _Dx>
class CPLAutoClose< _Ty, _Dx >

The class use the destructor to automatically close the resource.

Example: GDALDatasetH hDset = GDALOpen(path,GA_ReadOnly); CPLAutoClose<GDALDatasetH,void(*)(void*)> autoclosehDset(hDset,GDALClose); Or: GDALDatasetH hDset = GDALOpen(path,GA_ReadOnly); CPL_AUTO_CLOSE_WARP(hDset,GDALClose);


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

Generated for GDAL by doxygen 1.8.8.