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

qt5cpp.object.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
{{>licenseInfo}}
#ifndef _{{prefix}}_OBJECT_H_
#define _{{prefix}}_OBJECT_H_

#include 

{{#cppNamespaceDeclarations}}
namespace {{this}} {
{{/cppNamespaceDeclarations}}

class {{prefix}}Object {
  public:
    virtual QJsonObject asJsonObject() {
      return QJsonObject();
    }
    virtual ~{{prefix}}Object() {}
    virtual {{prefix}}Object* fromJson(QString jsonString) {
        Q_UNUSED(jsonString);
        return new {{prefix}}Object();
    }
    virtual void fromJsonObject(QJsonObject json) {
        Q_UNUSED(json);
    }
    virtual QString asJson() {
        return QString("");
    }
    virtual bool isSet() {
        return false;
    }
};

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

#endif /* _{{prefix}}_OBJECT_H_ */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy