Sur cette page

QScxmlInvokableServiceFactory Class

La classe `QScxmlInvokableServiceFactory` crée des instances de services invocables. En savoir plus...

En-tête : #include <QScxmlInvokableServiceFactory>
CMake : find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmake : QT += scxml
Hérite de : QObject
Hérité par :

QScxmlDynamicScxmlServiceFactory et QScxmlStaticScxmlServiceFactory

Propriétés

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

Fonctions publiques

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

Description détaillée

Chaque instance de service représente un élément « <invoke> » dans le document SCXML. Chaque fois que le service est effectivement appelé, une nouvelle instance de « QScxmlInvokableService » est créée.

Documentation des propriétés

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

Cette propriété contient l'QScxmlExecutableContent::InvokeInfo e transmise au constructeur.

Fonctions d'accès :

const QScxmlExecutableContent::InvokeInfo &invokeInfo() const

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

Cette propriété contient les noms transmis au constructeur.

Fonctions d'accès :

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

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

Cette propriété contient les paramètres transmis au constructeur.

Fonctions d'accès :

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

Documentation sur les fonctions membres

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

Appelle le service avec les paramètres fournis dans le constructeur, en lui transmettant ` parentStateMachine ` comme parent. Renvoie le nouveau service invocable.

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