Event-Driven Programming in C++ 1.0
A case study on event-driven programming in C++
Loading...
Searching...
No Matches
ConcreteObserver Class Reference

A concrete implementation of the IObserver interface. More...

Inheritance diagram for ConcreteObserver:
observer::IObserver

Public Member Functions

void onNotify (const std::string &message) override
 Handles the notification from the Subject.
 
- Public Member Functions inherited from observer::IObserver
virtual ~IObserver ()=default
 Virtual destructor.
 

Detailed Description

A concrete implementation of the IObserver interface.

The ConcreteObserver class implements the onNotify() method to handle event notifications by printing the received message to the standard output.

Member Function Documentation

◆ onNotify()

void ConcreteObserver::onNotify ( const std::string &  message)
inlineoverridevirtual

Handles the notification from the Subject.

Parameters
messageA string containing details about the event.

Implements observer::IObserver.


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