Oscar Schofield / Mbed 2 deprecated Elec350_OBS

Dependencies:   mbed

Revision:
21:53c2a598dda1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app.h	Tue Dec 01 13:18:49 2015 +0000
@@ -0,0 +1,23 @@
+#ifndef _APP_H_
+#define _APP_H_
+
+#include <string>
+#include "mbed.h"
+
+class App
+{
+    protected: 
+        string name;
+        Serial* serialPort;
+        
+    public:
+        App(string name, Serial* serialPort);   //constructor 
+        string getName();                       //returns the App name
+        virtual void start();
+        virtual void run() = 0;
+        virtual void stop();
+
+};
+
+#endif 
+