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> ¶meters, QObject *parent = nullptr) |
재구현된 공용 함수
virtual QScxmlInvokableService * | invoke(QScxmlStateMachine *parentStateMachine) override |
상세 설명
동적으로 확인된 서비스는 <invoke>
요소의 srcexpr
속성을 통해 부모 상태 머신이 런타임에 요청하는 파일에서 SCXML 콘텐츠를 로드할 때 사용됩니다.
멤버 함수 문서
QScxmlDynamicScxmlServiceFactory::QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> ¶meters, QObject *parent = nullptr)
<invoke>
요소의 속성을 invokeInfo 으로, <param>
하위 요소를 parameters 으로, names
속성의 콘텐츠를 names 으로, QObject 부모 parent 로 전달하여 동적으로 확인된 서비스에 대한 팩토리를 생성합니다.
[override virtual]
QScxmlInvokableService *QScxmlDynamicScxmlServiceFactory::invoke(QScxmlStateMachine *parentStateMachine)
다시 구현합니다: QScxmlInvokableServiceFactory::invoke(QScxmlStateMachine *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.