このページでは

QScxmlInvokableServiceFactory Class

QScxmlInvokableServiceFactory クラスは、呼び出し可能なサービスインスタンスを作成します。詳細...

ヘッダー: #include <QScxmlInvokableServiceFactory>
CMake: find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmake: QT += scxml
継承元: QObject
継承元:

QScxmlDynamicScxmlServiceFactory およびQScxmlStaticScxmlServiceFactory

プロパティ

  • invokeInfo : const QScxmlExecutableContent::InvokeInfo
  • names : const QList<QScxmlExecutableContent::StringId>
  • parameters : const QList<QScxmlExecutableContent::ParameterInfo>

公開関数

virtual QScxmlInvokableService *invoke(QScxmlStateMachine *parentStateMachine) = 0
const QScxmlExecutableContent::InvokeInfo &invokeInfo() const
const QList<QScxmlExecutableContent::StringId> &names() const
const QList<QScxmlExecutableContent::ParameterInfo> &parameters() const

詳細な説明

各サービスインスタンスは、SCXMLドキュメント内の<invoke> 要素を表します。サービスが実際に呼び出されるたびに、QScxmlInvokableService の新しいインスタンスが作成されます。

プロパティのドキュメント

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

このプロパティには、コンストラクタに渡されたQScxmlExecutableContent::InvokeInfo が格納されます。

アクセス関数:

const QScxmlExecutableContent::InvokeInfo &invokeInfo() const

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

このプロパティには、コンストラクタに渡された名前が格納されます。

アクセス関数:

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

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

このプロパティには、コンストラクタに渡されたパラメータが格納されます。

アクセス関数:

const QList<QScxmlExecutableContent::ParameterInfo> &parameters() const

メンバ関数のドキュメント

[pure virtual] QScxmlInvokableService *QScxmlInvokableServiceFactory::invoke(QScxmlStateMachine *parentStateMachine)

コンストラクタで指定されたパラメータを使用してサービスを呼び出し、parentStateMachine を親として渡します。新しい呼び出し可能なサービスを返します。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.