CSCI3081W Drone Delivery System
Public Member Functions | List of all members
IPublisher Class Reference

Interface for Publisher. More...

#include <IPublisher.h>

Inheritance diagram for IPublisher:
Inheritance graph
[legend]

Public Member Functions

void addObserver (const IObserver *o)
 adds an observer to the simulation More...
 
void removeObserver (const IObserver *o)
 removes an observer in the simulation More...
 
void notifyObservers (const std::string &message) const
 notifies all observers with a specific message More...
 

Detailed Description

Interface for Publisher.

Member Function Documentation

◆ addObserver()

void IPublisher::addObserver ( const IObserver o)

adds an observer to the simulation

Parameters
oThe pointer to the specific observer

◆ notifyObservers()

void IPublisher::notifyObservers ( const std::string &  message) const

notifies all observers with a specific message

Parameters
messageThe specific message

◆ removeObserver()

void IPublisher::removeObserver ( const IObserver o)

removes an observer in the simulation

Parameters
oThe pointer to the specific observer

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