Represents an observer to the Subject class. An observer implements this interface and then subscribes to the Subject with the interface. The observer will be called whenever a change in the number is made. More...
#include <ObserverSubject_NumberProducer.h>


Public Types | |
| using | shared_ptr_t = std::shared_ptr< IObserverNumberChanged > |
| Alias to make it easier to use this shared pointer. | |
Public Member Functions | |
| virtual | ~IObserverNumberChanged () |
| Virtual destructor required for interfaces in abstract classes. | |
| virtual void | NumberChanged ()=0 |
| This is called whenever the number in the ObserverSubject_NumberProducer object is changed. | |
Represents an observer to the Subject class. An observer implements this interface and then subscribes to the Subject with the interface. The observer will be called whenever a change in the number is made.
This interface is specific to the ObserverSubject_NumberProducer example, which is a typical requirement for a Subject that supports observers.
Definition at line 41 of file ObserverSubject_NumberProducer.h.
| using shared_ptr_t = std::shared_ptr<IObserverNumberChanged> |
Alias to make it easier to use this shared pointer.
Definition at line 46 of file ObserverSubject_NumberProducer.h.
|
inlinevirtual |
Virtual destructor required for interfaces in abstract classes.
Definition at line 51 of file ObserverSubject_NumberProducer.h.
|
pure virtual |
This is called whenever the number in the ObserverSubject_NumberProducer object is changed.
Implemented in ObserverForDecimal, ObserverForHexaDecimal, and ObserverForBinary.