terrahs-0.5: Simple library for GIS Programs in Haskell.Source codeContentsIndex
TerraHS.Misc
Contents
The Databases Module class
The Object Module class
Synopsis
class Connection c where
open :: c -> IO (Ptr c)
close :: Ptr c -> IO ()
class Connection c => Databases a c where
retrieve :: Ptr c -> String -> IO a
store :: Ptr c -> String -> a -> IO Bool
class Pointer a where
new :: a -> IO (Ptr a)
fromPointer :: Ptr a -> IO a
delete :: Ptr a -> IO ()
class Convert a b where
to :: a -> b
from :: b -> a
class Element a b where
getElement :: Ptr a -> Int32 -> IO b
class Size a where
size :: Ptr a -> IO Int32
The Databases Module class
class Connection c whereSource
Methods
open :: c -> IO (Ptr c)Source
open a connection to a database
close :: Ptr c -> IO ()Source
close a opened connection
show/hide Instances
class Connection c => Databases a c whereSource
Methods
retrieve :: Ptr c -> String -> IO aSource
load a object list from database
store :: Ptr c -> String -> a -> IO BoolSource
save a object list a to database Foreign.Ptr.Ptr c
show/hide Instances
The Object Module class
class Pointer a whereSource
The class Pointer is a class for handling pointers to objects, ex: TePoint and TePointPtr
Methods
new :: a -> IO (Ptr a)Source
create a pointer from haskell object
fromPointer :: Ptr a -> IO aSource
create a haskell object from a pointer
delete :: Ptr a -> IO ()Source
delete a pointer from memory
show/hide Instances
class Convert a b whereSource
The class Convert permit the converts from diferents objects
Methods
to :: a -> bSource
convert from a to b
from :: b -> aSource
convert from b to a
class Element a b whereSource
Methods
getElement :: Ptr a -> Int32 -> IO bSource
show/hide Instances
class Size a whereSource
Methods
size :: Ptr a -> IO Int32Source
show/hide Instances
Produced by Haddock version 2.4.2