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