QScxml - Saving the the internal state of a state machine
I'm using QScxml very heavily and I love it. I have one question though - Is there a way to save the internal state of a statemachine to e.g. file or anything else? The use case is when you exit a program and you want to to continue where you left off.
I haven't used that module yet however from a quick look at the code
QScxmlDataModel::setup(const QVariantMap &initialDataValues)might be what you are looking for.
Hope it helps
Unfortunately, this will only set your data model variables. I need a snapshot of the internal state of the entire state machine.
Ok, I see.
Then you may have to implement that yourself.
One other place where you can ask for more information about the module is the interest mailing list. You'll find there QtScxml developers/maintainers. This forum is more user oriented.