semf
clock.h
Go to the documentation of this file.
1
10#ifndef SEMF_APP_SYSTEM_CLOCK_H_
11#define SEMF_APP_SYSTEM_CLOCK_H_
12
14
15namespace semf
16{
17namespace app
18{
30class Clock
31{
32public:
33 virtual ~Clock() = default;
34
39 virtual DateTime& now() = 0;
44 virtual void set(DateTime& datetimeToSet) = 0;
50 virtual Clock& operator=(const DateTime& datetimeToSet) = 0;
51};
52} /* namespace app */
53} /* namespace semf */
54#endif /* SEMF_APP_SYSTEM_CLOCK_H_ */
The DateTime class provides date and time functionality as a point of time. It combines features of t...
Definition: datetime.h:31
The Clock class provides real time clock functionality. It can return a DateTime object with actual d...
Definition: clock.h:31
virtual ~Clock()=default
virtual DateTime & now()=0
Returns the momentary date time from Rtc.
virtual void set(DateTime &datetimeToSet)=0
Sets the DateTime information from datetimeToSet to the Rtc.
virtual Clock & operator=(const DateTime &datetimeToSet)=0
Copies the date time.