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::BasicLinkManager Class Reference

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

#include <LinkManager.h>

Inheritance diagram for ace_time::BasicLinkManager:
Inheritance graph
[legend]
Collaboration diagram for ace_time::BasicLinkManager:
Collaboration graph
[legend]

Public Member Functions

 BasicLinkManager (uint16_t linkRegistrySize, const basic::LinkEntry *linkRegistry)
 Constructor. More...
 
uint32_t zoneIdForLinkId (uint32_t linkId) const override
 Find the registry index for the given time link id. More...
 
uint16_t linkRegistrySize () const override
 Return the number of elements in the (thin) Link registry.
 

Additional Inherited Members

- Static Public Attributes inherited from ace_time::LinkManager
static const uint32_t kInvalidZoneId = 0
 ZoneId which is not valid to indicates an error or not found. More...
 

Detailed Description

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

Definition at line 43 of file LinkManager.h.

Constructor & Destructor Documentation

◆ BasicLinkManager()

ace_time::BasicLinkManager::BasicLinkManager ( uint16_t  linkRegistrySize,
const basic::LinkEntry *  linkRegistry 
)
inline

Constructor.

Parameters
linkRegistrySizenumber of LinkEntry entries in linkRegistry
linkRegistryan array of LinkEntry entries

Definition at line 50 of file LinkManager.h.

Member Function Documentation

◆ zoneIdForLinkId()

uint32_t ace_time::BasicLinkManager::zoneIdForLinkId ( uint32_t  linkId) const
inlineoverridevirtual

Find the registry index for the given time link id.

Returns kInvalidIndex if not found.

Implements ace_time::LinkManager.

Definition at line 57 of file LinkManager.h.


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