Logo GenPRES

Dto Module

Maps a ValueUnit to a Dto with the values, the unit and the group as text, and back. The mapping to a Dto gives None for a language other than English or Dutch. The mapping back reads the unit from the Json text when the Dto has one, and otherwise parses the unit with its group: a blank unit gives None, an unknown unit with no group or the group General becomes a General unit, and an unknown unit with another group raises a FormatException.

Types

Type Description

Dto

Functions and values

Function or value Description

dto ()

Full Usage: dto ()

Parameters:
    () : unit

Returns: Dto
() : unit
Returns: Dto

dutch

Full Usage: dutch

Returns: string
Returns: string

english

Full Usage: english

Returns: string
Returns: string

fromDto dto

Full Usage: fromDto dto

Parameters:
Returns: ValueUnit option
dto : Dto
Returns: ValueUnit option

toDto short lang vu

Full Usage: toDto short lang vu

Parameters:
Returns: Dto option
short : bool
lang : string
vu : ValueUnit
Returns: Dto option

toDtoDutchLong vu

Full Usage: toDtoDutchLong vu

Parameters:
Returns: Dto
vu : ValueUnit
Returns: Dto

toDtoDutchShort vu

Full Usage: toDtoDutchShort vu

Parameters:
Returns: Dto
vu : ValueUnit
Returns: Dto

toDtoEnglishLong vu

Full Usage: toDtoEnglishLong vu

Parameters:
Returns: Dto
vu : ValueUnit
Returns: Dto

toDtoEnglishShort vu

Full Usage: toDtoEnglishShort vu

Parameters:
Returns: Dto
vu : ValueUnit
Returns: Dto

toString dto

Full Usage: toString dto

Parameters:
Returns: string
dto : Dto
Returns: string

Type something to start searching.