5 #ifndef HERALD_SIMPLE_K_H
6 #define HERALD_SIMPLE_K_H
8 #include "secret_key.h"
9 #include "matching_key.h"
10 #include "contact_key.h"
11 #include "contact_identifier.h"
12 #include "../../datatype/data.h"
13 #include "../../datatype/time_interval.h"
24 K(
const K& other) noexcept;
26 K(
int keyLength,
int daysFor,
int periodsInDay) noexcept;
27 K(
int keyLength,
int daysFor,
int periodsInDay,
TimeInterval epochBeginning) noexcept;
32 int day(
Date on)
const noexcept;
34 int period(
Date at)
const noexcept;
39 ContactKey contactKey(
const SecretKey& secretKey,
const int dayFor,
const int periodFor) noexcept;
54 const int periodsInDay;
The main data workhorse class of the Herald API.
Definition: data.h:33
Definition: time_interval.h:19
Contains all low-level Herald datatype implementations.
Definition: base64_string.h:14
@ on
Sensor is powered on, active and operational.
Acts as a non-global memory arena for arbitrary classes.
Definition: aggregates.h:15