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:
parent
b9b08ab384
commit
2360b261f7
1769 changed files with 124903 additions and 1963 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue