AceTime  1.8.0
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::BasicZoneManager< SIZE > Class Template Reference

An implementation of the ZoneManager which uses a registry of basic::ZoneInfo records. More...

#include <ZoneManager.h>

Inheritance diagram for ace_time::BasicZoneManager< SIZE >:
Inheritance graph
[legend]
Collaboration diagram for ace_time::BasicZoneManager< SIZE >:
Collaboration graph
[legend]

Public Member Functions

 BasicZoneManager (uint16_t zoneRegistrySize, const basic::ZoneInfo *const *zoneRegistry)
 
BasicZoneProcessorgetZoneProcessor (const char *name)
 Return the BasicZoneProcessor for given zone name. More...
 
- Public Member Functions inherited from ace_time::ZoneManagerImpl< basic::ZoneInfo, basic::ZoneRegistrar, BasicZoneProcessor, BasicZoneProcessorCache< SIZE > >
TimeZone createForZoneName (const char *name) override
 Create a TimeZone for the given zone name (e.g. More...
 
TimeZone createForZoneId (uint32_t id) override
 Create a TimeZone for the given 32-bit zoneId.
 
TimeZone createForZoneIndex (uint16_t index) override
 Create a TimeZone for the given index in the ZoneInfo registry that was used to create this ZoneManager.
 
TimeZone createForTimeZoneData (const TimeZoneData &d) override
 Create a TimeZone from the TimeZoneData created by TimeZone::toTimeZoneData().
 
uint16_t indexForZoneName (const char *name) const override
 Find the registry index for the given time zone name. More...
 
uint16_t indexForZoneId (uint32_t id) const override
 Find the registry index for the given time zone id. More...
 
uint16_t zoneRegistrySize () const override
 Return the number of elements in the Zone and Fat Link registry. More...
 
TimeZone createForZoneInfo (const basic::ZoneInfo *zoneInfo)
 Create a TimeZone from an explicit ZoneInfo reference. More...
 
- Public Member Functions inherited from ace_time::ZoneManager
virtual uint16_t zoneRegistrySize () const =0
 Return the number of elements in the Zone and Fat Link registry. More...
 

Additional Inherited Members

- Static Public Attributes inherited from ace_time::ZoneManager
static const uint16_t kInvalidIndex = 0xffff
 Registry index which is not valid. More...
 
- Protected Member Functions inherited from ace_time::ZoneManagerImpl< basic::ZoneInfo, basic::ZoneRegistrar, BasicZoneProcessor, BasicZoneProcessorCache< SIZE > >
 ZoneManagerImpl (uint16_t zoneRegistrySize, const basic::ZoneInfo *const *zoneRegistry)
 Constructor. More...
 
 ZoneManagerImpl (const ZoneManagerImpl &)=delete
 
ZoneManagerImploperator= (const ZoneManagerImpl &)=delete
 
- Protected Attributes inherited from ace_time::ZoneManagerImpl< basic::ZoneInfo, basic::ZoneRegistrar, BasicZoneProcessor, BasicZoneProcessorCache< SIZE > >
const basic::ZoneRegistrar mZoneRegistrar
 
BasicZoneProcessorCache< SIZE > mZoneProcessorCache
 

Detailed Description

template<uint16_t SIZE>
class ace_time::BasicZoneManager< SIZE >

An implementation of the ZoneManager which uses a registry of basic::ZoneInfo records.

Template Parameters
SIZEsize of the BasicZoneProcessorCache

Definition at line 233 of file ZoneManager.h.

Member Function Documentation

◆ getZoneProcessor()

template<uint16_t SIZE>
BasicZoneProcessor* ace_time::BasicZoneManager< SIZE >::getZoneProcessor ( const char *  name)
inline

Return the BasicZoneProcessor for given zone name.

Mostly for debugging purposes.

Definition at line 260 of file ZoneManager.h.


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