summaryrefslogtreecommitdiffstats
path: root/tools/qscxmlc/cppdatamodel.t
blob: 2ca5b16982513cc829c3445b2826a9d567b13d96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
QString ${datamodel}::evaluateToString(QScxmlExecutableContent::EvaluatorId id, bool *ok)
{
    *ok = true;
${evaluateToStringCases}
    Q_UNREACHABLE();
    *ok = false;
    return QString();
}

bool ${datamodel}::evaluateToBool(QScxmlExecutableContent::EvaluatorId id, bool *ok)
{
    *ok = true;
${evaluateToBoolCases}
    Q_UNREACHABLE();
    *ok = false;
    return false;
}

QVariant ${datamodel}::evaluateToVariant(QScxmlExecutableContent::EvaluatorId id, bool *ok)
{
    *ok = true;
${evaluateToVariantCases}
    Q_UNREACHABLE();
    *ok = false;
    return QVariant();
}

void ${datamodel}::evaluateToVoid(QScxmlExecutableContent::EvaluatorId id, bool *ok)
{
    *ok = true;
${evaluateToVoidCases}
    Q_UNREACHABLE();
    *ok = false;
}