AceTime  1.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 | Static Public Attributes | List of all members
ace_time::ZoneProcessorCache Class Referenceabstract

Common interface to BasicZoneProcessorCache and ExtendedZoneProcessorCache. More...

#include <ZoneProcessorCache.h>

Public Member Functions

virtual uint8_t getType ()=0
 Return the type of this cache.
 
virtual ZoneProcessorgetZoneProcessor (const void *zoneInfo)=0
 Get ZoneProcessor from either a basic::ZoneInfo or an extended::ZoneInfo. More...
 

Static Public Attributes

static const uint8_t kTypeBasicManaged = ZoneProcessor::kTypeBasic + 2
 
static const uint8_t kTypeExtendedManaged
 

Detailed Description

Common interface to BasicZoneProcessorCache and ExtendedZoneProcessorCache.

This allows TimeZone to hold only a single implementation of ZoneProcessorCache, without having to load the code for both implementations.

Definition at line 24 of file ZoneProcessorCache.h.

Member Function Documentation

◆ getZoneProcessor()

virtual ZoneProcessor* ace_time::ZoneProcessorCache::getZoneProcessor ( const void *  zoneInfo)
pure virtual

Get ZoneProcessor from either a basic::ZoneInfo or an extended::ZoneInfo.

Unfortunately, this is not type-safe, but that's the only way we can avoid compile-time dependencies to both implementation classes.

Member Data Documentation

◆ kTypeExtendedManaged

const uint8_t ace_time::ZoneProcessorCache::kTypeExtendedManaged
static
Initial value:

Definition at line 27 of file ZoneProcessorCache.h.


The documentation for this class was generated from the following file:
ace_time::ZoneProcessor::kTypeExtended
static const uint8_t kTypeExtended
Indicate ExtendedZoneProcessor.
Definition: ZoneProcessor.h:57