Changeset 7401 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Apr 27, 2006, 4:49:31 PM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r7399 r7401 90 90 std::vector<ShellCommand*>::iterator cmd; 91 91 for (cmd = cmdClass->commandList.begin(); cmd < cmdClass->commandList.end(); cmd++) 92 {93 92 if (commandName == (*cmd)->getName()) 94 {95 93 delete (*cmd); 96 }97 }98 94 } 99 95 } … … 166 162 return true; 167 163 } 168 /// TODO CHECK FOR STATIC functions.169 164 } 170 165 } … … 232 227 233 228 /** 234 * lets a command be described229 * @brief lets a command be described 235 230 * @param description the description of the Given command 236 231 */ … … 289 284 290 285 /** 291 * prints out nice information about the Shells Commands286 * @brief prints out nice information about the Shells Commands 292 287 */ 293 288 void ShellCommand::debug() … … 314 309 315 310 /** 316 * converts a Parameter to a String311 * @brief converts a Parameter to a String 317 312 * @param parameter the Parameter we have. 318 313 * @returns the Name of the Parameter at Hand 319 314 */ 320 const char*ShellCommand::paramToString(long parameter)315 const std::string& ShellCommand::paramToString(long parameter) 321 316 { 322 317 return MultiType::MultiTypeToString((MT_Type)parameter); -
trunk/src/lib/shell/shell_command.h
r7398 r7401 82 82 83 83 static bool isRegistered(const std::string& commandName, const std::string& className); 84 static const char*paramToString(long parameter);84 static const std::string& paramToString(long parameter); 85 85 86 86 private:
Note: See TracChangeset
for help on using the changeset viewer.