Changeset 1189
- Timestamp:
- Apr 26, 2008, 2:56:39 AM (17 years ago)
- Location:
- code/branches/console/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/CommandExecutor.cc
r1188 r1189 376 376 bool CommandExecutor::execute(const std::string& command) 377 377 { 378 std::cout << "CE_execute: " << command << "\n";379 378 if ((CommandExecutor::getEvaluation().processedCommand_ != command) || (CommandExecutor::getEvaluation().state_ == CS_Uninitialized)) 380 {std::cout << "CE_execute->parse\n"; 381 CommandExecutor::parse(command);} 379 CommandExecutor::parse(command); 382 380 383 381 return CommandExecutor::execute(CommandExecutor::getEvaluation()); … … 387 385 bool CommandExecutor::execute(const CommandEvaluation& evaluation) 388 386 { 387 std::cout << "CE_execute: " << evaluation.processedCommand_ << "\n"; 389 388 SubString tokens(evaluation.processedCommand_, " ", SubString::WhiteSpaces, false, '\\', false, '"', false, '(', ')', false, '\0'); 390 389 … … 637 636 { 638 637 CommandExecutor::parse(command, true); 639 std::cout << "1_1: " << command << std::endl; 638 640 639 if (CommandExecutor::getEvaluation().tokens_.size() > 0) 641 640 { … … 646 645 CommandExecutor::getEvaluation().tokens_.append(SubString(lastToken, " ")); 647 646 } 648 std::cout << "1_2: " << CommandExecutor::getEvaluation().tokens_[CommandExecutor::getEvaluation().tokens_.size() - 1] << std::endl; 647 649 648 CommandExecutor::getEvaluation().evaluateParams(); 650 649 return CommandExecutor::getEvaluation(); -
code/branches/console/src/core/TclBind.cc
r1188 r1189 46 46 std::string Tcl_execute(Tcl::object const &args) 47 47 { 48 std::cout << "1\n"; 49 std::cout << "args: " << args.get() << std::endl; 48 std::cout << "Tcl_execute: args: " << args.get() << std::endl; 50 49 std::string command = args.get(); 50 51 51 if (command.size() >= 2 && command[0] == '{' && command[command.size() - 1] == '}') 52 52 command = command.substr(1, command.size() - 2); 53 53 54 CommandEvaluation evaluation = CommandExecutor::evaluate(command); 54 std::cout << "2\n"; 55 55 56 if (!CommandExecutor::execute(evaluation)) 56 57 COUT(1) << "Error: Can't execute command \"" << command << "\"!" << std::endl; 57 std::cout << "3\n"; 58 58 59 if (evaluation.hasReturnvalue()) 59 {60 std::cout << "4\n";61 60 return evaluation.getReturnvalue().toString(); 62 } 63 std::cout << "5\n"; 61 64 62 return ""; 65 63 } -
code/branches/console/src/orxonox/objects/Ambient.h
r1188 r1189 48 48 49 49 static void setAmbientLightTest(const ColourValue& colour) 50 { std::cout << "setambientlight: " << colour << std::endl;Ambient::instance_s->setAmbientLight(colour); }50 { Ambient::instance_s->setAmbientLight(colour); } 51 51 52 52 private:
Note: See TracChangeset
for help on using the changeset viewer.