13#include "facilities/Adapter.h"
16# pragma warning(disable: 4786)
89 m_observers.push_back(anObserver);
108 std::vector<Observer*>::iterator it = m_observers.begin();
109 while (it != m_observers.end()) {
110 if (*it) (*it)->update();
124 std::vector<Observer*> m_observers;
137template <
class T,
class Y =
int>
146 : itsAdapter(anAdapter)
167 itsAdapter = anAdapter;
186 if (itsAdapter) (*itsAdapter)();
virtual ~ObserverAdapter()
ObserverAdapter(Adapter< Y > *anAdapter=0)
Adapter< Y > * getAdapter()
void setAdapter(Adapter< Y > *anAdapter=0)
void attach(Observer *anObserver)