Country Generator 3.3.2
Procedural country generation for C++23
Loading...
Searching...
No Matches
dasmig::country_request Struct Reference

Per-call country selection options. More...

#include <countrygen.hpp>

Public Attributes

std::optional< std::string > region {std::nullopt}
 UN geoscheme region; unset selects from all loaded countries. An empty or unknown region throws std::invalid_argument.
 
bool weighted {true}
 Population-weighted selection (default); false selects uniformly.
 

Detailed Description

Per-call country selection options.

Definition at line 361 of file countrygen.hpp.

Member Data Documentation

◆ region

std::optional<std::string> dasmig::country_request::region {std::nullopt}

UN geoscheme region; unset selects from all loaded countries. An empty or unknown region throws std::invalid_argument.

Definition at line 365 of file countrygen.hpp.

◆ weighted

bool dasmig::country_request::weighted {true}

Population-weighted selection (default); false selects uniformly.

Definition at line 368 of file countrygen.hpp.


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