How to access SCXML parse results?
I would like to use the SCXML Modeling editor to create state charts and then later on parse those and then work with the results, I don't need a running state machine.
I guess, I could still use something like XMLStreamReader to parse the file,
but was wondering if somehow QScxmlParser could be used to parse the file and return all states or all transitions or all attributes for a state or the defined events for a transition, and so on.
What I see is all you can do is instantiate a state machine, the parse method description of QScxmlParser could use some more details as well "parses an SCXML file", well where to,
where are the results, is there a sytax tree somewhere?
Thank you for your time and trouble.
All the best
I presume the answer is: it's not documented because they don't intend you to use it, else they would document it. It does whatever it needs to do internally, and you get to instantiate a machine..
Hi and welcome to devnet,
Do you mean like Qt Creator's state machine editor ?
@SGaist No, that is what I used to create the state machine; I want methods to parse the file, like getAllStates(), getEvents(transition) and so on. I am looking for Qt C++ methods, not for an editor.
Pablo J. Rogina
Since it's the editor, you can take a look at its sources to see how it accesses the data you are interested in.