1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-01 08:52:45 +00:00

WIP: logic rewrite

WIP: adding loaders
This commit is contained in:
Chris Josten 2021-03-24 20:04:03 +01:00
parent b9b08ab384
commit 2360b261f7
1769 changed files with 124903 additions and 1963 deletions

View file

@ -1,6 +1,29 @@
{{className}}::{{className}}() {}
{{className}}::{{className}}(const {{className}} &other) :
{{#each properties as |property|}}
{{property.memberName}}(other.{{property.memberName}})
{{#if property.isLast}}
{}
{{else}}
,
{{/if}}
{{/each}}
void {{className}}::replaceData({{className}} &other) {
{{#each properties as |property|}}
{{property.memberName}} = other.{{property.memberName}};
{{/each}}
}
{{className}} {{className}}::fromJson(QJsonObject source) {
{{className}} instance;
@ -39,13 +62,17 @@ void {{className}}::set{{property.writeName}}({{property.typeNameWithQualifiers}
}
{{#if property.isNullable}}
bool {{className}}::is{{property.writeName}}Null() const {
bool {{className}}::{{property.name}}Null() const {
return {{property.nullableCheck}};
}
void {{className}}::setNull() {
{{property.nullableSetter}};
void {{className}}::set{{property.writeName}}Null() {
{{property.memberName}}{{property.nullableSetter}};
}
{{/if}}
{{/each}}
} // NS DTO