qt5cpp.model-header.mustache Maven / Gradle / Ivy
The newest version!
{{>licenseInfo}}
{{#models}}{{#model}}/*
* {{classname}}.h
*
* {{description}}
*/
#ifndef {{classname}}_H_
#define {{classname}}_H_
#include
{{/model}}{{/models}}
{{#imports}}{{{import}}}
{{/imports}}
#include "SWGObject.h"
{{#models}}{{#model}}
namespace Swagger {
class {{classname}}: public SWGObject {
public:
{{classname}}();
{{classname}}(QString* json);
virtual ~{{classname}}();
void init();
void cleanup();
QString asJson ();
QJsonObject* asJsonObject();
void fromJsonObject(QJsonObject &json);
{{classname}}* fromJson(QString &jsonString);
{{#vars}}{{{datatype}}} {{getter}}();
void {{setter}}({{{datatype}}} {{name}});
{{/vars}}
private:
{{#vars}}{{{datatype}}} {{name}};
{{/vars}}
};
} /* namespace Swagger */
#endif /* {{classname}}_H_ */
{{/model}}
{{/models}}