diff --git a/docs/html/AceTime_8h_source.html b/docs/html/AceTime_8h_source.html index aa5524e6c..359c6f394 100644 --- a/docs/html/AceTime_8h_source.html +++ b/docs/html/AceTime_8h_source.html @@ -22,7 +22,7 @@
AceTime -  1.9.0 +  1.10.0
Date and time classes for Arduino that support timezones from the TZ Database.
@@ -82,59 +82,53 @@
20 // Blacklist boards using new Arduino API due to incompatibilities. This
21 // currently includes all megaAVR boards and SAMD21 boards using arduino::samd
22 // >= 1.8.10. Boards using arduino:samd <= 1.8.9 or SparkFun:samd are fine.
-
23 #if defined(ARDUINO_ARCH_MEGAAVR)
-
24 #error MegaAVR not supported, https://github.com/bxparks/AceTime/issues/44
-
25 
-
26 #elif defined(ARDUINO_ARCH_SAMD) && defined(ARDUINO_API_VERSION)
-
27 #error SAMD21 with arduino:samd >= 1.8.10 not supported, https://github.com/bxparks/AceTime/issues/45
-
28 
-
29 #elif defined(ARDUINO_API_VERSION)
-
30 #error Platforms using ArduinoCore-API not supported
-
31 #endif
-
32 
-
33 #include "ace_time/common/compat.h"
-
34 #include "ace_time/common/common.h"
-
35 #include "ace_time/common/DateStrings.h"
-
36 #include "ace_time/internal/ZoneContext.h"
-
37 #include "ace_time/internal/ZoneInfo.h"
-
38 #include "ace_time/internal/ZonePolicy.h"
-
39 #include "ace_time/internal/ZoneRegistrar.h"
-
40 #include "ace_time/internal/LinkRegistrar.h"
-
41 #include "ace_time/zonedb/zone_policies.h"
-
42 #include "ace_time/zonedb/zone_infos.h"
-
43 #include "ace_time/zonedb/zone_registry.h"
-
44 #include "ace_time/zonedbx/zone_policies.h"
-
45 #include "ace_time/zonedbx/zone_infos.h"
-
46 #include "ace_time/zonedbx/zone_registry.h"
-
47 #include "ace_time/LocalDate.h"
-
48 #include "ace_time/local_date_mutation.h"
-
49 #include "ace_time/LocalTime.h"
-
50 #include "ace_time/LocalDateTime.h"
-
51 #include "ace_time/TimeOffset.h"
-
52 #include "ace_time/time_offset_mutation.h"
-
53 #include "ace_time/OffsetDateTime.h"
-
54 #include "ace_time/ZoneProcessor.h"
-
55 #include "ace_time/BasicZoneProcessor.h"
-
56 #include "ace_time/ExtendedZoneProcessor.h"
-
57 #include "ace_time/ZoneProcessorCache.h"
-
58 #include "ace_time/ZoneManager.h"
-
59 #include "ace_time/LinkManager.h"
-
60 #include "ace_time/ZoneSorterByName.h"
-
61 #include "ace_time/ZoneSorterByOffsetAndName.h"
-
62 #include "ace_time/TimeZoneData.h"
-
63 #include "ace_time/TimeZone.h"
-
64 #include "ace_time/BasicZone.h"
-
65 #include "ace_time/ExtendedZone.h"
-
66 #include "ace_time/ZonedDateTime.h"
-
67 #include "ace_time/zoned_date_time_mutation.h"
-
68 #include "ace_time/TimePeriod.h"
-
69 #include "ace_time/time_period_mutation.h"
-
70 
-
71 // Version format: xxyyzz == "xx.yy.zz"
-
72 #define ACE_TIME_VERSION 10900
-
73 #define ACE_TIME_VERSION_STRING "1.9.0"
-
74 
-
75 #endif
+
23 #if defined(ARDUINO_API_VERSION)
+
24 #error Platforms using ArduinoCore-API not supported
+
25 #endif
+
26 
+
27 #include "ace_time/common/compat.h"
+
28 #include "ace_time/common/common.h"
+
29 #include "ace_time/common/DateStrings.h"
+
30 #include "ace_time/internal/ZoneContext.h"
+
31 #include "ace_time/internal/ZoneInfo.h"
+
32 #include "ace_time/internal/ZonePolicy.h"
+
33 #include "ace_time/internal/ZoneRegistrar.h"
+
34 #include "ace_time/internal/LinkRegistrar.h"
+
35 #include "ace_time/zonedb/zone_policies.h"
+
36 #include "ace_time/zonedb/zone_infos.h"
+
37 #include "ace_time/zonedb/zone_registry.h"
+
38 #include "ace_time/zonedbx/zone_policies.h"
+
39 #include "ace_time/zonedbx/zone_infos.h"
+
40 #include "ace_time/zonedbx/zone_registry.h"
+
41 #include "ace_time/LocalDate.h"
+
42 #include "ace_time/local_date_mutation.h"
+
43 #include "ace_time/LocalTime.h"
+
44 #include "ace_time/LocalDateTime.h"
+
45 #include "ace_time/TimeOffset.h"
+
46 #include "ace_time/time_offset_mutation.h"
+
47 #include "ace_time/OffsetDateTime.h"
+
48 #include "ace_time/ZoneProcessor.h"
+
49 #include "ace_time/BasicZoneProcessor.h"
+
50 #include "ace_time/ExtendedZoneProcessor.h"
+
51 #include "ace_time/ZoneProcessorCache.h"
+
52 #include "ace_time/ZoneManager.h"
+
53 #include "ace_time/LinkManager.h"
+
54 #include "ace_time/ZoneSorterByName.h"
+
55 #include "ace_time/ZoneSorterByOffsetAndName.h"
+
56 #include "ace_time/TimeZoneData.h"
+
57 #include "ace_time/TimeZone.h"
+
58 #include "ace_time/BasicZone.h"
+
59 #include "ace_time/ExtendedZone.h"
+
60 #include "ace_time/ZonedDateTime.h"
+
61 #include "ace_time/zoned_date_time_mutation.h"
+
62 #include "ace_time/TimePeriod.h"
+
63 #include "ace_time/time_period_mutation.h"
+
64 
+
65 // Version format: xxyyzz == "xx.yy.zz"
+
66 #define ACE_TIME_VERSION 11000
+
67 #define ACE_TIME_VERSION_STRING "1.10.0"
+
68 
+
69 #endif
time_period_mutation.h
zoned_date_time_mutation.h
diff --git a/docs/html/BasicBrokers_8cpp_source.html b/docs/html/BasicBrokers_8cpp_source.html index cdcb92dba..c039baafa 100644 --- a/docs/html/BasicBrokers_8cpp_source.html +++ b/docs/html/BasicBrokers_8cpp_source.html @@ -22,7 +22,7 @@
AceTime -  1.9.0 +  1.10.0
Date and time classes for Arduino that support timezones from the TZ Database.
diff --git a/docs/html/BasicBrokers_8h.html b/docs/html/BasicBrokers_8h.html index cfe503e96..c1a23ac63 100644 --- a/docs/html/BasicBrokers_8h.html +++ b/docs/html/BasicBrokers_8h.html @@ -22,7 +22,7 @@
AceTime -  1.9.0 +  1.10.0
Date and time classes for Arduino that support timezones from the TZ Database.
diff --git a/docs/html/BasicBrokers_8h_source.html b/docs/html/BasicBrokers_8h_source.html index f21a405ca..938609c6e 100644 --- a/docs/html/BasicBrokers_8h_source.html +++ b/docs/html/BasicBrokers_8h_source.html @@ -22,7 +22,7 @@
AceTime -  1.9.0 +  1.10.0
Date and time classes for Arduino that support timezones from the TZ Database.
@@ -388,101 +388,101 @@
348 
350  void printNameTo(Print& printer) const;
351 
-
353  void printShortNameTo(Print& printer) const;
-
354 
-
355  private:
-
356  const ZoneInfo* mZoneInfo;
-
357 };
-
358 
-
363 class ZoneRegistryBroker {
-
364  public:
-
365  ZoneRegistryBroker(const ZoneInfo* const* zoneRegistry):
-
366  mZoneRegistry(zoneRegistry) {}
-
367 
-
368  // use default copy constructor
-
369  ZoneRegistryBroker(const ZoneRegistryBroker&) = default;
+
356  void printShortNameTo(Print& printer) const;
+
357 
+
358  private:
+
359  const ZoneInfo* mZoneInfo;
+
360 };
+
361 
+
366 class ZoneRegistryBroker {
+
367  public:
+
368  ZoneRegistryBroker(const ZoneInfo* const* zoneRegistry):
+
369  mZoneRegistry(zoneRegistry) {}
370 
-
371  // use default assignment operator
-
372  ZoneRegistryBroker& operator=(const ZoneRegistryBroker&) = default;
+
371  // use default copy constructor
+
372  ZoneRegistryBroker(const ZoneRegistryBroker&) = default;
373 
-
374  #if ACE_TIME_USE_PROGMEM
-
375 
-
376  const ZoneInfo* zoneInfo(uint16_t i) const {
-
377  return (const ZoneInfo*) pgm_read_ptr(&mZoneRegistry[i]);
-
378  }
-
379 
-
380  #else
-
381 
-
382  const ZoneInfo* zoneInfo(uint16_t i) const {
-
383  return mZoneRegistry[i];
-
384  }
-
385 
-
386  #endif
-
387 
-
388  private:
-
389  const ZoneInfo* const* mZoneRegistry;
-
390 };
-
391 
-
392 //-----------------------------------------------------------------------------
-
393 
-
395 class LinkEntryBroker {
-
396  public:
-
397  explicit LinkEntryBroker(const LinkEntry* linkEntry = nullptr):
-
398  mLinkEntry(linkEntry) {}
-
399 
-
400  // use default copy constructor
-
401  LinkEntryBroker(const LinkEntryBroker&) = default;
+
374  // use default assignment operator
+
375  ZoneRegistryBroker& operator=(const ZoneRegistryBroker&) = default;
+
376 
+
377  #if ACE_TIME_USE_PROGMEM
+
378 
+
379  const ZoneInfo* zoneInfo(uint16_t i) const {
+
380  return (const ZoneInfo*) pgm_read_ptr(&mZoneRegistry[i]);
+
381  }
+
382 
+
383  #else
+
384 
+
385  const ZoneInfo* zoneInfo(uint16_t i) const {
+
386  return mZoneRegistry[i];
+
387  }
+
388 
+
389  #endif
+
390 
+
391  private:
+
392  const ZoneInfo* const* mZoneRegistry;
+
393 };
+
394 
+
395 //-----------------------------------------------------------------------------
+
396 
+
398 class LinkEntryBroker {
+
399  public:
+
400  explicit LinkEntryBroker(const LinkEntry* linkEntry = nullptr):
+
401  mLinkEntry(linkEntry) {}
402 
-
403  // use default assignment operator
-
404  LinkEntryBroker& operator=(const LinkEntryBroker&) = default;
+
403  // use default copy constructor
+
404  LinkEntryBroker(const LinkEntryBroker&) = default;
405 
-
406  #if ACE_TIME_USE_PROGMEM
-
407  uint32_t zoneId() const { return pgm_read_dword(&mLinkEntry->zoneId); }
-
408  uint32_t linkId() const { return pgm_read_dword(&mLinkEntry->linkId); }
-
409 
-
410  #else
-
411  uint32_t zoneId() const { return mLinkEntry->zoneId; }
-
412  uint32_t linkId() const { return mLinkEntry->linkId; }
-
413 
-
414  #endif
-
415 
-
416  private:
-
417  const LinkEntry* mLinkEntry;
-
418 };
-
419 
-
423 class LinkRegistryBroker {
-
424  public:
-
425  LinkRegistryBroker(const LinkEntry zoneRegistry[]):
-
426  mLinkRegistry(zoneRegistry) {}
-
427 
-
428  // use default copy constructor
-
429  LinkRegistryBroker(const LinkRegistryBroker&) = default;
+
406  // use default assignment operator
+
407  LinkEntryBroker& operator=(const LinkEntryBroker&) = default;
+
408 
+
409  #if ACE_TIME_USE_PROGMEM
+
410  uint32_t zoneId() const { return pgm_read_dword(&mLinkEntry->zoneId); }
+
411  uint32_t linkId() const { return pgm_read_dword(&mLinkEntry->linkId); }
+
412 
+
413  #else
+
414  uint32_t zoneId() const { return mLinkEntry->zoneId; }
+
415  uint32_t linkId() const { return mLinkEntry->linkId; }
+
416 
+
417  #endif
+
418 
+
419  private:
+
420  const LinkEntry* mLinkEntry;
+
421 };
+
422 
+
426 class LinkRegistryBroker {
+
427  public:
+
428  LinkRegistryBroker(const LinkEntry zoneRegistry[]):
+
429  mLinkRegistry(zoneRegistry) {}
430 
-
431  // use default assignment operator
-
432  LinkRegistryBroker& operator=(const LinkRegistryBroker&) = default;
+
431  // use default copy constructor
+
432  LinkRegistryBroker(const LinkRegistryBroker&) = default;
433 
-
434  // Same code whether or not ACE_TIME_USE_PROGMEM is active.
-
435  const LinkEntry* linkEntry(uint16_t i) const {
-
436  return &mLinkRegistry[i];
-
437  }
-
438 
-
439  private:
-
440  const LinkEntry* mLinkRegistry;
-
441 };
-
442 
-
443 //-----------------------------------------------------------------------------
-
444 
-
446 class BrokerFactory {
-
447  public:
-
448  ZoneInfoBroker createZoneInfoBroker(uintptr_t zoneKey) const {
-
449  return ZoneInfoBroker((const ZoneInfo*) zoneKey);
-
450  }
-
451 };
-
452 
-
453 } // basic
-
454 } // ace_time
+
434  // use default assignment operator
+
435  LinkRegistryBroker& operator=(const LinkRegistryBroker&) = default;
+
436 
+
437  // Same code whether or not ACE_TIME_USE_PROGMEM is active.
+
438  const LinkEntry* linkEntry(uint16_t i) const {
+
439  return &mLinkRegistry[i];
+
440  }
+
441 
+
442  private:
+
443  const LinkEntry* mLinkRegistry;
+
444 };
+
445 
+
446 //-----------------------------------------------------------------------------
+
447 
+
449 class BrokerFactory {
+
450  public:
+
451  ZoneInfoBroker createZoneInfoBroker(uintptr_t zoneKey) const {
+
452  return ZoneInfoBroker((const ZoneInfo*) zoneKey);
+
453  }
+
454 };
455 
-
456 #endif
+
456 } // basic
+
457 } // ace_time
+
458 
+
459 #endif
BrokerCommon.h
ace_time::basic::ZoneRuleBroker
Data broker for accessing ZoneRule.
Definition: BasicBrokers.h:51
@@ -490,11 +490,11 @@
ace_time::basic::ZoneEraBroker
Data broker for accessing ZoneEra.
Definition: BasicBrokers.h:194
ace_time::internal::ZoneContext
Metadata about the zone database.
Definition: ZoneContext.h:16
ace_time::basic::ZoneInfoBroker::printShortNameTo
void printShortNameTo(Print &printer) const
Print a short human-readable identifier (e.g.
Definition: BasicBrokers.cpp:25
-
ace_time::basic::BrokerFactory
A factory that creates a basic::ZoneInfoBroker.
Definition: BasicBrokers.h:446
+
ace_time::basic::BrokerFactory
A factory that creates a basic::ZoneInfoBroker.
Definition: BasicBrokers.h:449
ace_time::basic::ZoneInfoBroker
Data broker for accessing ZoneInfo.
Definition: BasicBrokers.h:286
-
ace_time::basic::ZoneRegistryBroker
Data broker for accessing the ZoneRegistry.
Definition: BasicBrokers.h:363
-
ace_time::basic::LinkRegistryBroker
Data broker for a LinkRegistry composed of LinkEntry records.
Definition: BasicBrokers.h:423
-
ace_time::basic::LinkEntryBroker
Data broker for accessing a LinkEntry.
Definition: BasicBrokers.h:395
+
ace_time::basic::ZoneRegistryBroker
Data broker for accessing the ZoneRegistry.
Definition: BasicBrokers.h:366
+
ace_time::basic::LinkRegistryBroker
Data broker for a LinkRegistry composed of LinkEntry records.
Definition: BasicBrokers.h:426
+
ace_time::basic::LinkEntryBroker
Data broker for accessing a LinkEntry.
Definition: BasicBrokers.h:398
ace_time::basic::ZonePolicyBroker
Data broker for accessing ZonePolicy.
Definition: BasicBrokers.h:136