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
을 반환합니다.
© 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.