QScxmlInvokableService Class
Die Klasse QScxmlInvokableService ist die Basisklasse für Dienste, die von Zustandsautomaten aufgerufen werden. Mehr...
Kopfzeile: | #include <QScxmlInvokableService> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Scxml) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
qmake: | QT += scxml |
Vererbt: | QObject |
Eigenschaften
- id : const QString
- name : const QString
- parentStateMachine : QScxmlStateMachine* const
Öffentliche Funktionen
virtual QString | id() const = 0 |
virtual QString | name() const = 0 |
QScxmlStateMachine * | parentStateMachine() const |
virtual void | postEvent(QScxmlEvent *event) = 0 |
virtual bool | start() = 0 |
Detaillierte Beschreibung
Die Dienste werden von Zustandsautomaten über den in SCXML-Spezifikation - 6.4 <invoke> beschriebenen Mechanismus aufgerufen . Diese Klasse repräsentiert eine aktuelle Instanz eines aufgerufenen Dienstes.
Eigenschaft Dokumentation
[read-only]
id : const QString
Diese Eigenschaft enthält die ID des aufrufbaren Dienstes.
Die ID wird durch das Attribut id
des Elements <invoke>
angegeben.
Zugriffsfunktionen:
virtual QString | id() const = 0 |
[read-only]
name : const QString
Diese Eigenschaft enthält den Namen des aufzurufenden Dienstes.
Zugriffsfunktionen:
virtual QString | name() const = 0 |
[read-only]
parentStateMachine : QScxmlStateMachine* const
Diese Eigenschaft enthält die SCXML-Zustandsmaschine, die den Dienst aufgerufen hat.
Zugriffsfunktionen:
QScxmlStateMachine * | parentStateMachine() const |
Dokumentation der Mitgliedsfunktionen
[pure virtual]
void QScxmlInvokableService::postEvent(QScxmlEvent *event)
Sendet eine event an den Dienst.
[pure virtual]
bool QScxmlInvokableService::start()
Startet den aufrufbaren Dienst. Gibt bei Erfolg true
zurück, oder false
, wenn der Aufruf fehlschlägt.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.