Safe Haskell | None |
---|---|
Language | Haskell98 |
The mapping between types that can be stored in a NetCDF file and
the FFI functions needed to read and write those values is
maintained by the NcStorable
type class.
Synopsis
- class Storable a => NcStorable a where
- ncType :: a -> NcType
- ffi_put_var1 :: CInt -> CInt -> Ptr CULong -> Ptr a -> IO CInt
- ffi_get_var1 :: CInt -> CInt -> Ptr CULong -> Ptr a -> IO CInt
- ffi_put_var :: CInt -> CInt -> Ptr a -> IO CInt
- ffi_get_var :: CInt -> CInt -> Ptr a -> IO CInt
- ffi_put_vara :: CInt -> CInt -> Ptr CULong -> Ptr CULong -> Ptr a -> IO CInt
- ffi_get_vara :: CInt -> CInt -> Ptr CULong -> Ptr CULong -> Ptr a -> IO CInt
- ffi_put_vars :: CInt -> CInt -> Ptr CULong -> Ptr CULong -> Ptr CULong -> Ptr a -> IO CInt
- ffi_get_vars :: CInt -> CInt -> Ptr CULong -> Ptr CULong -> Ptr CULong -> Ptr a -> IO CInt
Documentation
class Storable a => NcStorable a where Source #
Class to collect the NetCDF FFI functions needed to read and write values in a NetCDF file for a given type.
ncType :: a -> NcType Source #
ffi_put_var1 :: CInt -> CInt -> Ptr CULong -> Ptr a -> IO CInt Source #
ffi_get_var1 :: CInt -> CInt -> Ptr CULong -> Ptr a -> IO CInt Source #
ffi_put_var :: CInt -> CInt -> Ptr a -> IO CInt Source #
ffi_get_var :: CInt -> CInt -> Ptr a -> IO CInt Source #
ffi_put_vara :: CInt -> CInt -> Ptr CULong -> Ptr CULong -> Ptr a -> IO CInt Source #
ffi_get_vara :: CInt -> CInt -> Ptr CULong -> Ptr CULong -> Ptr a -> IO CInt Source #
ffi_put_vars :: CInt -> CInt -> Ptr CULong -> Ptr CULong -> Ptr CULong -> Ptr a -> IO CInt Source #
ffi_get_vars :: CInt -> CInt -> Ptr CULong -> Ptr CULong -> Ptr CULong -> Ptr a -> IO CInt Source #