Changeset 5190 in orxonox.OLD for trunk/src/lib/shell/shell_command.h
- Timestamp:
- Sep 18, 2005, 12:09:36 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.h
r5189 r5190 43 43 //////////////// 44 44 class ShellCommandBase; 45 class ShellCommandAlias; 45 46 46 47 //! A class to hold all Classes that have (once) registered Commands. … … 51 52 public: 52 53 static const tList<ShellCommandClass>* getCommandClassList() { return ShellCommandClass::commandClassList; }; 53 static tList<const char>* getCommandListOfClass(const char* className); 54 static bool ShellCommandClass::getCommandListOfClass(const char* className, tList<const char>* stringList); 55 54 56 static ShellCommandClass* getCommandClass(const char* className); 55 57 static void unregisterAllCommands(); … … 67 69 tList<ShellCommandBase>* commandList; //!< A list of Commands from this Class 68 70 static tList<ShellCommandClass>* commandClassList; //!< A list of Classes 71 static tList<ShellCommandAlias>* aliasesList; //!< An Alias to A Command. (only for classes with one Instance) 69 72 }; 70 73 … … 78 81 79 82 ShellCommandBase* describe(const char* description); 83 ShellCommandBase* setAlias(const char* alias); 80 84 81 85 /** @returns the CommandList of the Shell */ … … 312 316 }; 313 317 318 class ShellCommandAlias 319 { 320 public: 321 ShellCommandAlias(const char* aliasName, ShellCommandBase* command) { this->aliasName = aliasName; this->command = command; }; 322 private: 323 const char* aliasName; 324 ShellCommandBase* command; 325 }; 326 327 314 328 #endif /* _SHELL_COMMAND_H */
Note: See TracChangeset
for help on using the changeset viewer.