#ifdef __cplusplus extern "C" { #endif #pragma once #include "hgdalType.h" #include "HGDALOGRGeometry.h" #include "STDDeletable.h" #define OGRGEOMETRYCOLLECTION_DECL_VIRT(Type) \ #define OGRGEOMETRYCOLLECTION_DECL_NONVIRT(Type) \ int Type##_oGRGeometryCollection_getNumGeometries ( Type##_p p );\ OGRGeometry_p Type##_oGRGeometryCollection_getGeometryRef ( Type##_p p, int i ); #define OGRGEOMETRYCOLLECTION_DECL_ACCESSOR(Type) \ #define OGRGEOMETRYCOLLECTION_DEF_VIRT(Type) \ #define OGRGEOMETRYCOLLECTION_DEF_NONVIRT(Type) \ int Type##_oGRGeometryCollection_getNumGeometries ( Type##_p p ) {\ return ((TYPECASTMETHOD(Type, oGRGeometryCollection_getNumGeometries, OGRGeometryCollection))(p))->getNumGeometries();\ }\ \ OGRGeometry_p Type##_oGRGeometryCollection_getGeometryRef ( Type##_p p, int i ) {\ return from_nonconst_to_nonconst((OGRGeometry*)((TYPECASTMETHOD(Type, oGRGeometryCollection_getGeometryRef, OGRGeometryCollection))(p))->getGeometryRef(i));\ } #define OGRGEOMETRYCOLLECTION_DEF_ACCESSOR(Type) \ OGRGEOMETRY_DECL_VIRT(OGRGeometryCollection) DELETABLE_DECL_VIRT(OGRGeometryCollection) OGRGEOMETRYCOLLECTION_DECL_VIRT(OGRGeometryCollection) OGRGEOMETRYCOLLECTION_DECL_NONVIRT(OGRGeometryCollection) OGRGEOMETRYCOLLECTION_DECL_ACCESSOR(OGRGeometryCollection) #ifdef __cplusplus } #endif