In questa pagina

QScxmlInvokableServiceFactory Class

La classe QScxmlInvokableServiceFactory crea istanze di servizi invocabili. Per saperne di più...

Intestazione: #include <QScxmlInvokableServiceFactory>
CMake: find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmake: QT += scxml
Eredita da: QObject
Ereditato da:

QScxmlDynamicScxmlServiceFactory e QScxmlStaticScxmlServiceFactory

Proprietà

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

Funzioni pubbliche

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

Descrizione dettagliata

Ogni istanza del servizio rappresenta un elemento " <invoke> " nel documento SCXML. Ogni volta che il servizio viene effettivamente richiamato, viene creata una nuova istanza di " QScxmlInvokableService ".

Documentazione delle proprietà

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

Questa proprietà contiene l'oggetto ` QScxmlExecutableContent::InvokeInfo ` passato al costruttore.

Funzioni di accesso:

const QScxmlExecutableContent::InvokeInfo &invokeInfo() const

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

Questa proprietà contiene i nomi passati al costruttore.

Funzioni di accesso:

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

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

Questa proprietà contiene i parametri passati al costruttore.

Funzioni di accesso:

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

Documentazione sulle funzioni membro

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

Richiama il servizio con i parametri specificati nel costruttore, passando ` parentStateMachine ` come oggetto padre. Restituisce il nuovo servizio invocabile.

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