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 |
詳細な説明
動的に解決されるサービスは、親の状態マシンが実行時にリクエストしたファイルからSCXMLコンテンツを読み込む際に、<invoke> 要素のsrcexpr 属性を通じて使用されます。
メンバー関数のドキュメント
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) を再実装します。
© 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.