Boost logo

Boost Users :

From: Peter Petrov (ppetrov_at_[hidden])
Date: 2005-08-30 15:12:59


BRIDGES Dick wrote:
> Is there any provision for "event-local" storage? I'd like to create
> events that carry data (e.g., timestamp, source, etc.) to be used by
> reactions and transitions to update state-local storage.
>
> I didn't see anything like this in the documentation. Bad idea? Major
> drawbacks? If it wouldn't be a problem, how might I go about doing it?

struct MyEvent : public boost::statechart::event<MyEvent>
{
    int myData;
    double myOtherData;
    MyClass myOtherOtherData;
};


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