2021-03-19 22:01:29 +00:00
|
|
|
{{#each userImports as |userClass|}}
|
|
|
|
{{#if userClass != className}}
|
|
|
|
class {{className}};
|
|
|
|
|
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
|
|
|
|
2021-03-20 02:30:50 +00:00
|
|
|
class {{className}} {
|
2021-03-19 22:01:29 +00:00
|
|
|
public:
|
2021-03-20 02:30:50 +00:00
|
|
|
explicit {{className}}();
|
|
|
|
static {{className}} fromJson(QJsonObject source);
|
|
|
|
void setFromJson(QJsonObject source);
|
|
|
|
QJsonObject toJson();
|
2021-03-19 22:01:29 +00:00
|
|
|
|
|
|
|
// Properties
|
|
|
|
|
|
|
|
{{#each properties as |p|}}
|
|
|
|
{{#if p.description.length > 0}}
|
|
|
|
/**
|
|
|
|
* @brief {{p.description}}
|
|
|
|
|
|
|
|
*/
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{p.typeNameWithQualifiers}} {{p.name}}() const;
|
|
|
|
|
2021-03-20 02:30:50 +00:00
|
|
|
{{#if p.description.length > 0}}
|
|
|
|
/**
|
|
|
|
* @brief {{p.description}}
|
2021-03-19 22:01:29 +00:00
|
|
|
|
2021-03-20 02:30:50 +00:00
|
|
|
*/
|
|
|
|
{{/if}}
|
2021-03-19 22:01:29 +00:00
|
|
|
|
2021-03-20 02:30:50 +00:00
|
|
|
void set{{p.writeName}}({{p.typeNameWithQualifiers}} new{{p.writeName}});
|
2021-03-19 22:01:29 +00:00
|
|
|
|
2021-03-20 02:30:50 +00:00
|
|
|
{{#if p.isNullable}}
|
|
|
|
bool is{{p.writeName}}Null() const;
|
|
|
|
void set{{p.writeName}}Null();
|
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
2021-03-19 22:01:29 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
{{#each properties as |p|}}
|
|
|
|
{{#if p.defaultInitializer.length > 0}}
|
|
|
|
{{p.typeNameWithQualifiers}} {{p.memberName}} = {{p.defaultInitializer}};
|
|
|
|
{{else}}
|
|
|
|
{{p.typeNameWithQualifiers}} {{p.memberName}};
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{/each}}
|
|
|
|
};
|