Qt SCXML C++ Classes

Provides classes to create and use state machines from SCXML files. 更多...

名称空间

QScxmlExecutableContent

Contains various types used to interpret executable content in state machines

QScxmlCompiler

Compiler for SCXML files

QScxmlCompiler::Loader

URI resolver and resource loader for an SCXML compiler

QScxmlCppDataModel

C++ data model for a Qt SCXML state machine

QScxmlDataModel

The data model base class for a Qt SCXML state machine

QScxmlDataModel::ForeachLoopBody

Represents a function to be executed on each iteration of an SCXML foreach loop

QScxmlDynamicScxmlServiceFactory

Creates SCXML service instances from documents loaded at runtime

QScxmlError

Describes the errors returned by the Qt SCXML state machine when parsing an SCXML file

QScxmlEvent

Event for a Qt SCXML state machine

QScxmlExecutableContent::AssignmentInfo

AssingmentInfo class represents a data assignment

QScxmlExecutableContent::EvaluatorInfo

Represents a unit of executable content

QScxmlExecutableContent::ForeachInfo

Represents a foreach construct

QScxmlExecutableContent::InvokeInfo

Represents a service invocation

QScxmlExecutableContent::ParameterInfo

Represents a parameter to a service invocation

QScxmlInvokableService

The base class for services called from state machines

QScxmlInvokableServiceFactory

Creates invokable service instances

QScxmlNullDataModel

The null data model for a Qt SCXML stateMachine

QScxmlStateMachine

Interface to the state machines created from SCXML files

QScxmlStaticScxmlServiceFactory

Creates SCXML service instances from precompiled documents

QScxmlTableData

Used by compiled state machines

详细描述

要包括模块类定义,使用以下伪指令:

#include <QScxmlStateMachine>
							

To use the module with cmake, use the find_package() 命令去定位所需模块组件,在 Qt6 包:

find_package(Qt6 COMPONENTS Scxml REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
							

要配置采用 qmake 构建模块,添加模块作为值为 QT 变量在工程 .pro 文件:

QT += scxml
							

更多信息,见 实例化状态机 .