Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62696

Compiled SCXML State Machines: Expose states and events to the type system

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.9.0
    • XML: SCXML
    • None
    • not relevant

    Description

      If I understand it correctly Qt's SCXML implementation offers no possibility to reference states and events using symbols so that they are checked at compile time, not even if the state machine is compiled to C++ code.

      The SCXML compiler generates boolean properties for the states defined in XML, but no accessors to it (Why does it even generate properties then?). Please provide accessors in the future so we can check at compile time weather valid states is referred or not.

      I am not working on a large project involving SCXML right now, but if I ever do so I can easily imagine that sates change in the XML definition and some references to it in C++ code are not updated properly, which then results in incorrect behavior (that could have caught easily by using proper symbols instead of strings!).

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jkobus Jarek Kobus
              pingu Nils Brünggel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes