Changeset 5172 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Sep 7, 2005, 2:30:11 PM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r5166 r5172 33 33 34 34 SHELL_COMMAND(clear, Shell, clear)->describe("Clears the shell from unwanted lines (empties all buffers)"); 35 SHELL_COMMAND(deactivate, Shell, deactivate)->describe("Deactivates the Shell. (moves it into background)"); 36 35 37 36 38 /** -
trunk/src/lib/shell/shell_command.cc
r5171 r5172 99 99 } 100 100 101 /** 102 * searches for a CommandClass 103 * @param className the name of the CommandClass 104 * @returns the CommandClass if found, or a new CommandClass if not 105 */ 101 106 ShellCommandClass* ShellCommandClass::getCommandClass(const char* className) 102 107 { … … 119 124 } 120 125 121 126 /** 127 * initializes the CommandList (if it is NULL) 128 */ 122 129 void ShellCommandClass::initCommandClassList() 123 130 { … … 211 218 ShellCommandClass::initCommandClassList(); 212 219 213 const 214 215 220 const ShellCommandClass* checkClass = ShellCommandClass::isRegistered(className); 221 222 if (checkClass != NULL) 216 223 { 217 224 tIterator<ShellCommandBase>* iterator = checkClass->commandList->getIterator(); … … 236 243 } 237 244 } 238 239 240 245 241 246 /** … … 418 423 tIterator<ShellCommandBase>* iterator = elemCL->commandList->getIterator(); 419 424 const ShellCommandBase* elem = iterator->firstElement(); 425 while(elem != NULL) 420 426 { 421 427 PRINT(0)(" command:'%s' : params:%d: ", elem->getName(), elem->paramCount);
Note: See TracChangeset
for help on using the changeset viewer.