The QScxmlInvokableServiceFactory class creates invokable service instances. 更多...
| 头: | #include <QScxmlInvokableServiceFactory> |
| qmake: | QT += scxml |
| Since: | Qt 5.8 |
| 继承: | QObject |
| 继承者: |
QScxmlDynamicScxmlServiceFactory and QScxmlStaticScxmlServiceFactory |
该类在 Qt 5.8 引入。
| virtual QScxmlInvokableService * | invoke (QScxmlStateMachine * parentStateMachine ) = 0 |
| const QScxmlExecutableContent::InvokeInfo & | invokeInfo () const |
| const QVector<QScxmlExecutableContent::StringId> & | 名称 () const |
| const QVector<QScxmlExecutableContent::ParameterInfo> & | 参数 () const |
Each service instance represents an
<invoke>
element in the SCXML document. Each time the service is actually invoked, a new instance of
QScxmlInvokableService
被创建。
此特性保持 QScxmlExecutableContent::InvokeInfo passed to the constructor.
访问函数:
| const QScxmlExecutableContent::InvokeInfo & | invokeInfo () const |
This property holds the names passed to the constructor.
访问函数:
| const QVector<QScxmlExecutableContent::StringId> & | 名称 () const |
This property holds the parameters passed to the constructor.
访问函数:
| const QVector<QScxmlExecutableContent::ParameterInfo> & | 参数 () const |
[pure virtual]
QScxmlInvokableService
*QScxmlInvokableServiceFactory::
invoke
(
QScxmlStateMachine
*
parentStateMachine
)
Invokes the service with the parameters given in the constructor, passing parentStateMachine as the parent. Returns the new invokable service.