Boost logo

Boost Users :

Subject: Re: [Boost-users] [statechart] Passing parameters from event toState Local Storage
From: Andreas Huber (ahd6974-spamboostorgtrap_at_[hidden])
Date: 2010-05-07 06:36:44


Hi Felipe

> I have a patch using boost.fusion to allow this. It works this way:
>
> class StSource : public sc::simple_state<StSource, MyStateMachine>
> {
> public:
> typedef sc::custom_reaction<EvTest> reactions;
> sc::result react(const EvTest &event)
> {
> // How to pass event.getValue() to the target state ?
> transit<StTarget>(event.value); // pass arguments to target
> // state constructor
> }
> };
>
> Does Boost have interest in this?

Yes, definitely!

Thanks,

-- 
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