Boost logo

Boost Users :

From: Andreas Huber (ahd6974-spamboostorgtrap_at_[hidden])
Date: 2008-04-07 09:56:07


> But introducing
> an outermost context (say Active ) which all substates have in common and
> moving state_machine transit functions there should be the right approach,
> shouldn't be?

Right. Keep in mind though, that state_machine<> declares other functions you
might want to hide too:

<http://www.boost.org/doc/libs/1_35_0/libs/statechart/doc/reference.html#ClassTe
mplatestate_machine>, e.g. state_begin(), state_end(), etc.

That's why you often don't expose state_machine<> subclasses directly but wrap
them in another object.

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