Changeset 7398 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Apr 27, 2006, 4:23:55 PM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 2 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 -
trunk/src/lib/shell/shell_command.h
r7397 r7398 23 23 24 24 /** 25 * an easy to use Macro to create a Command25 * @brief an easy to use Macro to create a Command 26 26 * @param command the name of the command (without "" around the string) 27 27 * @param class the name of the class to apply this command to (without the "" around the string) … … 41 41 42 42 /** 43 * an easy to use Macro to create a Command43 * @brief an easy to use Macro to create a Command 44 44 * @param command the name of the command (without "" around the string) 45 45 * @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.