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 )

額外繼承成員

詳細描述

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 .

[虛擬] QScxmlInvokableService *QScxmlDynamicScxmlServiceFactory:: invoke ( QScxmlStateMachine * parentStateMachine )

重實現自 QScxmlInvokableServiceFactory::invoke ().