Boost logo

Boost :

From: Andreas Huber (ah2003_at_[hidden])
Date: 2004-06-01 17:05:41


One more and probably the strongest argument pro your pre-exit trick is that
it also works nicely with a transition originating at an outer state. E.g.
in the StopWatch state chart you want to do something special when a EvReset
event is received and the machine is currently in the Stopped state. You'd
then add a Stopped in-state reaction, which does what it has to do with
whatever Stopped data members and them simply calls forward_event(). The
event will then trigger the transition originating at the Active state.

This is cannot be done with the change you proposed.

Regards,

Andreas


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk