CMvcModel::AddObserver

virtual voidCMvcModel::AddObserver(IObserver*pObserver)

Adds an observer to the list of dependents

Defined in: MvcModel.h

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 IObserver 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

ISubject,  RemoveObserver