5 #ifndef SubjectObserver_HH
6 #define SubjectObserver_HH
32 virtual void notify();
45 virtual void getNewState()=0;
46 virtual void changed(
Subject* changedSubject);
47 virtual void forgetSubject(
Subject* theObsoleteSubject);
63 inline void Observer::forgetSubject(
Subject* obsolete)
65 if (obsolete==mSubject)
68 cout <<
"Observer::forgetSubject(Subject*) - ERROR - obsolete!=mSubject"<<endl;
vector< Observer * > ObserverVec
For convenience.