A base class which allow observers to attach callbacks to themselves. The callbacks will be called when the observable needs to notify the observers about some state change.
More...
#include <sensesp/system/observable.h>
A base class which allow observers to attach callbacks to themselves. The callbacks will be called when the observable needs to notify the observers about some state change.
Definition at line 16 of file observable.h.
◆ Observable() [1/2]
sensesp::Observable::Observable |
( |
| ) |
|
|
inline |
◆ Observable() [2/2]
sensesp::Observable::Observable |
( |
Observable && | other | ) |
|
|
inline |
◆ attach()
void sensesp::Observable::attach |
( |
std::function< void()> | observer | ) |
|
|
inline |
◆ notify()
void sensesp::Observable::notify |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: