Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

orxonox/trunk: SubString more functionality

Location:
trunk/src/lib/shell
Files:
2 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
  • trunk/src/lib/shell/shell_command.h

    r7397 r7398  
    2323
    2424  /**
    25    * an easy to use Macro to create a Command
     25   * @brief an easy to use Macro to create a Command
    2626   * @param command the name of the command (without "" around the string)
    2727   * @param class the name of the class to apply this command to (without the "" around the string)
     
    4141
    4242  /**
    43    * an easy to use Macro to create a Command
     43   * @brief an easy to use Macro to create a Command
    4444   * @param command the name of the command (without "" around the string)
    4545   * @param class the name of the class to apply this command to (without the "" around the string)
Note: See TracChangeset for help on using the changeset viewer.