File: cppdatamodel.t

package info (click to toggle)
qt6-scxml 6.9.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,772 kB
  • sloc: cpp: 28,750; javascript: 330; sh: 95; python: 78; makefile: 26
file content (34 lines) | stat: -rw-r--r-- 747 bytes parent folder | download | duplicates (5)
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;
}