QScxmlDynamicScxmlServiceFactory Class
La classe QScxmlDynamicScxmlServiceFactory crea istanze di servizio SCXML a partire da documenti caricati in fase di esecuzione. Per saperne di più...
| Intestazione: | #include <QScxmlDynamicScxmlServiceFactory> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Scxml) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
| qmake: | QT += scxml |
| Eredita da: | QScxmlInvokableServiceFactory |
Funzioni pubbliche
| QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> ¶meters, QObject *parent = nullptr) |
Funzioni pubbliche reimplementate
| virtual QScxmlInvokableService * | invoke(QScxmlStateMachine *parentStateMachine) override |
Descrizione dettagliata
I servizi risolti dinamicamente vengono utilizzati durante il caricamento di contenuti SCXML da file richiesti da una macchina a stati genitrice in fase di esecuzione, tramite l'attributo ` srcexpr ` nell'elemento ` <invoke> `.
Documentazione delle funzioni membro
QScxmlDynamicScxmlServiceFactory::QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> ¶meters, QObject *parent = nullptr)
Crea una factory per i servizi risolti dinamicamente, passando gli attributi dell'elemento <invoke> come invokeInfo, eventuali elementi figlio <param> come parameters, il contenuto dell'attributo names come names e l'elemento padre QObject come parent.
[override virtual] QScxmlInvokableService *QScxmlDynamicScxmlServiceFactory::invoke(QScxmlStateMachine *parentStateMachine)
Reimplementa: 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.