aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-07-20 11:53:01 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:18 -0300
commite486e0bbe2065bbc228f84f93178e0636475021b (patch)
tree68477e77776beb0c4c1766b186e0072a35679876 /typesystem.h
parentb3644ccd1f52073ed70ce8b6e0ed4f58a07632d7 (diff)
Added default constructor option for value types.
The unit test is in place and the 'value-type' tag documentation was update with information about the 'default-constructor' attribute. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'typesystem.h')
-rw-r--r--typesystem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/typesystem.h b/typesystem.h
index bd99fd6c..3fcb241f 100644
--- a/typesystem.h
+++ b/typesystem.h
@@ -1439,6 +1439,7 @@ public:
centry->setCodeSnips(codeSnips());
centry->setTargetLangPackage(targetLangPackage());
centry->setBaseContainerType(baseContainerType());
+ centry->setDefaultConstructor(defaultConstructor());
return centry;
}
@@ -1629,6 +1630,9 @@ public:
return m_baseContainerType;
}
+ QString defaultConstructor() const;
+ void setDefaultConstructor(const QString& defaultConstructor);
+ bool hasDefaultConstructor() const;
private:
AddedFunctionList m_addedFunctions;