Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 27, 2006, 4:23:55 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: SubString more functionality

File:
1 edited

Legend:

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

    r7397 r7398  
    4141    PRINTF(5)("create shellcommand %s %s\n", commandName, className);
    4242    this->setName(commandName);
     43
     44    // copy the executor:
    4345    this->executor = executor.clone();
    4446    this->executor->setName(commandName);
     47
    4548    this->alias = NULL;
    4649
    4750    //  this->classID = classID;
    4851    this->shellClass = ShellCommandClass::getCommandClass(className);
    49     if (this->shellClass != NULL)
    50       this->shellClass->commandList.push_back(this);
     52    assert (this->shellClass != NULL);
     53    this->shellClass->commandList.push_back(this);
    5154  }
    5255
     
    6265
    6366  /**
    64    * registers a new ShellCommand
     67   * @brief registers a new ShellCommand
    6568   */
    6669  ShellCommand* ShellCommand::registerCommand(const std::string& commandName, const std::string& className, const Executor& executor)
     
    7477
    7578  /**
    76    * unregister an existing commandName
     79   * @brief unregister an existing commandName
    7780   * @param className the name of the Class the command belongs to.
    7881   * @param commandName the name of the command itself
Note: See TracChangeset for help on using the changeset viewer.