aboutsummaryrefslogtreecommitdiffstats
path: root/cppgenerator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-11-26 11:01:18 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-26 11:25:01 -0300
commit736854dc7e64cb2bdcb8d765aace6ee51d8c1150 (patch)
tree1f907b67ee44caf16c4b0b56e78277a78d9c45de /cppgenerator.h
parent517d1c914879bcf243442aac4b393e8ee3c26ff9 (diff)
Python arguments are now checked for Python wrapper validity.
If the expected argument type has implicit conversions the type of the Python object is also checked. The invalidate-after-use test was moved from the ObjectType test to its own test file. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'cppgenerator.h')
-rw-r--r--cppgenerator.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/cppgenerator.h b/cppgenerator.h
index 639353413..19002224a 100644
--- a/cppgenerator.h
+++ b/cppgenerator.h
@@ -54,8 +54,13 @@ private:
void writeArgumentsInitializer(QTextStream& s, OverloadData& overloadData);
void writeErrorSection(QTextStream& s, OverloadData& overloadData);
- /// Writes the check section for the validity of wrapped C++ objects.
- void writeInvalidCppObjectCheck(QTextStream& s, QString pyArgName = "self");
+ /**
+ * Writes the check section for the validity of wrapped C++ objects.
+ * \param s text stream to write
+ * \param argName Python argument name
+ * \param type the TypeEntry passed when the validity check must confirm the type of the Python wrapper to be checked
+ */
+ void writeInvalidCppObjectCheck(QTextStream& s, QString pyArgName = "self", const TypeEntry* type = 0);
void writeTypeCheck(QTextStream& s, const OverloadData* overloadData, QString argumentName);
void writeTypeConverterImpl(QTextStream& s, const TypeEntry* type);