Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1189 for code/branches


Ignore:
Timestamp:
Apr 26, 2008, 2:56:39 AM (17 years ago)
Author:
landauf
Message:

removed some debug output

Location:
code/branches/console/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/core/CommandExecutor.cc

    r1188 r1189  
    376376    bool CommandExecutor::execute(const std::string& command)
    377377    {
    378 std::cout << "CE_execute: " << command << "\n";
    379378        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);
    382380
    383381        return CommandExecutor::execute(CommandExecutor::getEvaluation());
     
    387385    bool CommandExecutor::execute(const CommandEvaluation& evaluation)
    388386    {
     387std::cout << "CE_execute: " << evaluation.processedCommand_ << "\n";
    389388        SubString tokens(evaluation.processedCommand_, " ", SubString::WhiteSpaces, false, '\\', false, '"', false, '(', ')', false, '\0');
    390389
     
    637636    {
    638637        CommandExecutor::parse(command, true);
    639 std::cout << "1_1: " << command << std::endl;
     638
    640639        if (CommandExecutor::getEvaluation().tokens_.size() > 0)
    641640        {
     
    646645            CommandExecutor::getEvaluation().tokens_.append(SubString(lastToken, " "));
    647646        }
    648 std::cout << "1_2: " << CommandExecutor::getEvaluation().tokens_[CommandExecutor::getEvaluation().tokens_.size() - 1] << std::endl;
     647
    649648        CommandExecutor::getEvaluation().evaluateParams();
    650649        return CommandExecutor::getEvaluation();
  • code/branches/console/src/core/TclBind.cc

    r1188 r1189  
    4646    std::string Tcl_execute(Tcl::object const &args)
    4747    {
    48 std::cout << "1\n";
    49 std::cout << "args: " << args.get() << std::endl;
     48std::cout << "Tcl_execute: args: " << args.get() << std::endl;
    5049        std::string command = args.get();
     50
    5151        if (command.size() >= 2 && command[0] == '{' && command[command.size() - 1] == '}')
    5252            command = command.substr(1, command.size() - 2);
     53
    5354        CommandEvaluation evaluation = CommandExecutor::evaluate(command);
    54 std::cout << "2\n";
     55
    5556        if (!CommandExecutor::execute(evaluation))
    5657            COUT(1) << "Error: Can't execute command \"" << command << "\"!" << std::endl;
    57 std::cout << "3\n";
     58
    5859        if (evaluation.hasReturnvalue())
    59         {
    60 std::cout << "4\n";
    6160            return evaluation.getReturnvalue().toString();
    62         }
    63 std::cout << "5\n";
     61
    6462        return "";
    6563    }
  • code/branches/console/src/orxonox/objects/Ambient.h

    r1188 r1189  
    4848
    4949            static void setAmbientLightTest(const ColourValue& colour)
    50                 { std::cout << "setambientlight: " << colour << std::endl; Ambient::instance_s->setAmbientLight(colour); }
     50                { Ambient::instance_s->setAmbientLight(colour); }
    5151
    5252        private:
Note: See TracChangeset for help on using the changeset viewer.