diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-06-16 16:32:14 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-06-17 17:44:56 -0300 |
commit | 7d4d634e03f17c1db90ccc4230d31610d8084d96 (patch) | |
tree | b34c9fad4e635784a292fef62e8e8c4e36163e25 /cppgenerator.h | |
parent | a46578e6edbdc6427439830c94f0e29cf6c6a2f1 (diff) |
Adds a method to tell if multiple Python arguments must be used in the code.
The CppGenerator::pythonFunctionWrapperUsesListOfArguments(OverloadData)
method returns true if the Python wrapper for the received OverloadData
should handle with a single or multiple Python arguments.
Diffstat (limited to 'cppgenerator.h')
-rw-r--r-- | cppgenerator.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cppgenerator.h b/cppgenerator.h index eee5e2e9d..2f45fc936 100644 --- a/cppgenerator.h +++ b/cppgenerator.h @@ -75,7 +75,7 @@ private: * If implicit conversions, and thus new object allocation, are needed, * code to deallocate a possible new instance is also generated. * \param s text stream to write - * \param metatype a pointer to the argument type to be converted + * \param argType a pointer to the argument type to be converted * \param argName C++ argument name * \param pyArgName Python argument name * \param context the current meta class @@ -183,6 +183,10 @@ private: /// Returns true if generator should produce getters and setters for the given class. bool shouldGenerateGetSetList(const AbstractMetaClass* metaClass); + + /// Returns true if the Python wrapper for the received OverloadData must accept a list of arguments. + static bool pythonFunctionWrapperUsesListOfArguments(const OverloadData& overloadData); + void writeHashFunction(QTextStream& s, const AbstractMetaClass* metaClass); void writeObjCopierFunction(QTextStream& s, const AbstractMetaClass* metaClass); |