QScxmlInvokableServiceFactory Class

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

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

QScxmlDynamicScxmlServiceFactory and QScxmlStaticScxmlServiceFactory

特性

  • invokeInfo : const QScxmlExecutableContent::InvokeInfo
  • names : const QVector<QScxmlExecutableContent::StringId>
  • 参数 : const QVector<QScxmlExecutableContent::ParameterInfo>

公共函数

QScxmlInvokableServiceFactory (const QScxmlExecutableContent::InvokeInfo & invokeInfo , const QVector<QScxmlExecutableContent::StringId> & names , const QVector<QScxmlExecutableContent::ParameterInfo> & 参数 , QObject * parent = nullptr)
virtual QScxmlInvokableService * invoke (QScxmlStateMachine * parentStateMachine ) = 0
const QScxmlExecutableContent::InvokeInfo & invokeInfo () const
const QVector<QScxmlExecutableContent::StringId> & names () const
const QVector<QScxmlExecutableContent::ParameterInfo> & 参数 () const

保护函数

QScxmlInvokableServiceFactory (QScxmlInvokableServiceFactoryPrivate & dd , QObject * parent )

额外继承成员

详细描述

QScxmlInvokableServiceFactory class creates invokable service instances.

Each service instance represents an <invoke> element in the SCXML document. Each time the service is actually invoked, a new instance of QScxmlInvokableService is created.

特性文档编制

invokeInfo : const QScxmlExecutableContent::InvokeInfo

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

访问函数:

const QScxmlExecutableContent::InvokeInfo & invokeInfo () const

names : const QVector < QScxmlExecutableContent::StringId >

This property holds the names passed to the constructor.

访问函数:

const QVector<QScxmlExecutableContent::StringId> & names () const

参数 : const QVector < QScxmlExecutableContent::ParameterInfo >

This property holds the parameters passed to the constructor.

访问函数:

const QVector<QScxmlExecutableContent::ParameterInfo> & 参数 () const

成员函数文档编制

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

Default constructs an instance of QScxmlInvokableServiceFactory.

[protected] QScxmlInvokableServiceFactory:: QScxmlInvokableServiceFactory ( QScxmlInvokableServiceFactoryPrivate & dd , QObject * parent )

Copy constructor.

[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.