Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: app.h
- Revision:
- 21:53c2a598dda1
diff -r 85a44ddbdc41 -r 53c2a598dda1 app.h
--- /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 
+