QScxmlInvokableServiceFactory Class

Die Klasse QScxmlInvokableServiceFactory erzeugt aufrufbare Dienstinstanzen. Mehr...

Kopfzeile: #include <QScxmlInvokableServiceFactory>
CMake: find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmake: QT += scxml
Vererbt: QObject
Vererbt von:

QScxmlDynamicScxmlServiceFactory und QScxmlStaticScxmlServiceFactory

Eigenschaften

  • invokeInfo : const QScxmlExecutableContent::InvokeInfo
  • names : const QList<QScxmlExecutableContent::StringId>
  • parameters : const QList<QScxmlExecutableContent::ParameterInfo>

Öffentliche Funktionen

virtual QScxmlInvokableService *invoke(QScxmlStateMachine *parentStateMachine) = 0
const QScxmlExecutableContent::InvokeInfo &invokeInfo() const
const QList<QScxmlExecutableContent::StringId> &names() const
const QList<QScxmlExecutableContent::ParameterInfo> &parameters() const

Detaillierte Beschreibung

Jede Dienstinstanz stellt ein Element <invoke> im SCXML-Dokument dar. Jedes Mal, wenn der Dienst tatsächlich aufgerufen wird, wird eine neue Instanz von QScxmlInvokableService erstellt.

Eigenschaft Dokumentation

[read-only] invokeInfo : const QScxmlExecutableContent::InvokeInfo

Diese Eigenschaft enthält die QScxmlExecutableContent::InvokeInfo, die an den Konstruktor übergeben wird.

Zugriffsfunktionen:

const QScxmlExecutableContent::InvokeInfo &invokeInfo() const

[read-only] names : const QList<QScxmlExecutableContent::StringId>

Diese Eigenschaft enthält die Namen, die an den Konstruktor übergeben werden.

Zugriffsfunktionen:

const QList<QScxmlExecutableContent::StringId> &names() const

[read-only] parameters : const QList<QScxmlExecutableContent::ParameterInfo>

Diese Eigenschaft enthält die an den Konstruktor übergebenen Parameter.

Zugriffsfunktionen:

const QList<QScxmlExecutableContent::ParameterInfo> &parameters() const

Dokumentation der Mitgliedsfunktionen

[pure virtual] QScxmlInvokableService *QScxmlInvokableServiceFactory::invoke(QScxmlStateMachine *parentStateMachine)

Ruft den Dienst mit den im Konstruktor angegebenen Parametern auf, wobei parentStateMachine als übergeordnetes Element übergeben wird. Gibt den neuen aufrufbaren Dienst zurück.

© 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.