Hegel 0.18.3
Property-based testing for C++
Loading...
Searching...
No Matches
hegel::generators::temporal::ZonesParams Struct Reference

Parameters for zones() generator. More...

#include <temporal.h>

Public Attributes

std::optional< std::vector< std::string > > names
bool allow_links = true
 Whether the default set includes link names such as Asia/Calcutta.
bool allow_legacy = false
bool allow_unknown = false
bool allow_opaque = false
std::optional< ZoneSource > source

Detailed Description

Parameters for zones() generator.

Member Data Documentation

◆ allow_legacy

bool hegel::generators::temporal::ZonesParams::allow_legacy = false

Whether the default set includes legacy names such as EST5EDT and US/Eastern.

◆ allow_opaque

bool hegel::generators::temporal::ZonesParams::allow_opaque = false

Whether a name in an explicit names list that the source lacks is accepted as an opaque zone: one only the caller's database knows, drawn like any other name but evaluated like Etc/Unknown, with its civil time read as UTC and an unknown offset.

◆ allow_unknown

bool hegel::generators::temporal::ZonesParams::allow_unknown = false

Whether Etc/Unknown, the zone with a known instant and an unknown offset, is drawn.

◆ names

std::optional<std::vector<std::string> > hegel::generators::temporal::ZonesParams::names

Draw only these names, each exactly as the source spells it or Etc/Unknown. The allow_links and allow_legacy flags do not apply to an explicit list. Default: every name of the source.

◆ source

std::optional<ZoneSource> hegel::generators::temporal::ZonesParams::source

The zone data the names come from and zoned datetimes in these zones resolve against. Default: default_zone_source() as it is when the generator is built.


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