QScxmlInvokableServiceFactory Class

The QScxmlInvokableServiceFactory class creates invokable service instances. 更多...

头: #include <QScxmlInvokableServiceFactory>
CMake: find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmake: QT += scxml
继承: QObject
继承者:

QScxmlDynamicScxmlServiceFactory and QScxmlStaticScxmlServiceFactory

特性

  • invokeInfo : const QScxmlExecutableContent::InvokeInfo
  • 名称 : const QList<QScxmlExecutableContent::StringId>
  • 参数 : const QList<QScxmlExecutableContent::ParameterInfo>

公共函数

virtual QScxmlInvokableService * invoke (QScxmlStateMachine * parentStateMachine ) = 0
const QScxmlExecutableContent::InvokeInfo & invokeInfo () const
const QList<QScxmlExecutableContent::StringId> & 名称 () const
const QList<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 被创建。

特性文档编制

[read-only] invokeInfo : const QScxmlExecutableContent::InvokeInfo

此特性保持 QScxmlExecutableContent::InvokeInfo passed to the constructor.

访问函数:

const QScxmlExecutableContent::InvokeInfo & invokeInfo () const

[read-only] 名称 : const QList < QScxmlExecutableContent::StringId >

This property holds the names passed to the constructor.

访问函数:

const QList<QScxmlExecutableContent::StringId> & 名称 () const

[read-only] 参数 : const QList < QScxmlExecutableContent::ParameterInfo >

This property holds the parameters passed to the constructor.

访问函数:

const QList<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.