Changeset 7398 in orxonox.OLD for trunk/src/lib/shell/shell_command.cc
- Timestamp:
- Apr 27, 2006, 4:23:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r7397 r7398 41 41 PRINTF(5)("create shellcommand %s %s\n", commandName, className); 42 42 this->setName(commandName); 43 44 // copy the executor: 43 45 this->executor = executor.clone(); 44 46 this->executor->setName(commandName); 47 45 48 this->alias = NULL; 46 49 47 50 // this->classID = classID; 48 51 this->shellClass = ShellCommandClass::getCommandClass(className); 49 if (this->shellClass != NULL)50 52 assert (this->shellClass != NULL); 53 this->shellClass->commandList.push_back(this); 51 54 } 52 55 … … 62 65 63 66 /** 64 * registers a new ShellCommand67 * @brief registers a new ShellCommand 65 68 */ 66 69 ShellCommand* ShellCommand::registerCommand(const std::string& commandName, const std::string& className, const Executor& executor) … … 74 77 75 78 /** 76 * unregister an existing commandName79 * @brief unregister an existing commandName 77 80 * @param className the name of the Class the command belongs to. 78 81 * @param commandName the name of the command itself
Note: See TracChangeset
for help on using the changeset viewer.