이 페이지에서

QScxmlDynamicScxmlServiceFactory Class

QScxmlDynamicScxmlServiceFactory 클래스는 런타임에 로드된 문서로부터 SCXML 서비스 인스턴스를 생성합니다. 더 보기...

헤더: #include <QScxmlDynamicScxmlServiceFactory>
CMake: find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmake: QT += scxml
상속: QScxmlInvokableServiceFactory

공개 함수

QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> &parameters, QObject *parent = nullptr)

재구현된 공용 함수

virtual QScxmlInvokableService *invoke(QScxmlStateMachine *parentStateMachine) override

상세 설명

동적으로 해결되는 서비스는 상위 상태 머신이 런타임에 요청하는 파일에서 SCXML 콘텐츠를 로드할 때, ` <invoke> ` 요소의 ` srcexpr ` 속성을 통해 사용됩니다.

멤버 함수 설명

QScxmlDynamicScxmlServiceFactory::QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> &parameters, QObject *parent = nullptr)

동적으로 해결되는 서비스용 팩토리를 생성하며, ` <invoke> ` 요소의 속성을 ` invokeInfo`로, ` <param> ` 자식 요소들을 ` parameters`로, ` names ` 속성의 내용을 ` names`로, 그리고 ` QObject ` 상위 요소를 ` parent`로 전달합니다.

[override virtual] QScxmlInvokableService *QScxmlDynamicScxmlServiceFactory::invoke(QScxmlStateMachine *parentStateMachine)

QScxmlInvokableServiceFactory::invoke(QScxmlStateMachine *parentStateMachine)를 재구현합니다.

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