{-# LANGUAGE EmptyDataDecls, FlexibleContexts, FlexibleInstances,
  ForeignFunctionInterface, IncoherentInstances,
  MultiParamTypeClasses, OverlappingInstances, TemplateHaskell,
  TypeFamilies, TypeSynonymInstances #-}
module GDAL.OGRFeature.Implementation where
import Data.Monoid
import Data.Word
import Data.Int
import Foreign.C
import Foreign.Ptr
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
import System.IO.Unsafe
import FFICXX.Runtime.Cast
import FFICXX.Runtime.CodeGen.Cxx
import FFICXX.Runtime.TH
import GDAL.OGRFeature.RawType
import GDAL.OGRFeature.FFI
import GDAL.OGRFeature.Interface
import GDAL.OGRFeature.Cast
import GDAL.OGRFeature.RawType
import GDAL.OGRFeature.Cast
import GDAL.OGRFeature.Interface
import GDAL.OGRGeometry.RawType
import GDAL.OGRGeometry.Cast
import GDAL.OGRGeometry.Interface
import STD.Deletable.RawType
import STD.Deletable.Cast
import STD.Deletable.Interface

instance () => IOGRFeature (OGRFeature) where

instance () => IDeletable (OGRFeature) where
        delete :: OGRFeature -> IO ()
delete = (Ptr RawOGRFeature -> IO ()) -> OGRFeature -> IO ()
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawOGRFeature -> IO ()
c_ogrfeature_delete

oGRFeature_GetFID :: () => OGRFeature -> IO CInt
oGRFeature_GetFID :: OGRFeature -> IO CInt
oGRFeature_GetFID = (Ptr RawOGRFeature -> IO CInt) -> OGRFeature -> IO CInt
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawOGRFeature -> IO CInt
c_ogrfeature_ogrfeature_getfid

oGRFeature_GetFieldCount :: () => OGRFeature -> IO CInt
oGRFeature_GetFieldCount :: OGRFeature -> IO CInt
oGRFeature_GetFieldCount
  = (Ptr RawOGRFeature -> IO CInt) -> OGRFeature -> IO CInt
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawOGRFeature -> IO CInt
c_ogrfeature_ogrfeature_getfieldcount

oGRFeature_GetFieldAsInteger :: () => OGRFeature -> CInt -> IO CInt
oGRFeature_GetFieldAsInteger :: OGRFeature -> CInt -> IO CInt
oGRFeature_GetFieldAsInteger
  = (Ptr RawOGRFeature -> CInt -> IO CInt)
-> OGRFeature -> CInt -> IO CInt
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRFeature -> CInt -> IO CInt
c_ogrfeature_ogrfeature_getfieldasinteger

oGRFeature_GetFieldAsInteger64 ::
                                 () => OGRFeature -> CInt -> IO CInt
oGRFeature_GetFieldAsInteger64 :: OGRFeature -> CInt -> IO CInt
oGRFeature_GetFieldAsInteger64
  = (Ptr RawOGRFeature -> CInt -> IO CInt)
-> OGRFeature -> CInt -> IO CInt
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRFeature -> CInt -> IO CInt
c_ogrfeature_ogrfeature_getfieldasinteger64

oGRFeature_GetFieldAsString ::
                              () => OGRFeature -> CInt -> IO CString
oGRFeature_GetFieldAsString :: OGRFeature -> CInt -> IO CString
oGRFeature_GetFieldAsString
  = (Ptr RawOGRFeature -> CInt -> IO CString)
-> OGRFeature -> CInt -> IO CString
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawOGRFeature -> CInt -> IO CString
c_ogrfeature_ogrfeature_getfieldasstring

oGRFeature_GetGeometryRef :: () => OGRFeature -> IO OGRGeometry
oGRFeature_GetGeometryRef :: OGRFeature -> IO OGRGeometry
oGRFeature_GetGeometryRef
  = (Ptr RawOGRFeature -> IO (Ptr RawOGRGeometry))
-> OGRFeature -> IO OGRGeometry
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawOGRFeature -> IO (Ptr RawOGRGeometry)
c_ogrfeature_ogrfeature_getgeometryref