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 )
virtual void evaluateForeach (QScxmlExecutableContent::EvaluatorId id , bool * ok , ForeachLoopBody * body )
virtual void evaluateInitialization (QScxmlExecutableContent::EvaluatorId id , bool * ok )
virtual bool evaluateToBool (QScxmlExecutableContent::EvaluatorId id , bool * ok )
virtual QString evaluateToString (QScxmlExecutableContent::EvaluatorId id , bool * ok )
virtual QVariant evaluateToVariant (QScxmlExecutableContent::EvaluatorId id , bool * ok )
virtual void evaluateToVoid (QScxmlExecutableContent::EvaluatorId id , bool * ok )
virtual bool hasScxmlProperty (const QString & name ) const
virtual QVariant scxmlProperty (const QString & name ) const
virtual void setScxmlEvent (const QScxmlEvent & event )
virtual bool setScxmlProperty (const QString & name , const QVariant & value , const QString & context )
virtual bool setup (const QVariantMap & initialDataValues )

额外继承成员

详细描述

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 .

[虚拟] void QScxmlEcmaScriptDataModel:: evaluateAssignment ( QScxmlExecutableContent::EvaluatorId id , bool * ok )

重实现自 QScxmlDataModel::evaluateAssignment ().

[虚拟] void QScxmlEcmaScriptDataModel:: evaluateForeach ( QScxmlExecutableContent::EvaluatorId id , bool * ok , ForeachLoopBody * body )

重实现自 QScxmlDataModel::evaluateForeach ().

[虚拟] void QScxmlEcmaScriptDataModel:: evaluateInitialization ( QScxmlExecutableContent::EvaluatorId id , bool * ok )

重实现自 QScxmlDataModel::evaluateInitialization ().

[虚拟] bool QScxmlEcmaScriptDataModel:: evaluateToBool ( QScxmlExecutableContent::EvaluatorId id , bool * ok )

重实现自 QScxmlDataModel::evaluateToBool ().

[虚拟] QString QScxmlEcmaScriptDataModel:: evaluateToString ( QScxmlExecutableContent::EvaluatorId id , bool * ok )

重实现自 QScxmlDataModel::evaluateToString ().

[虚拟] QVariant QScxmlEcmaScriptDataModel:: evaluateToVariant ( QScxmlExecutableContent::EvaluatorId id , bool * ok )

重实现自 QScxmlDataModel::evaluateToVariant ().

[虚拟] void QScxmlEcmaScriptDataModel:: evaluateToVoid ( QScxmlExecutableContent::EvaluatorId id , bool * ok )

重实现自 QScxmlDataModel::evaluateToVoid ().

[虚拟] bool QScxmlEcmaScriptDataModel:: hasScxmlProperty (const QString & name ) const

重实现自 QScxmlDataModel::hasScxmlProperty ().

[虚拟] QVariant QScxmlEcmaScriptDataModel:: scxmlProperty (const QString & name ) const

重实现自 QScxmlDataModel::scxmlProperty ().

另请参阅 setScxmlProperty ().

[虚拟] void QScxmlEcmaScriptDataModel:: setScxmlEvent (const QScxmlEvent & event )

重实现自 QScxmlDataModel::setScxmlEvent ().

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

重实现自 QScxmlDataModel::setScxmlProperty ().

另请参阅 scxmlProperty ().

[虚拟] bool QScxmlEcmaScriptDataModel:: setup (const QVariantMap & initialDataValues )

重实现自 QScxmlDataModel::setup ().