[Orxonox-commit 458] r3035 - trunk/src/core
landauf at orxonox.net
landauf at orxonox.net
Sun May 24 00:36:48 CEST 2009
Author: landauf
Date: 2009-05-24 00:36:48 +0200 (Sun, 24 May 2009)
New Revision: 3035
Modified:
trunk/src/core/CommandExecutor.cc
trunk/src/core/CommandExecutor.h
Log:
get returnvalue shortcuts in CommandExecutor (for tolua)
Modified: trunk/src/core/CommandExecutor.cc
===================================================================
--- trunk/src/core/CommandExecutor.cc 2009-05-23 20:05:58 UTC (rev 3034)
+++ trunk/src/core/CommandExecutor.cc 2009-05-23 22:36:48 UTC (rev 3035)
@@ -108,6 +108,16 @@
return CommandExecutor::getEvaluation().execute();
}
+ MultiType CommandExecutor::getReturnValue()
+ {
+ return CommandExecutor::getEvaluation().getReturnvalue();
+ }
+
+ std::string CommandExecutor::getReturnValueString()
+ {
+ return CommandExecutor::getEvaluation().getReturnvalue().getString();
+ }
+
std::string CommandExecutor::complete(const std::string& command)
{
CommandExecutor::parseIfNeeded(command);
Modified: trunk/src/core/CommandExecutor.h
===================================================================
--- trunk/src/core/CommandExecutor.h 2009-05-23 20:05:58 UTC (rev 3034)
+++ trunk/src/core/CommandExecutor.h 2009-05-23 22:36:48 UTC (rev 3035)
@@ -43,6 +43,9 @@
// tolua_end
public:
static bool execute(const std::string& command, bool useTcl = true); // tolua_export
+ static MultiType getReturnValue();
+ static std::string getReturnValueString(); // tolua_export
+
static std::string complete(const std::string& command);
static std::string hint(const std::string& command);
More information about the Orxonox-commit
mailing list