AceTime
1.7.1
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.
|
A cache of ZoneProcessors that provides a ZoneProcessor to the TimeZone upon request by the ZoneManager. More...
#include <ZoneProcessorCache.h>
Public Member Functions | |
ZP * | getZoneProcessor (uintptr_t zoneKey) |
Get ZoneProcessor from either a ZoneKey, either a basic::ZoneInfo or an extended::ZoneInfo. More... | |
ZP * | getZoneProcessor (uint8_t i) |
Return the ZoneProcessor at position i. More... | |
A cache of ZoneProcessors that provides a ZoneProcessor to the TimeZone upon request by the ZoneManager.
SIZE | number 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. |
ZP | type of ZoneProcessor (BasicZoneProcessor or ExtendedZoneProcessor) |
Definition at line 29 of file ZoneProcessorCache.h.
|
inline |
Return the ZoneProcessor at position i.
Used for initialization.
Definition at line 50 of file ZoneProcessorCache.h.
|
inline |
Get ZoneProcessor from either a ZoneKey, either a basic::ZoneInfo or an extended::ZoneInfo.
This will never return nullptr.
Definition at line 37 of file ZoneProcessorCache.h.