#ifdef __cplusplus extern "C" { #endif #pragma once #include "hgdalType.h" #include "HGDALOGRCurvePolygon.h" #include "HGDALOGRSurface.h" #include "HGDALOGRGeometry.h" #include "STDDeletable.h" #define OGRPOLYGON_DECL_VIRT(Type) \ #define OGRPOLYGON_DECL_NONVIRT(Type) \ OGRLinearRing_p Type##_oGRPolygon_getExteriorRing ( Type##_p p ); #define OGRPOLYGON_DECL_ACCESSOR(Type) \ #define OGRPOLYGON_DEF_VIRT(Type) \ #define OGRPOLYGON_DEF_NONVIRT(Type) \ OGRLinearRing_p Type##_oGRPolygon_getExteriorRing ( Type##_p p ) {\ return from_nonconst_to_nonconst((OGRLinearRing*)((TYPECASTMETHOD(Type, oGRPolygon_getExteriorRing, OGRPolygon))(p))->getExteriorRing());\ } #define OGRPOLYGON_DEF_ACCESSOR(Type) \ OGRCURVEPOLYGON_DECL_VIRT(OGRPolygon) OGRSURFACE_DECL_VIRT(OGRPolygon) OGRGEOMETRY_DECL_VIRT(OGRPolygon) DELETABLE_DECL_VIRT(OGRPolygon) OGRPOLYGON_DECL_VIRT(OGRPolygon) OGRPOLYGON_DECL_NONVIRT(OGRPolygon) OGRPOLYGON_DECL_ACCESSOR(OGRPolygon) #ifdef __cplusplus } #endif