QScxmlInvokableService Class

QScxmlInvokableServiceクラスは、ステートマシンから呼び出されるサービスの基本クラスです。詳細...

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

プロパティ

パブリック機能

virtual QString id() const = 0
virtual QString name() const = 0
QScxmlStateMachine *parentStateMachine() const
virtual void postEvent(QScxmlEvent *event) = 0
virtual bool start() = 0

詳細説明

SCXML仕様書6.4 <invoke>に記述された機構により、ステートマシンからサービスが呼び出されるこのクラスは、呼び出されたサービスの実際のインスタンスを表現する。

プロパティ

[read-only] id : const QString

このプロパティは、起動可能なサービスの ID を保持する。

IDは、<invoke> 要素のid 属性で指定する。

アクセス関数:

virtual QString id() const = 0

[read-only] name : const QString

このプロパティは、呼び出されるサービスの名前を保持する。

アクセス関数です:

virtual QString name() const = 0

[read-only] parentStateMachine : QScxmlStateMachine* const

このプロパティは、サービスを起動した SCXML ステートマシンを保持します。

関数にアクセスします:

QScxmlStateMachine *parentStateMachine() const

メンバ関数ドキュメント

[pure virtual] void QScxmlInvokableService::postEvent(QScxmlEvent *event)

サービスにevent

[pure virtual] bool QScxmlInvokableService::start()

起動可能なサービスを開始する。成功すればtrue を返し、失敗すればfalse を返す。

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