SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
|
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>
Public Member Functions | |
Observable () | |
Observable (Observable &&other) | |
Move constructor. | |
void | notify () |
void | attach (std::function< void()> observer) |
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.
|
inline |
Definition at line 18 of file observable.h.
sensesp::Observable::Observable | ( | Observable && | other | ) |
Move constructor.
Definition at line 5 of file observable.cpp.
void sensesp::Observable::notify | ( | ) |