boost:statechart: How can I access the state machine from within a custom error handler?

Hello, I have replaced the null_exception_translator (http://www.boost.org/doc/libs/1_34_1/libs/statechart/doc/reference.html#null...) with one of my own brew and I cannot figure a way to get the state machine in the context of which the the handler gets called. The 'machine_' member is private in both the 'Action' and the 'ExceptionEventHandler'. The 'translator_' is also private - thus inaccessible in my derived state machine. Any ideas are appreciated. Kind regards /JG

Hi
I have replaced the null_exception_translator (http://www.boost.org/doc/libs/1_34_1/libs/statechart/doc/reference.html#null...) with one of my own brew and I cannot figure a way to get the state machine in the context of which the the handler gets called.
Have you read http://www.boost.org/doc/libs/1_39_0/libs/statechart/doc/tutorial.html#Excep... ? Did you try to use exception_translator instead of null_exception_translator? Regards, -- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.

Have you read http://www.boost.org/doc/libs/1_39_0/libs/statechart/doc/tutorial.html#Excep... ? Did you try to use exception_translator instead of null_exception_translator?
Replacing the translator did worked - it sends back to the state an event and there I can get access to the state machine. Thanks! /JG -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a
participants (3)
-
ame01@gmx.net
-
Andreas Huber
-
Jale Gulea