Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7412 in orxonox.OLD for trunk/src/lib/shell/shell_command.cc


Ignore:
Timestamp:
Apr 28, 2006, 12:03:54 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Another CompletionMode is working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_command.cc

    r7411 r7412  
    295295  }
    296296
     297  ShellCommand* ShellCommand::completionPlugin(unsigned int parameter, const CompletorPlugin& completorPlugin)
     298  {
     299    if (this == NULL || this->executor == NULL)
     300      return NULL;
     301
     302    if (parameter >= this->executor->getParamCount())
     303    {
     304      PRINTF(1)("Parameter %d not inside of valid ParameterCount %d of Command %s::%s\n",
     305    parameter, this->executor->getParamCount(), this->getName(), this->shellClass->getName());
     306    }
     307    else
     308    {
     309      delete this->completors[parameter];
     310      this->completors[parameter] = completorPlugin.clone();
     311    }
     312    return this;
     313  }
     314
     315
    297316  /**
    298317   * @brief prints out nice information about the Shells Commands
     
    331350
    332351
     352
     353  ///////////
     354  // ALIAS //
     355  ///////////
     356
    333357  /**
    334358   * @param aliasName the name of the Alias
Note: See TracChangeset for help on using the changeset viewer.