Andreas Huber wrote:
Hi Etienne
So a short question is 'How do you pass data from "outside" the state machine into the state machine'.
That's what events are for. Have you had a look at the tutorial? Yes, I have.
Is it worth it?
I guess I don't understand what high level goal you want to achieve and how Boost.Statechart is supposed to fit in. Could you please elaborate?
XML Specification: document := prolog element Misc* IE 3 distinct states. First state 'prolog': xml declaration (maximum of 1 occurence) OR comment (no upper limit) OR process instruction (no upper limit) OR white space (no upper limit) Including 'start element' and 'empty element' as to detect state transition from prolog to element according to the above definition. The event to fire that of is well a range of bytes that will match 'prolog' and if it does not match anything or matches xml declaration more than once and error should be thrown. So at a high level the state machine is keeping track on what I would expect to be my next set of valid xml entity constructs. The only way that the state machine knows that it must 'advance' to the next state is when I pass the iterators for the content is needs to search and it matches the conditions for it to advance.
Thanks,