Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
Observable.h
Go to the documentation of this file.
1 #ifndef OBSERVABLE_H
2 #define OBSERVABLE_H
3 
4 #include "Observer.h"
5 #include <list>
6 
8 {
9 public:
10  tcObservable();
11 
12  void registerObserver(tcObserver *apObs);
13 
14  void unregisterObserver(tcObserver *apObs);
15 
16  void notifyChange(tsUpdate asMessage);
17 
18 private:
19  std::list<tcObserver *> mcObservers;
20 };
21 
22 #endif // OBSERVABLE_H
tsUpdate
Definition: Observer.h:6
Observer.h
tcObserver
Definition: Observer.h:12
tcObservable
Definition: Observable.h:7
tcObservable::notifyChange
void notifyChange(tsUpdate asMessage)
Definition: Observable.cpp:17
tcObservable::unregisterObserver
void unregisterObserver(tcObserver *apObs)
Definition: Observable.cpp:12
tcObservable::registerObserver
void registerObserver(tcObserver *apObs)
Definition: Observable.cpp:7
tcObservable::tcObservable
tcObservable()
Definition: Observable.cpp:3