aboutsummaryrefslogtreecommitdiffstats
path: root/cppgenerator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-02-08 15:08:47 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-10 08:43:17 -0300
commit8eb50faa234bc5d26ac721ca8fe5f263cf55230d (patch)
tree65371f9ede89f970b1f142afa064b47583727e7a /cppgenerator.h
parent18e0f058e4d293ba9c75f73529e946c46eb89873 (diff)
Adds CppGenerator::argumentNameFromIndex method.
The method returns a textual representation of the argument index for the given method.
Diffstat (limited to 'cppgenerator.h')
-rw-r--r--cppgenerator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cppgenerator.h b/cppgenerator.h
index de0396f20..7652719a9 100644
--- a/cppgenerator.h
+++ b/cppgenerator.h
@@ -115,6 +115,8 @@ private:
* \param parentOverloadData a pointer to overload data describing the argument being evaluated
*/
void writeOverloadedMethodDecisor(QTextStream& s, OverloadData* parentOverloadData);
+ /// Returns a string containing the name of an argument for the given function and argument index.
+ QString argumentNameFromIndex(const AbstractMetaFunction* func, int argIndex, const AbstractMetaClass** wrappedClass);
void writeMethodCall(QTextStream& s, const AbstractMetaFunction* func, int maxArgs = 0);
void writeClassRegister(QTextStream& s, const AbstractMetaClass* metaClass);