Es loht sich compile und lieferet au Wert. Das wärs aber au scho gsi.

Revision:
0:1a79273bc3e6
diff -r 000000000000 -r 1a79273bc3e6 Task.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Task.h	Mon Apr 09 07:00:45 2018 +0000
@@ -0,0 +1,30 @@
+/*
+ * Task.h
+ * Copyright (c) 2018, ZHAW
+ * All rights reserved.
+ */
+
+#ifndef TASK_H_
+#define TASK_H_
+
+#include <cstdlib>
+
+/**
+ * This is an abstract task class with a method that
+ * is called periodically by a task sequencer.
+ */
+class Task {
+    
+    public:
+        
+        static const int    FAULT = -1;     /**< Task return value. */
+        static const int    RUNNING = 0;    /**< Task return value. */
+        static const int    DONE = 1;       /**< Task return value. */
+        
+                        Task();
+        virtual         ~Task();
+        virtual int     run(float period);
+};
+
+#endif /* TASK_H_ */
+