|
Boost Users : |
Subject: Re: [Boost-users] [statechart] Pass event data to state constructor?
From: Andreas Huber (ahd6974-spamboostorgtrap_at_[hidden])
Date: 2009-09-02 14:47:02
Hi Bill
> I'd like to be able to communicate the data from an event to the state(s)
> that get constructed as a result of a transition.
That's a pretty common request, see item 3 on the to-do list:
http://www.boost.org/libs/statechart/doc/future_and_history.html#ToDoList
As stated in the todo-item, passing event data to the state constructor is
not as straight-forward as it might seem. You are bound to lose event
type-safety. However, if you have a compelling use-case, I'm willing to
finally implement this feature.
HTH & Regards,
-- 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