Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2008, 2:51:31 AM (17 years ago)
Author:
landauf
Message:

backup-commit

File:
1 edited

Legend:

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

    r1390 r1402  
    4343    ConsoleCommand& ConsoleCommand::setArgumentCompletionList(unsigned int param, const std::list<std::pair<std::string, std::string> >& (*function) (void))
    4444    {
    45         if (param >= 0 && param < 5)
     45        if (param < 5)
    4646            this->autocompletionFunction_[param] = function;
    4747        else
     
    5454    const std::list<std::pair<std::string, std::string> >& ConsoleCommand::getArgumentCompletionList(unsigned int param) const
    5555    {
    56         if (param >= 0 && param < 5)
     56        if (param < 5)
    5757            return (*this->autocompletionFunction_[param])();
    5858        else
     
    6262    std::list<std::pair<std::string, std::string> >::const_iterator ConsoleCommand::getArgumentCompletionListBegin(unsigned int param) const
    6363    {
    64         if (param >= 0 && param < 5)
     64std::cout << "3_1: param: " << param << "\n";
     65        if (param < 5)
     66        {
     67std::cout << "3_2: >" << this->autocompletionFunction_[param] << "<\n";
    6568            return (*this->autocompletionFunction_[param])().begin();
     69        }
    6670        else
     71        {
     72std::cout << "3_3\n";
    6773            return autocompletion::fallback().begin();
     74        }
    6875    }
    6976
    7077    std::list<std::pair<std::string, std::string> >::const_iterator ConsoleCommand::getArgumentCompletionListEnd(unsigned int param) const
    7178    {
    72         if (param >= 0 && param < 5)
     79std::cout << "4_1: param: " << param << "\n";
     80        if (param < 5)
     81        {
     82std::cout << "4_2: >" << this->autocompletionFunction_[param] << "<\n";
    7383            return (*this->autocompletionFunction_[param])().end();
     84        }
    7485        else
     86        {
     87std::cout << "4_3\n";
    7588            return autocompletion::fallback().end();
     89        }
    7690    }
    7791}
Note: See TracChangeset for help on using the changeset viewer.