Класс QScxmlInvokableServiceFactory
Класс QScxmlInvokableServiceFactory создаёт экземпляры вызываемых сервисов. Подробнее...
| Заголовок: | #include <QScxmlInvokableServiceFactory> |
| CMake: | find_package(Qt6 COMPONENTS Scxml REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
| qmake: | QT += scxml |
| С момента: | Qt 5.8 |
| Наследуется от: | QObject |
| Наследует: | QScxmlDynamicScxmlServiceFactory и QScxmlStaticScxmlServiceFactory |
Свойства
- 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 |
Подробное описание
Каждый экземпляр сервиса представляет элемент <invoke> в документе SCXML. Каждый раз, когда сервис вызывается, создаётся новый экземпляр 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 в качестве родительского. Возвращает новый вызываемый сервис.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qscxmlinvokableservicefactory.html