The QScxmlEcmaScriptDataModel class is the ECMAScript data model for a Qt SCXML state machine. 更多...
头: | #include <QScxmlEcmaScriptDataModel> |
qmake: | QT += scxml |
Since: | Qt 5.7 |
继承: | QScxmlDataModel |
该类在 Qt 5.7 引入。
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 |
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 .
Creates a new ECMAScript data model, with the parent object parent .
[override virtual]
void
QScxmlEcmaScriptDataModel::
evaluateAssignment
(
QScxmlExecutableContent::EvaluatorId
id
,
bool
*
ok
)
重实现: QScxmlDataModel::evaluateAssignment (QScxmlExecutableContent::EvaluatorId id, bool *ok).
[override virtual]
void
QScxmlEcmaScriptDataModel::
evaluateForeach
(
QScxmlExecutableContent::EvaluatorId
id
,
bool
*
ok
,
QScxmlDataModel::ForeachLoopBody
*
body
)
重实现: QScxmlDataModel::evaluateForeach (QScxmlExecutableContent::EvaluatorId id, bool *ok, QScxmlDataModel::ForeachLoopBody *body).
[override virtual]
void
QScxmlEcmaScriptDataModel::
evaluateInitialization
(
QScxmlExecutableContent::EvaluatorId
id
,
bool
*
ok
)
重实现: QScxmlDataModel::evaluateInitialization (QScxmlExecutableContent::EvaluatorId id, bool *ok).
[override virtual]
bool
QScxmlEcmaScriptDataModel::
evaluateToBool
(
QScxmlExecutableContent::EvaluatorId
id
,
bool
*
ok
)
重实现: QScxmlDataModel::evaluateToBool (QScxmlExecutableContent::EvaluatorId id, bool *ok).
[override virtual]
QString
QScxmlEcmaScriptDataModel::
evaluateToString
(
QScxmlExecutableContent::EvaluatorId
id
,
bool
*
ok
)
重实现: QScxmlDataModel::evaluateToString (QScxmlExecutableContent::EvaluatorId id, bool *ok).
[override virtual]
QVariant
QScxmlEcmaScriptDataModel::
evaluateToVariant
(
QScxmlExecutableContent::EvaluatorId
id
,
bool
*
ok
)
重实现: QScxmlDataModel::evaluateToVariant (QScxmlExecutableContent::EvaluatorId id, bool *ok).
[override virtual]
void
QScxmlEcmaScriptDataModel::
evaluateToVoid
(
QScxmlExecutableContent::EvaluatorId
id
,
bool
*
ok
)
重实现: QScxmlDataModel::evaluateToVoid (QScxmlExecutableContent::EvaluatorId id, bool *ok).
[override virtual]
bool
QScxmlEcmaScriptDataModel::
hasScxmlProperty
(const
QString
&
name
) const
重实现: QScxmlDataModel::hasScxmlProperty (const QString &name) const.
[override virtual]
QVariant
QScxmlEcmaScriptDataModel::
scxmlProperty
(const
QString
&
name
) const
重实现: QScxmlDataModel::scxmlProperty (const QString &name) const.
另请参阅 setScxmlProperty ().
[override virtual]
void
QScxmlEcmaScriptDataModel::
setScxmlEvent
(const
QScxmlEvent
&
event
)
重实现: QScxmlDataModel::setScxmlEvent (const QScxmlEvent &event).
[override virtual]
bool
QScxmlEcmaScriptDataModel::
setScxmlProperty
(const
QString
&
name
, const
QVariant
&
value
, const
QString
&
context
)
重实现: QScxmlDataModel::setScxmlProperty (const QString &name, const QVariant &value, const QString &context).
另请参阅 scxmlProperty ().
[override virtual]
bool
QScxmlEcmaScriptDataModel::
setup
(const
QVariantMap
&
initialDataValues
)
重实现: QScxmlDataModel::setup (const QVariantMap &initialDataValues).