AceTime  1.2
Date and time classes for Arduino that support timezones from the TZ Database, and a system clock that can synchronize from an NTP server or an RTC chip.
Public Member Functions | List of all members
ace_time::ZoneProcessorCacheImpl< SIZE, TYPE, ZS, ZI, ZIB > Class Template Reference

A cache of ZoneProcessors that provides a ZoneProcessor to the TimeZone upon request. More...

#include <ZoneProcessorCache.h>

Public Member Functions

uint8_t getType () override
 
ZoneProcessorgetZoneProcessor (const void *zoneInfo) override
 Get the ZoneProcessor from the zoneInfo. More...
 

Detailed Description

template<uint8_t SIZE, uint8_t TYPE, typename ZS, typename ZI, typename ZIB>
class ace_time::ZoneProcessorCacheImpl< SIZE, TYPE, ZS, ZI, ZIB >

A cache of ZoneProcessors that provides a ZoneProcessor to the TimeZone upon request.

Template Parameters
SIZEnumber of zone processors, should be approximate the number zones concurrently used in the app. It is expected that this will be small. It can be 1 if the app never changes the TimeZone. It should be 2 if the user is able to select different timezones from a menu.
ZStype of ZoneProcessor (BasicZoneProcessor or ExtendedZoneProcessor)
ZItype of ZoneInfo (basic::ZoneInfo or extended::ZoneInfo)
ZIBtype of ZoneInfoBroker (basic::ZoneInfoBroker or extended::ZoneInfoBroker)

Definition at line 36 of file BasicZoneProcessor.h.

Member Function Documentation

◆ getZoneProcessor()

template<uint8_t SIZE, uint8_t TYPE, typename ZS , typename ZI , typename ZIB >
ZoneProcessor* ace_time::ZoneProcessorCacheImpl< SIZE, TYPE, ZS, ZI, ZIB >::getZoneProcessor ( const void *  zoneInfo)
inlineoverride

Get the ZoneProcessor from the zoneInfo.

Will never return nullptr.

Definition at line 64 of file ZoneProcessorCache.h.


The documentation for this class was generated from the following files: