Commit f71f1a8a authored by Wouter's avatar Wouter

Put AbstractWrapper in project namespace

Requires exposing namespace through introspector
parent cff7e7c3
......@@ -523,6 +523,7 @@ void Introspector::addCommonContext()
project.insert("version", projectVersion());
project.insert("source", m_jsonFile);
project.insert("date", QDateTime::currentDateTime());
project.insert("namespace", m_config->outputNamespace());
Q_FOREACH (CodeWriter *c, m_codeItems) {
c->addContext("qjsonIntrospect", qjsonIntrospect);
......
{% extends "header.template" %}
{% block guardopen %}
#ifndef INTROSPECTED_ABSTRACTWRAPPER_H
#define INTROSPECTED_ABSTRACTWRAPPER_H
#ifndef {{ project.namespace|upper }}_ABSTRACTWRAPPER_H
#define {{ project.namespace|upper }}_ABSTRACTWRAPPER_H
{% endblock %}
{% block namespace %}
namespace Introspected {
namespace {{ project.namespace }} {
template<class T>
class AbstractWrapper {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment