IObserver Class

class IObserver

IObserver is an interface that can be mixed into any object through multiple inheritance. An object that incorporates this interface can observe any object that incorporates the ISubject interface. All observers of a subject are notified of changes to the subject state via a change notification protocol.

NOTE: the ISubject interface implements the subject part of the Observer design pattern. See the book "Design Patterns: Elements of reusable Object-oriented software."

Defined in: SubjectObserver.h

Class Members

virtual void  OnUpdate(ISubject* pSubject, IMessage* pMsg)

The function reacts to notifications of change on the subject it is observing