Boost logo

Boost Users :

Subject: [Boost-users] Fw: Re: [statechart] handling unexpected events
From: Andreas Huber (ahd6974-spamboostorgtrap_at_[hidden])
Date: 2008-10-05 04:29:43


> From: Andreas Huber <ahd6974-spamboostorgtrap_at_[hidden]>
> Subject: RE: [Boost-users] [statechart] handling unexpected events
> To: "Robert Mecklenburg" <rmecklenburg_at_[hidden]>
> Date: Monday, September 22, 2008, 11:31 PM
>
> Hi Robert
>
> If you really do not want to have the
> data_delivered::exit() function called when an unknown event
> occurs then your best option is to define the following
> reactions for data_delivered:
>
> 1. An ordinary transition to then ready state, triggered by
> the commit event
> 2. An ordinary transition to the ready state, triggered by
> exception_thrown event
> 3. An in_state_reaction triggered by even_base, which first
> posts the event an then throws an exception
>
> Note: The order of the reactions is relevant.
>
> HTH,
>
> Andreas

--
Andreas Huber
When replying by private email, please remove the words spam and trap from 
the address shown in the header. 

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net