Sirius  0.0.0
types.h
Go to the documentation of this file.
1 
22 #ifndef SIRIUS_GDAL_TYPES_H_
23 #define SIRIUS_GDAL_TYPES_H_
24 
25 #include <memory>
26 #include <type_traits>
27 
28 #include <gdal.h>
29 #include <gdal_priv.h>
30 
31 namespace sirius {
32 namespace gdal {
33 
34 namespace detail {
35 
40  void operator()(::GDALDataset* dataset) { ::GDALClose(dataset); }
41 };
42 
43 } // namespace detail
44 
45 using DatasetUPtr = std::unique_ptr<::GDALDataset, detail::DatasetDeleter>;
46 
47 } // namespace gdal
48 } // namespace sirius
49 
50 #endif // SIRIUS_GDAL_TYPES_H_
Deleter of GDALDataset for smart pointer.
Definition: types.h:39
Definition: exception.h:27
std::unique_ptr<::GDALDataset, detail::DatasetDeleter > DatasetUPtr
Definition: types.h:45
void operator()(::GDALDataset *dataset)
Definition: types.h:40