Module areas_impl

Source
Expand description

Contains the implementations related to AreaDto.

Constants§

INVALID_AREA_TYPE 🔒
Error message when invalid area types are supplied.

Functions§

from_new_area_dto_to_hydrology
Maps NewAreaDtos to Hydrologys. Precondition is that all dtos have area_type == AreaType::Hydrology(_).
from_new_area_dto_to_shading
Maps NewAreaDtos to Shadings. Precondition is that all dtos have area_type == AreaType::Shade(_).
from_new_area_dto_to_soil_texture
Maps NewAreaDtos to SoilTextures. Precondition is that all dtos have area_type == AreaType::SoilTexture(_).
from_update_area_dto_to_update_hydrology
Maps UpdateAreaDto to UpdateHydrologys. Precondition is that the dto has area_kind == AreaKind::Hydrology.
from_update_area_dto_to_update_shading
Maps UpdateAreaDto to UpdateShadings. Precondition is that the dto has area_kind == AreaKind::Shade.
from_update_area_dto_to_update_soil_texture
Maps UpdateAreaDto to UpdateSoilTextures. Precondition is that the dto has area_kind == AreaKind::SoilTexture.