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