Interest Generator 3.0.1
Religion, hobbies and favourite media by country, age and sex for C++23
Loading...
Searching...
No Matches
dasmig::interest_request Struct Reference

Per-call generation choices. Every field has a default. More...

#include <interestgen.hpp>

Public Attributes

std::string_view country {}
 ISO 3166-1 alpha-2 code; empty draws a country (uniform over those loaded).
 
std::optional< std::uint8_t > age {}
 Age in completed years; unknown applies no age factor or age limit.
 
std::optional< sex > person_sex {}
 Sex; unknown applies no sex factor.
 
std::size_t hobbies {3}
 How many hobbies to draw.
 
std::size_t media {2}
 How many genres to draw in each of film, games, books and music.
 

Detailed Description

Per-call generation choices. Every field has a default.

Pass an empty request for a random country, unknown age and sex, three hobbies and two genres per medium. Requests do not change the generator's configuration.

Definition at line 53 of file interestgen.hpp.

Member Data Documentation

◆ age

std::optional<std::uint8_t> dasmig::interest_request::age {}

Age in completed years; unknown applies no age factor or age limit.

Definition at line 56 of file interestgen.hpp.

◆ country

std::string_view dasmig::interest_request::country {}

ISO 3166-1 alpha-2 code; empty draws a country (uniform over those loaded).

Definition at line 55 of file interestgen.hpp.

◆ hobbies

std::size_t dasmig::interest_request::hobbies {3}

How many hobbies to draw.

Definition at line 58 of file interestgen.hpp.

◆ media

std::size_t dasmig::interest_request::media {2}

How many genres to draw in each of film, games, books and music.

Definition at line 59 of file interestgen.hpp.

◆ person_sex

std::optional<sex> dasmig::interest_request::person_sex {}

Sex; unknown applies no sex factor.

Definition at line 57 of file interestgen.hpp.


The documentation for this struct was generated from the following file: