diff options
Diffstat (limited to 'lib/csapi/{{base}}.h.mustache')
-rw-r--r-- | lib/csapi/{{base}}.h.mustache | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/csapi/{{base}}.h.mustache b/lib/csapi/{{base}}.h.mustache index 38d80669..0b7de817 100644 --- a/lib/csapi/{{base}}.h.mustache +++ b/lib/csapi/{{base}}.h.mustache @@ -2,11 +2,10 @@ #pragma once {{#operations}}#include "jobs/basejob.h" -{{/operations}} -{{#imports}}#include {{_}} -{{/imports}}{{#models}} -#include "converters.h" +{{/operations}}{{#models}}#include "converters.h" {{/models}} +{{#imports}}#include {{_}} +{{/imports}} namespace QMatrixClient { {{#models}} // Data structures @@ -16,7 +15,9 @@ namespace QMatrixClient { {{#vars}}{{#description}} /// {{_}} {{/description}} {{>maybeOmittableType}} {{nameCamelCase}}; -{{/vars}} }; +{{/vars}}{{#propertyMap}}{{#description}} /// {{_}} +{{/description}} {{>maybeOmittableType}} {{nameCamelCase}}; +{{/propertyMap}} }; {{#in?}} QJsonObject toJson(const {{name}}& pod); {{/in?}}{{#out?}} @@ -38,9 +39,11 @@ namespace QMatrixClient /// {{_}}{{/description}} struct {{name}}{{#parents?}} : {{#parents}}{{name}}{{>cjoin}}{{/parents}}{{/parents?}} { -{{#vars}}{{#description}} /// {{_}} +{{#vars}}{{#description}} /// {{_}} +{{/description}} {{>maybeOmittableType}} {{nameCamelCase}}; +{{/vars}}{{#propertyMap}}{{#description}} /// {{_}} {{/description}} {{>maybeOmittableType}} {{nameCamelCase}}; -{{/vars}} }; +{{/propertyMap}} }; {{/ model}} // Construction/destruction {{/ models}}{{#allParams?}} |