#ifdef __cplusplus extern "C" { #endif #pragma once #include "hgdalType.h" #include "STDDeletable.h" #include "stdcxxType.h" #define OGRPOINTITERATOR_DECL_VIRT(Type) \ bool Type##_getNextPoint ( Type##_p p, OGRPoint_p pt ); #define OGRPOINTITERATOR_DECL_NONVIRT(Type) \ #define OGRPOINTITERATOR_DECL_ACCESSOR(Type) \ #define OGRPOINTITERATOR_DEF_VIRT(Type) \ bool Type##_getNextPoint ( Type##_p p, OGRPoint_p pt ) {\ return ((TYPECASTMETHOD(Type, getNextPoint, OGRPointIterator))(p))->getNextPoint(from_nonconst_to_nonconst(pt));\ } #define OGRPOINTITERATOR_DEF_NONVIRT(Type) \ #define OGRPOINTITERATOR_DEF_ACCESSOR(Type) \ DELETABLE_DECL_VIRT(OGRPointIterator) OGRPOINTITERATOR_DECL_VIRT(OGRPointIterator) OGRPOINTITERATOR_DECL_NONVIRT(OGRPointIterator) OGRPOINTITERATOR_DECL_ACCESSOR(OGRPointIterator) #ifdef __cplusplus } #endif