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.