observer_pattern::ConcreteObserver
-
class ConcreteObserver : public observer_pattern::Observer
Concrete implementation of an Observer.
Subclassed by TestObserver
Public Functions
Constructor for ConcreteObserver.
- Parameters:
name – The name of the observer.
subject – The subject to observe.
-
inline std::string getName() const
Get the name of the observer.
- Returns:
The name of the observer.
-
inline virtual void update() override
Updates the observer when notified by the subject.