QScxmlInvokableService Class
QScxmlInvokableService クラスは、ステートマシンから呼び出されるサービスの基底クラスです。詳細...
| ヘッダー: | #include <QScxmlInvokableService> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Scxml) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
| qmake: | QT += scxml |
| 継承元: | QObject |
プロパティ
- id : const QString
- name : const QString
- parentStateMachine : QScxmlStateMachine* const
公開関数
| 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 を返します。
© 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.