AceTime  1.3
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.
ZoneInfo.h
1 /*
2  * MIT License
3  * Copyright (c) 2018 Brian T. Park
4  */
5 
6 #ifndef ACE_TIME_ZONE_INFO_H
7 #define ACE_TIME_ZONE_INFO_H
8 
9 #include <stdint.h>
10 #include "ZoneContext.h"
11 #include "ZonePolicy.h"
12 
13 namespace ace_time {
14 
15 // The data structures in ZoneInfo.inc are #included into the basic and
16 // extended namespaces, instead of subclassing them into the namespaces,
17 // because C++11 does not allow subclassed structs to be initialized using the
18 // curly-brace initializers. I believe C++14 removes this restriction but
19 // Arduino is currently limited to C++11.
20 
21 // Data structures for BasicZoneProcessor
22 namespace basic {
23 #include "ZoneInfo.inc"
24 }
25 
26 // Data structures for ExtendedZoneProcessor
27 namespace extended {
28 #include "ZoneInfo.inc"
29 }
30 
31 }
32 
33 #endif