QScxmlDynamicScxmlServiceFactory Class
A classe QScxmlDynamicScxmlServiceFactory cria instâncias de serviço SCXML a partir de documentos carregados em tempo de execução. Saiba mais...
| Cabeçalho: | #include <QScxmlDynamicScxmlServiceFactory> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Scxml) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
| qmake: | QT += scxml |
| Herdado de: | QScxmlInvokableServiceFactory |
Funções públicas
| QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> ¶meters, QObject *parent = nullptr) |
Funções públicas reimplementadas
| virtual QScxmlInvokableService * | invoke(QScxmlStateMachine *parentStateMachine) override |
Descrição detalhada
Os serviços resolvidos dinamicamente são utilizados ao carregar conteúdo SCXML de arquivos solicitados por uma máquina de estados pai em tempo de execução, por meio do atributo ` srcexpr ` no elemento ` <invoke> `.
Documentação das funções de membro
QScxmlDynamicScxmlServiceFactory::QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> ¶meters, QObject *parent = nullptr)
Cria uma fábrica para serviços resolvidos dinamicamente, passando os atributos do elemento <invoke> como invokeInfo, quaisquer elementos filhos <param> como parameters, o conteúdo do atributo names como names e o elemento pai QObject como 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.