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.