MvcDefSubject::AddObserver

void MvcDefSubject::AddObserver(IMvcObserver* pObserver)

Adds an observer to the list of dependents

Defined in: MvcDefSbjObs.cpp

Return Value

void

Parameters

pObserver

A pointer to an object that is dependent on (observing) this object

Comments

The function adds any object derived from IMvcObserver to our list of dependents. When a change occurs in the state of this subject, all observers will be sent a notification describing the nature of the change.

See Also

IMvcSubject, RemoveObserver