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

qt5cpp.model.mustache Maven / Gradle / Ivy

The newest version!
{{>licenseInfo}}
{{#models}}{{#model}}/*
 * {{classname}}.h
 * 
 * {{description}}
 */

#ifndef {{classname}}_H_
#define {{classname}}_H_

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

using namespace Tizen::Web::Json;

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

{{#models}}{{#model}}
namespace Swagger {

class {{classname}}: public {{prefix}}Object {
public:
    {{classname}}();
    {{classname}}(String* json);
    virtual ~{{classname}}();

    void init();

    void cleanup();

    String asJson ();

    JsonObject* asJsonObject();

    void fromJsonObject(IJsonValue* json);

    {{classname}}* fromJson(String* obj);

    {{#vars}}
    {{datatype}} {{getter}}();
    void {{setter}}({{datatype}} {{name}});
    {{/vars}}

private:
    {{#vars}}{{datatype}} {{name}};
    {{/vars}}
};

} /* namespace Swagger */

#endif /* {{classname}}_H_ */
{{/model}}
{{/models}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy