
-----Original Message----- From: Andreas Huber [mailto:ahd6974-spamgroupstrap@yahoo.com] Sent: 03 May 2005 14:11 To: boost-users@lists.boost.org 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).