QScxmlDynamicScxmlServiceFactory Class

The QScxmlDynamicScxmlServiceFactory class creates SCXML service instances from documents loaded at runtime. 更多...

头: #include <QScxmlDynamicScxmlServiceFactory>
qmake: QT += scxml
Since: Qt 5.8
继承: QScxmlInvokableServiceFactory

公共函数

QScxmlDynamicScxmlServiceFactory (const QScxmlExecutableContent::InvokeInfo & invokeInfo , const QVector<QScxmlExecutableContent::StringId> & 名称 , const QVector<QScxmlExecutableContent::ParameterInfo> & 参数 , QObject * parent = nullptr)

重实现公共函数

virtual QScxmlInvokableService * invoke (QScxmlStateMachine * parentStateMachine ) override

静态公共成员

const QMetaObject staticMetaObject

额外继承成员

详细描述

The QScxmlDynamicScxmlServiceFactory class creates SCXML service instances from documents loaded at runtime.

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> 元素。

成员函数文档编制

QScxmlDynamicScxmlServiceFactory:: QScxmlDynamicScxmlServiceFactory (const QScxmlExecutableContent::InvokeInfo & invokeInfo , const QVector < QScxmlExecutableContent::StringId > & 名称 , const QVector < QScxmlExecutableContent::ParameterInfo > & 参数 , QObject * parent = nullptr)

Creates a factory for dynamically resolved services, passing the attributes of the <invoke> element as invokeInfo , any <param> child elements as 参数 , the content of the 名称 attribute as 名称 ,和 QObject parent parent .

[override virtual] QScxmlInvokableService *QScxmlDynamicScxmlServiceFactory:: invoke ( QScxmlStateMachine * parentStateMachine )

重实现自 QScxmlInvokableServiceFactory::invoke ().