QScxmlDynamicScxmlServiceFactory Class
Die Klasse QScxmlDynamicScxmlServiceFactory erzeugt SCXML-Dienstinstanzen aus zur Laufzeit geladenen Dokumenten. Mehr...
Kopfzeile: | #include <QScxmlDynamicScxmlServiceFactory> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Scxml) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
qmake: | QT += scxml |
Vererbungen: | QScxmlInvokableServiceFactory |
Öffentliche Funktionen
QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> ¶meters, QObject *parent = nullptr) |
Reimplementierte öffentliche Funktionen
virtual QScxmlInvokableService * | invoke(QScxmlStateMachine *parentStateMachine) override |
Detaillierte Beschreibung
Dynamisch aufgelöste Dienste werden beim Laden von SCXML-Inhalten aus Dateien verwendet, die ein übergeordneter Zustandsautomat zur Laufzeit über das Attribut srcexpr
im Element <invoke>
anfordert.
Dokumentation der Mitgliedsfunktionen
QScxmlDynamicScxmlServiceFactory::QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> ¶meters, QObject *parent = nullptr)
Erstellt eine Fabrik für dynamisch aufgelöste Dienste und übergibt die Attribute des Elements <invoke>
als invokeInfo, alle untergeordneten Elemente von <param>
als parameters, den Inhalt des Attributs names
als names und das übergeordnete Element QObject als parent.
[override virtual]
QScxmlInvokableService *QScxmlDynamicScxmlServiceFactory::invoke(QScxmlStateMachine *parentStateMachine)
Reimplements: QScxmlInvokableServiceFactory::invoke(QScxmlStateMachine *parentStateMachine).
© 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.