Boost logo

Boost Users :

From: Andreas Huber (ahd6974-spamboostorgtrap_at_[hidden])
Date: 2008-04-06 15:41:35


Hi Andre

> I am implementing a fsm for a kind of a project class, which tracks
> certain
> changes like adding special files or starting a computation. To keep the
> interface as small/clean as possible all interactions with the fsm should
> be
> soley processed by the process_event method.
> But seemingl I have to declare transition actions public in an outer state
> to
> make them available for inner state reactions/transitions. Is there any
> nice
> way to avoid this and to keep transition actions separated from the public
> interface? (Declaring *all* inner states which need access to be friend
> seems
> too ugly to me...)
[snip code]

Have you read
<http://www.boost.org/doc/libs/1_35_0/libs/statechart/doc/faq.html#HideInnerWorkings>?

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