Text.PCLT.SDL
Description
Simply saying: with SDL we regulate, how much some Reader (of our generated messages) wishes (is allowed) to see.
"SDL" is an abbreviation for "Show Detalization Level".
Perhaps it better sound "Representation Detalization Level", but it
was too late to change term - too many variables has names sdl
,
and author is too lazy to change them on rdl
s.
However, "Representation Detalization Level" version is sometimes used -
it is to be understood as synonym to SDL.
Term "Detailizable content (message)" in this package has a following
meaning: some content, representing which it is possible to regulate,
in how much of details it is to be represented.
- data ShowDetalizationLevel
- = Zero_SDL
- | One_SDL
- | SDL Int
- | InfinitelyBig_SDL
- data SDLModus
- marginOfSDLModus :: SDLModus -> ShowDetalizationLevel
- strict_str2sdl :: String -> Maybe ShowDetalizationLevel
Documentation
data ShowDetalizationLevel Source
Zero_SDL < One_SDL < SDL Int < InfinitelyBig_SDL
Constructors
Zero_SDL | |
One_SDL | |
SDL Int | |
InfinitelyBig_SDL |
SDL may be seen in two different moduses:
- as a requirement for representation by a localizable template: "SDL of repesentation reciever must be equal or bigger then that, orelse message from this template won't be generated"
- as an allocateion to a repesentation reciever.
Constructors
Allocated_SDLM | |
Required_SDLM |
marginOfSDLModus :: SDLModus -> ShowDetalizationLevelSource
In case, if SDL (of reciever of template requirement) is unclear, and if it is allowed by config - then SDL gets assigned according to margin:
- if modus is allocation to reciever - the we give him
Zero_SDL
(minimum) - if modus is requirement by template - the we give
him
InfinitelyBig_SDL
(maximum)