Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QScxml - Saving the the internal state of a state machine
Forum Updated to NodeBB v4.3 + New Features

QScxml - Saving the the internal state of a state machine

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 957 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • larry104L Offline
    larry104L Offline
    larry104
    wrote on last edited by
    #1

    Hi,
    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.

    Thx.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • larry104L Offline
        larry104L Offline
        larry104
        wrote on last edited by
        #3

        Unfortunately, this will only set your data model variables. I need a snapshot of the internal state of the entire state machine.

        Thanks.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved