aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/gtad.yaml
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-04 18:59:01 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-04 20:24:29 +0900
commitc5b3de1732ca49c78c8ed8cf77f9e9fa414d2f04 (patch)
tree315702f51cbd16caf57c00a3ba2947d72f04c846 /lib/jobs/gtad.yaml
parent33b1c4f9748f0d33da1d18a3abe861014c116b5c (diff)
downloadlibquotient-c5b3de1732ca49c78c8ed8cf77f9e9fa414d2f04.tar.gz
libquotient-c5b3de1732ca49c78c8ed8cf77f9e9fa414d2f04.zip
gtad.yaml: Support maps of events
Use std::unordered_map<> (now supported by GTAD and converters.h) for that.
Diffstat (limited to 'lib/jobs/gtad.yaml')
-rw-r--r--lib/jobs/gtad.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/jobs/gtad.yaml b/lib/jobs/gtad.yaml
index f606481e..788c0d91 100644
--- a/lib/jobs/gtad.yaml
+++ b/lib/jobs/gtad.yaml
@@ -94,8 +94,12 @@ analyzer:
imports: <QtCore/QVector>
- //: { type: QJsonArray, "avoidCopy?": true, imports: <QtCore/QJsonArray> }
map:
+ - /state_event.yaml$/:
+ type: "std::unordered_map<QString, {{1}}>"
+ noCopy?: true
+ imports: <unordered_map>
- /.+/:
- type: QHash<QString, {{1}}>
+ type: "QHash<QString, {{1}}>"
avoidCopy?: true
imports: <QtCore/QHash>
- //: