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

Declaration of the Subject class for the Observer pattern. More...

#include "observer.hpp"
#include <vector>
#include <algorithm>
#include <string>

Go to the source code of this file.

Classes

class  observer::Subject
 The Subject class manages a list of observers and notifies them of events. More...
 

Namespaces

namespace  observer
 Implements the Observer design pattern for event notifications.
 

Detailed Description

Declaration of the Subject class for the Observer pattern.

This file declares the Subject class, which maintains a list of observers and notifies them about events. Observers can be added or removed dynamically.