![]() |
semf
|
The Clock
class provides real time clock functionality. It can return a DateTime
object with actual date and time information from Rtc
and the Rtc
can be updated by setting a DateTime
object to Clock
.
More...
#include <clock.h>
Public Member Functions | |
Clock (Rtc &rtc) | |
Constructor. More... | |
Clock (const Clock &other)=delete | |
DateTime & | now () override |
Returns the momentary date time from Rtc . More... | |
void | set (DateTime &datetimeToSet) override |
Sets the DateTime information from datetimeToSet to the Rtc . More... | |
app::Clock & | operator= (const DateTime &datetimeToSet) override |
Copies the date time. More... | |
![]() | |
virtual | ~Clock ()=default |
virtual DateTime & | now ()=0 |
Returns the momentary date time from Rtc . More... | |
virtual void | set (DateTime &datetimeToSet)=0 |
Sets the DateTime information from datetimeToSet to the Rtc . More... | |
virtual Clock & | operator= (const DateTime &datetimeToSet)=0 |
Copies the date time. More... | |
The Clock
class provides real time clock functionality. It can return a DateTime
object with actual date and time information from Rtc
and the Rtc
can be updated by setting a DateTime
object to Clock
.
|
explicit |
|
explicitdelete |
|
overridevirtual |
|
overridevirtual |
Copies the date time.
datetimeToSet | Source to copy the DateTime information from. |
Implements semf::app::Clock.
Definition at line 38 of file clock.cpp.