QScxmlDynamicScxmlServiceFactory Class
Die Klasse „QScxmlDynamicScxmlServiceFactory“ erstellt SCXML-Dienstinstanzen aus Dokumenten, die zur Laufzeit geladen werden. Mehr...
| Kopfzeile: | #include <QScxmlDynamicScxmlServiceFactory> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Scxml) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
| qmake: | QT += scxml |
| Erbt von: | QScxmlInvokableServiceFactory |
Öffentliche Funktionen
| QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> ¶meters, QObject *parent = nullptr) |
Neu implementierte öffentliche Funktionen
| virtual QScxmlInvokableService * | invoke(QScxmlStateMachine *parentStateMachine) override |
Ausführliche Beschreibung
Dynamisch aufgelöste Dienste werden beim Laden von SCXML -Inhalten aus Dateien verwendet, die eine übergeordnete Zustandsmaschine zur Laufzeit über das Attribut „ srcexpr “ im Element „ <invoke> “ anfordert.
Dokumentation zu den Mitgliedsfunktionen
QScxmlDynamicScxmlServiceFactory::QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> ¶meters, QObject *parent = nullptr)
Erstellt eine Factory für dynamisch aufgelöste Dienste, wobei die Attribute des Elements „ <invoke> “ als „ invokeInfo “, alle untergeordneten Elemente vom Typ „ <param> “ als „ parameters “, der Inhalt des Attributs „ names “ als „ names “ und das übergeordnete Element „ QObject “ als „ parent “ übergeben werden.
[override virtual] QScxmlInvokableService *QScxmlDynamicScxmlServiceFactory::invoke(QScxmlStateMachine *parentStateMachine)
Implementiert: ` QScxmlInvokableServiceFactory::invoke` (`QScxmlStateMachine *parentStateMachine`).
© 2026 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.