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

restbed.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_

{{{defaultInclude}}}

{{#imports}}{{{this}}}
{{/imports}}
#include 

{{#modelNamespaceDeclarations}}
namespace {{this}} {
{{/modelNamespaceDeclarations}}

/// 
/// {{description}}
/// 
class {{declspec}} {{classname}}
{
public:
    {{classname}}();
    virtual ~{{classname}}();
    
    std::string toJsonString();
    void fromJsonString(std::string const& jsonString);

    /////////////////////////////////////////////
    /// {{classname}} members
    
    {{#vars}}
    /// 
    /// {{description}}
    /// 
    {{{dataType}}} {{getter}}() const;
    void {{setter}}({{{dataType}}} value);
    {{/vars}}

protected:
    {{#vars}}
    {{{dataType}}} m_{{name}};
    {{/vars}}
};

{{#modelNamespaceDeclarations}}
}
{{/modelNamespaceDeclarations}}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy