From 0f9b2865fa8c5186474c580305dab3d0e75aa53c Mon Sep 17 00:00:00 2001 From: ishmal Date: Wed, 12 Mar 2008 18:18:39 +0000 Subject: [PATCH] Improve call to callMain() --- src/bind/javabind-private.h | 3 ++- src/bind/javabind.cpp | 10 +++++++++- src/bind/javabind.h | 3 ++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/bind/javabind-private.h b/src/bind/javabind-private.h index 9b7b4e995..5a810480b 100644 --- a/src/bind/javabind-private.h +++ b/src/bind/javabind-private.h @@ -54,7 +54,8 @@ public: const std::vector ¶ms, Value &retval); - virtual bool callMain(const String &className); + virtual bool callMain(const String &className, + const std::vector &args); virtual bool isLoaded(); diff --git a/src/bind/javabind.cpp b/src/bind/javabind.cpp index f4905e153..b03d562ce 100644 --- a/src/bind/javabind.cpp +++ b/src/bind/javabind.cpp @@ -930,11 +930,19 @@ String JavaBinderyImpl::getException() * method of a given class * * @param className full name of the java class + * @args the argument strings to the method * @return true if successful, else false */ -bool JavaBinderyImpl::callMain(const String &className) +bool JavaBinderyImpl::callMain(const String &className, + const std::vector &args) { std::vector parms; + for (unsigned int i=0 ; i &/*args*/) { return false; } -- 2.30.2