Boost logo

Boost Users :

From: Marcin Tustin (mt_at_[hidden])
Date: 2005-05-04 03:49:20


> -----Original Message-----
> From: Andreas Huber [mailto:ahd6974-spamgroupstrap_at_[hidden]]
> Sent: 03 May 2005 14:11
> To: boost-users_at_[hidden]
> Subject: [Boost-users] Re: [boost::fsm] Accessing most
> recently posted event
>
> Hi Marcin
> const event_base * current_event() const
>
> If the state entry was triggered by an event, current_event()
> returns a pointer to the event that triggered the transition.
> Otherwise, it returns 0 (e.g. the state was entered as a
> result of calling state_machine::initiate().
> We could also name this triggering_event()...
>
> Thoughts?

        Sounds pretty good. Apart from ahving a member instead of a
function, and not bothering to clear the variable, this is pretty what I
have done. Of course, I am still jury-rigging things for a technology
demo at this stage, rather than building a bulletproof library (which I
leave for later, or better, other people).


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