QScxmlEcmaScriptDataModel Class

The QScxmlEcmaScriptDataModel class is the ECMAScript data model for a Qt SCXML state machine. 更多...

头: #include <QScxmlEcmaScriptDataModel>
qmake: QT += scxml
Since: Qt 5.7
继承: QScxmlDataModel

公共函数

QScxmlEcmaScriptDataModel (QObject * parent = nullptr)

重实现公共函数

virtual void evaluateAssignment (QScxmlExecutableContent::EvaluatorId id , bool * ok ) override
virtual void evaluateForeach (QScxmlExecutableContent::EvaluatorId id , bool * ok , QScxmlDataModel::ForeachLoopBody * body ) override
virtual void evaluateInitialization (QScxmlExecutableContent::EvaluatorId id , bool * ok ) override
virtual bool evaluateToBool (QScxmlExecutableContent::EvaluatorId id , bool * ok ) override
virtual QString evaluateToString (QScxmlExecutableContent::EvaluatorId id , bool * ok ) override
virtual QVariant evaluateToVariant (QScxmlExecutableContent::EvaluatorId id , bool * ok ) override
virtual void evaluateToVoid (QScxmlExecutableContent::EvaluatorId id , bool * ok ) override
virtual bool hasScxmlProperty (const QString & name ) const override
virtual QVariant scxmlProperty (const QString & name ) const override
virtual void setScxmlEvent (const QScxmlEvent & event ) override
virtual bool setScxmlProperty (const QString & name , const QVariant & value , const QString & context ) override
virtual bool setup (const QVariantMap & initialDataValues ) override

静态公共成员

const QMetaObject staticMetaObject

额外继承成员

详细描述

The QScxmlEcmaScriptDataModel class is the ECMAScript data model for a Qt SCXML state machine.

This class implements the ECMAScript data model as described in SCXML Specification - B.2 The ECMAScript Data Model . It can be subclassed to perform custom initialization.

另请参阅 QScxmlStateMachine and QScxmlDataModel .

成员函数文档编制

QScxmlEcmaScriptDataModel:: QScxmlEcmaScriptDataModel ( QObject * parent = nullptr)

Creates a new ECMAScript data model, with the parent object parent .

[override virtual] void QScxmlEcmaScriptDataModel:: evaluateAssignment ( QScxmlExecutableContent::EvaluatorId id , bool * ok )

重实现自 QScxmlDataModel::evaluateAssignment ().

[override virtual] void QScxmlEcmaScriptDataModel:: evaluateForeach ( QScxmlExecutableContent::EvaluatorId id , bool * ok , QScxmlDataModel::ForeachLoopBody * body )

重实现自 QScxmlDataModel::evaluateForeach ().

[override virtual] void QScxmlEcmaScriptDataModel:: evaluateInitialization ( QScxmlExecutableContent::EvaluatorId id , bool * ok )

重实现自 QScxmlDataModel::evaluateInitialization ().

[override virtual] bool QScxmlEcmaScriptDataModel:: evaluateToBool ( QScxmlExecutableContent::EvaluatorId id , bool * ok )

重实现自 QScxmlDataModel::evaluateToBool ().

[override virtual] QString QScxmlEcmaScriptDataModel:: evaluateToString ( QScxmlExecutableContent::EvaluatorId id , bool * ok )

重实现自 QScxmlDataModel::evaluateToString ().

[override virtual] QVariant QScxmlEcmaScriptDataModel:: evaluateToVariant ( QScxmlExecutableContent::EvaluatorId id , bool * ok )

重实现自 QScxmlDataModel::evaluateToVariant ().

[override virtual] void QScxmlEcmaScriptDataModel:: evaluateToVoid ( QScxmlExecutableContent::EvaluatorId id , bool * ok )

重实现自 QScxmlDataModel::evaluateToVoid ().

[override virtual] bool QScxmlEcmaScriptDataModel:: hasScxmlProperty (const QString & name ) const

重实现自 QScxmlDataModel::hasScxmlProperty ().

[override virtual] QVariant QScxmlEcmaScriptDataModel:: scxmlProperty (const QString & name ) const

重实现自 QScxmlDataModel::scxmlProperty ().

另请参阅 setScxmlProperty ().

[override virtual] void QScxmlEcmaScriptDataModel:: setScxmlEvent (const QScxmlEvent & event )

重实现自 QScxmlDataModel::setScxmlEvent ().

[override virtual] bool QScxmlEcmaScriptDataModel:: setScxmlProperty (const QString & name , const QVariant & value , const QString & context )

重实现自 QScxmlDataModel::setScxmlProperty ().

另请参阅 scxmlProperty ().

[override virtual] bool QScxmlEcmaScriptDataModel:: setup (const QVariantMap & initialDataValues )

重实现自 QScxmlDataModel::setup ().

注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .