aboutsummaryrefslogtreecommitdiffstats
path: root/generator/cppgenerator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-08-02 17:01:40 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:17:07 -0300
commitf9e9189be4b622b74d0df2787a09f93fe7a5d0ae (patch)
tree37e5c07fb73a638e65a13352cb3c50304135d6e7 /generator/cppgenerator.h
parent3e8c945bdc731fb7c9eaff0007abc02bfa1e5c37 (diff)
Disassembled ShibokenGenerator's writeCodeSnips method.
Also added writeConversionRule methods to CppGenerator. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'generator/cppgenerator.h')
-rw-r--r--generator/cppgenerator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/generator/cppgenerator.h b/generator/cppgenerator.h
index c6cda3184..4dea57bd2 100644
--- a/generator/cppgenerator.h
+++ b/generator/cppgenerator.h
@@ -109,6 +109,11 @@ private:
const AbstractMetaClass* context = 0,
const QString& defaultValue = QString());
+ /// Writes the conversion rule for arguments of regular and virtual methods.
+ void writeConversionRule(QTextStream& s, const AbstractMetaFunction* func, TypeSystem::Language language);
+ /// Writes the conversion rule for the return value of a virtual method.
+ void writeConversionRule(QTextStream& s, const AbstractMetaFunction* func, const QString& outputVar);
+
/**
* Set the Python method wrapper return value variable to Py_None if
* there are return types different from void in any of the other overloads