6 #ifndef ACE_TIME_EXTENDED_ZONE_H
7 #define ACE_TIME_EXTENDED_ZONE_H
10 #include "internal/ZoneInfo.h"
30 mZoneInfoBroker(zoneInfo) {}
38 mZoneInfoBroker(zoneInfo) {}
45 bool isNull()
const {
return mZoneInfoBroker.isNull(); }
59 return mZoneInfoBroker.zoneId();
64 uint8_t numEras = mZoneInfoBroker.numEras();
66 return zeb.offsetMinutes();
70 ace_common::KString
kname()
const {
71 const auto* name =
isNull() ? nullptr : mZoneInfoBroker.name();
73 return ace_common::KString(
The classes provide a thin layer of indirection for accessing the zoneinfo files stored in the zonedb...
A thin wrapper around an extended::ZoneInfo data structure to provide a stable API access to some use...
bool isNull() const
Return true if zoneInfo is null.
void printNameTo(Print &printer) const
Print the full zone name to printer.
ExtendedZone(const extended::ZoneInfoBroker &zoneInfo)
Constructor from an extended::ZoneInfoBroker, used by ExtendedZoneProcessor.
uint32_t zoneId() const
Return the zoneId of the current zoneInfo.
ace_common::KString kname() const
Return the name as a KString.
void printShortNameTo(Print &printer) const
Print the short pretty zone name to the printer.
ExtendedZone(const extended::ZoneInfo *zoneInfo)
Constructor from a raw extended::ZoneInfo* pointer, intended for manual inspection of a ZoneInfo reco...
int16_t stdOffsetMinutes() const
Return the STDOFF of the last ZoneEra.
Data broker for accessing ZoneEra.
Data broker for accessing ZoneInfo.
Metadata about the zone database.
uint8_t numFragments
Number of fragments.
const char *const * fragments
Zone Name fragment list.