QScxmlDynamicScxmlServiceFactory 类

QScxmlDynamicScxmlServiceFactory 类创建 SCXML 服务实例,这些实例是从运行时加载的文档中实例化的。更多...

头文件 #include <QScxmlDynamicScxmlServiceFactory>
CMakefind_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmakeQT += scxml
继承自 QScxmlInvokableServiceFactory

公共函数

QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> &parameters, QObject *parent = nullptr)

重实现的公共函数

virtual QScxmlInvokableService *invoke(QScxmlStateMachine *parentStateMachine) override

详细描述

Dynamically resolved services are used when loading SCXML content from files that a parent state machine requests at runtime, via the srcexpr attribute in the <invoke> element.

成员函数文档

QScxmlDynamicScxmlServiceFactory::QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> &parameters, QObject *parent = nullptr)

创建用于动态解析服务的工厂,将 <invoke> 元素的属性传递给 invokeInfo,将任何 <param> 子元素作为 parameters,将 names 属性的内容作为 names,以及 QObjectparent

[重写虚函数] QScxmlInvokableService *QScxmlDynamicScxmlServiceFactory::invoke(QScxmlStateMachine *parentStateMachine)

重实现了: QScxmlInvokableServiceFactory::invoke(QScxmlStateMachine *parentStateMachine).

© 2024 The Qt Company Ltd. 本文档中包含的贡献的版权归各所有者所有。提供的文档在自由软件基金会的条款下许可,具体为GNU自由文档许可证版本1.3。Qt及其相关标志为芬兰及/或其他国家的The Qt Company Ltd.的商标。所有其他商标均为各自所有者的财产。