|
Weather Generator 1.1.0
Daily weather for any place and date from climate normals for C++23
|
Weather Generator library — daily weather for any place and date from climate normals for C++23. More...
#include "core.hpp"#include <algorithm>#include <array>#include <chrono>#include <cmath>#include <cstddef>#include <cstdint>#include <filesystem>#include <format>#include <limits>#include <numbers>#include <optional>#include <ostream>#include <span>#include <stdexcept>#include <string>#include <string_view>#include <system_error>#include <utility>#include <vector>Go to the source code of this file.
Classes | |
| struct | dasmig::weather_request |
| What a weather call asks for. More... | |
| struct | dasmig::weather_hour |
| One hour of a day's weather (weather::hours, when the request asks for them). More... | |
| struct | dasmig::climate_normals |
| The monthly climate normals of a place (climate_at()). More... | |
| class | dasmig::weather |
| One day's weather at one place. More... | |
| class | dasmig::wtg |
| Weather Generator: daily weather drawn around monthly climate normals. More... | |
Enumerations | |
| enum class | dasmig::precipitation_type : std::uint8_t { none , rain , sleet , snow } |
| The form precipitation falls in. More... | |
| enum class | dasmig::weather_condition : std::uint8_t { clear , partly_cloudy , mostly_cloudy , overcast , light_rain , rain , heavy_rain , thunderstorm , sleet , light_snow , snow , heavy_snow } |
| The day's weather in one word or two. More... | |
| enum class | dasmig::unit_system : std::uint8_t { metric , imperial } |
| The units of a result's weather values. More... | |
Functions | |
| constexpr std::string_view | dasmig::to_string (precipitation_type t) noexcept |
The key of a precipitation type (none, rain, sleet, snow). | |
| constexpr std::string_view | dasmig::to_string (weather_condition c) noexcept |
The key of a condition (clear, partly_cloudy, ..., heavy_snow). | |
| constexpr std::string_view | dasmig::label (weather_condition c) noexcept |
The English label of a condition (clear, partly cloudy, ...). | |
| constexpr std::string_view | dasmig::to_string (unit_system u) noexcept |
The key of a unit system (metric, imperial). | |
Weather Generator library — daily weather for any place and date from climate normals for C++23.
Definition in file weathergen.hpp.
|
strong |
The form precipitation falls in.
| Enumerator | |
|---|---|
| none | A dry day. |
| rain | Rain. |
| sleet | Rain and snow mixed. |
| snow | Snow. |
Definition at line 45 of file weathergen.hpp.
|
strong |
The units of a result's weather values.
| Enumerator | |
|---|---|
| metric | °C, mm of precipitation, cm of snow, m/s. |
| imperial | °F, inches of precipitation and of snow, mph. |
Definition at line 133 of file weathergen.hpp.
|
strong |
The day's weather in one word or two.
Definition at line 54 of file weathergen.hpp.
|
constexprnoexcept |
The English label of a condition (clear, partly cloudy, ...).
| c | The condition. |
Definition at line 112 of file weathergen.hpp.
|
constexprnoexcept |
The key of a precipitation type (none, rain, sleet, snow).
| t | The type. |
Definition at line 73 of file weathergen.hpp.
|
constexprnoexcept |
The key of a unit system (metric, imperial).
| u | The unit system. |
Definition at line 142 of file weathergen.hpp.
|
constexprnoexcept |
The key of a condition (clear, partly_cloudy, ..., heavy_snow).
| c | The condition. |
Definition at line 89 of file weathergen.hpp.