From 0d70be459e88be82eaf602ffc24320f0946b80fb Mon Sep 17 00:00:00 2001 From: Andrew Melim Date: Sun, 26 Aug 2012 21:58:18 +0000 Subject: [PATCH] Added method comments for wrap --- wrap/Class.cpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/wrap/Class.cpp b/wrap/Class.cpp index bfc39132f..c42c38527 100644 --- a/wrap/Class.cpp +++ b/wrap/Class.cpp @@ -327,7 +327,7 @@ std::string Class::getTypedef() const { void Class::comment_fragment(FileWriter& proxyFile) const { - proxyFile.oss << "%%" << " --Overloads--" << endl; + proxyFile.oss << "%%" << " -------Overloads-------" << endl; BOOST_FOREACH(ArgumentList argList, constructor.args_list) { proxyFile.oss << "%" << name << "("; @@ -342,5 +342,24 @@ void Class::comment_fragment(FileWriter& proxyFile) const } proxyFile.oss << ")" << endl; } + + proxyFile.oss << "%" << "-------Methods-------" << endl; + BOOST_FOREACH(const Methods::value_type& name_m, methods) { + const Method& m = name_m.second; + BOOST_FOREACH(ArgumentList argList, m.argLists) + { + proxyFile.oss << "%" << m.name << "("; + int i = 0; + BOOST_FOREACH(const Argument& arg, argList) + { + if(i != argList.size()-1) + proxyFile.oss << arg.type << " " << arg.name << ", "; + else + proxyFile.oss << arg.type << " " << arg.name; + i++; + } + proxyFile.oss << ")" << endl; + } + } } /* ************************************************************************* */