|
SVCS - English Documentation
|
The Observer Interface (Abstract Base Class). More...
#include <IObserver.hxx>
Public Member Functions | |
| virtual | ~IObserver ()=default |
| Default virtual destructor. | |
| virtual void | notify (const Event &event)=0 |
| Method called by the Subject to notify the observer. | |
| virtual void | update (const Event &event)=0 |
| Method called by the Subject to update the observer. | |
The Observer Interface (Abstract Base Class).
Any class that wants to receive notifications from the system core (e.g., Repository, Command) must implement this interface to be registered with a Subject.
|
virtualdefault |
Default virtual destructor.
Ensures correct cleanup of derived observer classes via a base class pointer.
|
pure virtual |
Method called by the Subject to notify the observer.
| event | The Event structure containing information about the occurrence. |
Implemented in svcs::services::Logger, svcs::test::core::ManualMockObserver, svcs::test::core::MockObserver, and svcs::test::core::NullObserver.
|
pure virtual |
Method called by the Subject to update the observer.
| event | The Event structure containing information about the occurrence. |
Implemented in svcs::services::Logger, svcs::test::core::ManualMockObserver, svcs::test::core::MockObserver, and svcs::test::core::NullObserver.