SVCS - English Documentation
Loading...
Searching...
No Matches
svcs::services::IObserver Class Referenceabstract

The Observer Interface (Abstract Base Class). More...

#include <IObserver.hxx>

Inheritance diagram for svcs::services::IObserver:
svcs::services::Logger svcs::test::core::ManualMockObserver svcs::test::core::MockObserver svcs::test::core::NullObserver

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~IObserver()

virtual svcs::services::IObserver::~IObserver ( )
virtualdefault

Default virtual destructor.

Ensures correct cleanup of derived observer classes via a base class pointer.

Member Function Documentation

◆ notify()

virtual void svcs::services::IObserver::notify ( const Event & event)
pure virtual

Method called by the Subject to notify the observer.

Parameters
eventThe Event structure containing information about the occurrence.
Deprecated
Note: This method appears redundant with update(const Event& event).

Implemented in svcs::services::Logger, svcs::test::core::ManualMockObserver, svcs::test::core::MockObserver, and svcs::test::core::NullObserver.

◆ update()

virtual void svcs::services::IObserver::update ( const Event & event)
pure virtual

Method called by the Subject to update the observer.

Parameters
eventThe 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.


The documentation for this class was generated from the following file: