terrahs-0.7: A library for GIS Programs in Haskell.Source codeContentsIndex
TerraHS.Algebras.Base.Attribute
Contents
The Attribute type
The Attributes class
The Values class
Operations on Value
The Values class
The Value type
Description
Module for handling the Attributes
Synopsis
data Attribute = Attr Property
class Values v => Attributes a v | a -> v where
getName :: a -> String
getValue :: a -> v
class Values a where
toString :: a -> String
class Values a where
toString :: a -> String
data Value
= StValue String
| DbValue Double
| InValue Int
| Undefined
type Property = (String, Value)
getValuebyName :: [Attribute] -> String -> Value
The Attribute type
data Attribute Source
Constructors
Attr Property
show/hide Instances
The Attributes class
class Values v => Attributes a v | a -> v whereSource
Methods
getName :: a -> StringSource
getValue :: a -> vSource
show/hide Instances
The Values class
class Values a whereSource
Methods
toString :: a -> StringSource
show/hide Instances
Operations on Value
The Values class
class Values a whereSource
Methods
toString :: a -> StringSource
show/hide Instances
The Value type
data Value Source
Constructors
StValue String
DbValue Double
InValue Int
Undefined
show/hide Instances
type Property = (String, Value)Source
getValuebyName :: [Attribute] -> String -> ValueSource
Produced by Haddock version 2.4.2