class update : public event {\fbox{update}
public: update(thermometer* th, prompter* p) : _th(th), _p(p) {} void operator()() { _th->set( _p->get() ); event::process(); } protected: thermometer* _th; prompter* _p; };
class update : public event {\fbox{update}
public: update(thermometer* th, prompter* p) : _th(th), _p(p) {} void operator()() { _th->set( _p->get() ); event::process(); } protected: thermometer* _th; prompter* _p; };