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.
Dependencies: BLE_API mbed nRF51822
Diff: MVC.h
- Revision:
- 2:6db5c9a2894c
- Parent:
- 0:25ad6eba7916
diff -r e036e77762fa -r 6db5c9a2894c MVC.h --- a/MVC.h Tue Jul 07 04:58:28 2015 +0000 +++ b/MVC.h Wed Jul 08 07:25:11 2015 +0000 @@ -1,17 +1,19 @@ #ifndef MVC_H #define MVC_H +#include "mbed.h" + class Observer { public: - void update(void* data){} + virtual void updateObserver(void* data){printf("in mvc\r\n");} }; class Observable { public: void notifyObservers(); - void addObserver(Observer o); + void addObserver(Observer* o); }; #endif \ No newline at end of file