QScxmlInvokableServiceFactory Class

QScxmlInvokableServiceFactory 클래스는 호출 가능한 서비스 인스턴스를 생성합니다. 더 보기...

Header: #include <QScxmlInvokableServiceFactory>
CMake: find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmake: QT += scxml
상속합니다: QObject
상속 대상

QScxmlDynamicScxmlServiceFactoryQScxmlStaticScxmlServiceFactory

속성

  • 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 을 부모로 전달합니다. 호출 가능한 새 서비스를 반환합니다.

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