
Jeffrey Holle wrote:
Jeffrey Holle wrote:
Andreas Huber wrote:
3. What is a custom-reaction? Basically they allow you to do things for which the predefined reactions are too inflexible.
Just what are the "predefined reactions"?
I want to execute application specific code when a transition occurs. Does this mean I must use "custom-reactions"?
No, see below.
I can see that transaction template can have applications specific actions attached, but the documentation is limited
It would help if you could point out exactly how you feel that the docs are limited.
and no examples are present in my present boost download.
Umm, how about ... http://www.boost-consulting.com/boost/libs/statechart/doc/tutorial.html#Tran... ... (I've already posted this link in my first follow-up)? Both cases are shown, namely the case where the transition action is a member of an outer state and where it is a member of the state_machine subclass itself.
The documentation says a transaction template can take 4 template parameters. The last two are: TransitionContext pTransitionAction
If someone could supply me with an example use of these parameters, I could probably write my code. Note that in my case, the method I want to execute an transition is in my state class.
See above. -- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.