Telescope Control Library

Dependents:   PushToGo-F429

Revision:
0:6cb2eaf8b133
Child:
5:2ee2c36f4d87
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/UTCClock.h	Sun Aug 19 05:21:20 2018 +0000
@@ -0,0 +1,25 @@
+#include <time.h>
+
+#ifndef UTCCLOCK_H_
+#define UTCCLOCK_H_
+/**
+ * This class provides an interface to a general clock that provides information about the current time.
+ * In most systems, this class is implemented by RTCClock to read time from the RTC.
+ */
+class UTCClock
+{
+public:
+	UTCClock()
+	{
+	}
+	virtual ~UTCClock()
+	{
+	}
+
+	virtual time_t getTime() = 0;
+	virtual void setTime(time_t time) = 0;
+
+};
+
+#endif /*UTCCLOCK_H_*/
+