All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cpp-qt5-qhttpengine-server.model-header.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
{{>licenseInfo}}
{{#models}}{{#model}}/*
 * {{classname}}.h
 *
 * {{description}}
 */

#ifndef {{classname}}_H
#define {{classname}}_H

#include 

{{/model}}{{/models}}
{{#imports}}{{{import}}}
{{/imports}}

#include "{{prefix}}Object.h"

{{#models}}
{{#model}}
{{#cppNamespaceDeclarations}}
namespace {{this}} {
{{/cppNamespaceDeclarations}}

class {{classname}}: public {{prefix}}Object {
public:
    {{classname}}();
    {{classname}}(QString json);
    ~{{classname}}() override;
    void init();

    QString asJson () const override;
    QJsonObject asJsonObject() const override;
    void fromJsonObject(QJsonObject json) override;
    void fromJson(QString jsonString) override;

    {{#vars}}
    {{{dataType}}} {{getter}}() const;
    void {{setter}}(const {{{dataType}}} &{{name}});

    {{/vars}}
    virtual bool isSet() const override;

private:
    {{#vars}}
    {{{dataType}}} {{name}};
    bool m_{{name}}_isSet;

    {{/vars}}
};

{{#cppNamespaceDeclarations}}
}
{{/cppNamespaceDeclarations}}

#endif // {{classname}}_H
{{/model}}
{{/models}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy