|
Occupation Generator 3.0.1
Employment status and occupation by country, age, sex and education for C++23
|
Occupation Generator library — employment status, education and occupation by country, age and sex for C++23. More...
#include "core.hpp"#include <algorithm>#include <array>#include <cstddef>#include <cstdint>#include <filesystem>#include <format>#include <map>#include <optional>#include <ostream>#include <span>#include <stdexcept>#include <string>#include <string_view>#include <system_error>#include <tuple>#include <unordered_map>#include <utility>#include <vector>Go to the source code of this file.
Classes | |
| struct | dasmig::job_info |
| A job, as drawn. More... | |
| struct | dasmig::occupation_request |
| Per-call generation choices. Every field may be omitted. More... | |
| class | dasmig::occupation |
| Return type for occupation generation. More... | |
| class | dasmig::ocg |
| Occupation Generator: draws a person's employment status, education and job. More... | |
Enumerations | |
| enum class | dasmig::employment_status : std::uint8_t { employed , unemployed , student , retired , inactive } |
| What a person does with their working-age days. More... | |
| enum class | dasmig::education_level : std::uint8_t { less_than_basic , basic , intermediate , advanced } |
| Highest education completed, in the ILO's four aggregate levels. More... | |
Functions | |
| constexpr std::string_view | dasmig::to_string (employment_status s) noexcept |
| The name of an employment status, as used in the data and in JSON. | |
| constexpr std::string_view | dasmig::to_string (education_level e) noexcept |
| The name of an education level, as used in the data and in JSON. | |
Occupation Generator library — employment status, education and occupation by country, age and sex for C++23.
Definition in file occupationgen.hpp.
|
strong |
Highest education completed, in the ILO's four aggregate levels.
Definition at line 52 of file occupationgen.hpp.
|
strong |
What a person does with their working-age days.
Definition at line 42 of file occupationgen.hpp.
|
constexprnoexcept |
The name of an education level, as used in the data and in JSON.
| e | The level. |
Definition at line 79 of file occupationgen.hpp.
|
constexprnoexcept |
The name of an employment status, as used in the data and in JSON.
| s | The status. |
Definition at line 63 of file occupationgen.hpp.